#47498: gpsd @3.14: error: redefinition of typedef 'clockid_t' ------------------------+-------------------------- Reporter: valerio@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Resolution: | Keywords: snowleopard Port: gpsd | ------------------------+-------------------------- Comment (by davide.liessi@…):
I'm trying with macports-clang-3.4 now.
I got 73 warnings of the type {{{ :info:build ./gpsd_config.h:303:13: warning: redefinition of typedef 'clockid_t' is a C11 feature [-Wtypedef-redefinition] :info:build typedef int clockid_t; :info:build ^ :info:build ./gpsd_config.h:303:13: note: previous definition is here :info:build typedef int clockid_t; :info:build ^ }}} all resulting from invocations of `/opt/local/bin/clang-mp-3.4`. Then I got this: {{{ :info:build /usr/bin/gcc-4.2 -o gpsclient-py_2_7_9_final_0.so -c -fno- strict-aliasing -fno-common -dynamic -Wmissing-declarations -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 gpsclient.c :info:build /opt/local/bin/clang-mp-3.4 -arch x86_64 -o gpsmon gpsmon.o monitor_italk.o monitor_nmea0183.o monitor_oncore.o monitor_sirf.o monitor_superstar2.o monitor_tnt.o monitor_ubx.o monitor_garmin.o -L. -L/opt/local/lib -ldbus-1 -lgpsd -lgps -ldbus-1 -lncurses -lm :info:build /usr/bin/gcc-4.2 -o geoid-py_2_7_9_final_0.so -c -fno-strict- aliasing -fno-common -dynamic -Wmissing-declarations -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 geoid.c :info:build In file included from compiler.h:23, :info:build from gpsd.h:353, :info:build from geoid.c:12: :info:build gpsd_config.h:303: error: redefinition of typedef 'clockid_t' :info:build gpsd.h:323: error: previous declaration of 'clockid_t' was here :info:build scons: *** [geoid-py_2_7_9_final_0.so] Error 1 :info:build scons: building terminated because of errors. :info:build Command failed: cd "/opt/local/var/macports/build /_opt_macports-git_trunk_dports_net_gpsd/gpsd/work/gpsd-3.14" && /opt/local/bin/scons -j2 prefix=/opt/local libQgpsmm=no usb=no strip=no :info:build Exit code: 2 }}} I'm convinced that there are two problems here: the first is that `clockid_t` should not be redefined, the second is that SCons does not choose the desired compiler. I don't know SCons, but I read that it does not automatically obey `CC`, `CXX`, ... environment variables, so probably both problems need to be solved upstream. -- Ticket URL: <https://trac.macports.org/ticket/47498#comment:12> MacPorts <https://www.macports.org/> Ports system for OS X