[MacPorts] #47476: Building of gpsd 3.14 fails on Snow Leopard, Mac OS X 10.6.8, because of redefinition of typedef 'clockid_t'
#47476: Building of gpsd 3.14 fails on Snow Leopard, Mac OS X 10.6.8, because of redefinition of typedef 'clockid_t' -----------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: | Port: gpsd -----------------------------+-------------------------------- {{{ /usr/bin/llvm-g++-4.2 -arch x86_64 -o libgpsmm.os -c -Os -arch x86_64 -Wmissing-declarations -O2 -fPIC -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include libgpsmm.cpp cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++ In file included from compiler.h:23, from strfuncs.h:14, from json.c:78: gpsd_config.h:305: error: redefinition of typedef 'clockid_t' gpsd_config.h:305: error: previous declaration of 'clockid_t' was here /usr/bin/llvm-gcc-4.2 -arch x86_64 -o ntpshmread.os -c -Os -arch x86_64 -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast- align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -fPIC -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include ntpshmread.c Creating 'gpsd.h' /usr/bin/llvm-gcc-4.2 -arch x86_64 -o clock_gettime.os -c -Os -arch x86_64 -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast- align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -pthread -Wmissing-declarations -O2 -fPIC -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include clock_gettime.c /usr/bin/llvm-gcc-4.2 -arch x86_64 -o strl.os -c -Os -arch x86_64 -Wextra -Wall -Wno-uninitialized -Wno-missing-field-initializers -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer- arith -Wreturn-type -pthread -Wmissing-declarations -O2 -fPIC -I/opt/local/include/dbus-1.0 -I/opt/local/lib/dbus-1.0/include strl.c scons: *** [json.os] Error 1 scons: building terminated because of errors. Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_net_gpsd/gpsd/work/gpsd-3.14" && /opt/local/bin/scons -j8 prefix=/opt/local libQgpsmm=no usb=no strip=no Exit code: 2 }}} -- Ticket URL: <https://trac.macports.org/ticket/47476> MacPorts <https://www.macports.org/> Ports system for OS X
#47476: Building of gpsd 3.14 fails on Snow Leopard, Mac OS X 10.6.8, because of redefinition of typedef 'clockid_t' ------------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: gpsd | ------------------------------+-------------------------------- Comment (by braumann@…): building also fails on 10.5.8 with this redefinition of typedef 'clockid_t' error -- Ticket URL: <https://trac.macports.org/ticket/47476#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#47476: scons does not properly add header guards to generated config header ------------------------------+----------------------- Reporter: Peter_Dyballa@… | Owner: landonf@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: scons | ------------------------------+----------------------- Changes (by jeremyhu@…): * owner: macports-tickets@… => landonf@… * port: gpsd => scons Comment: {{{ In file included from ais_json.c:23: In file included from ./libgps.h:13: In file included from ./compiler.h:23: ./gpsd_config.h:305:13: error: redefinition of typedef 'clockid_t' is invalid in C [-Wtypedef-redefinition] typedef int clockid_t; ^ In file included from ais_json.c:19: ./gpsd_config.h:305:13: note: previous definition is here typedef int clockid_t; ^ 1 error generated. }}} The issue is that gpsd_config.h is included twice, and the header doesn't properly guard for that as it should. {{{ /* gpsd_config.h. Generated by scons, do not hand-hack. */ }}} As such, this is a scons bug. -- Ticket URL: <https://trac.macports.org/ticket/47476#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47476: scons does not properly add header guards to generated config header ------------------------------+-------------------------------- Reporter: Peter_Dyballa@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: Port: scons | ------------------------------+-------------------------------- Changes (by ryandesign@…): * owner: landonf@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/47476#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts