Bug#339864: gpsd: FTBFS: XmStrDefs.h:959: error: syntax error before 'extern'
Package: lesstif2 Version: 1:0.94.4-1 Severity: serious Hi, building the package gpsd 2.28-2 in a clean sid build environment (with pbuilder) on i386 results in: = [...] i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -MT report.lo -MD -MP -MF .deps/report.Tpo -c report.c -fPIC -DPIC -o .libs/report.o i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -MT report.lo -MD -MP -MF .deps/report.Tpo -c report.c -o report.o /dev/null 21 if /bin/sh ./libtool --mode=compile --tag=CXX i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -MT libgpsmm.lo -MD -MP -MF .deps/libgpsmm.Tpo -c -o libgpsmm.lo libgpsmm.cpp; \ then mv -f .deps/libgpsmm.Tpo .deps/libgpsmm.Plo; else rm -f .deps/libgpsmm.Tpo; exit 1; fi i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -MT libgpsmm.lo -MD -MP -MF .deps/libgpsmm.Tpo -c libgpsmm.cpp -fPIC -DPIC -o .libs/libgpsmm.o i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -MT libgpsmm.lo -MD -MP -MF .deps/libgpsmm.Tpo -c libgpsmm.cpp -o libgpsmm.o /dev/null 21 /bin/sh ./libtool --mode=link --tag=CXX i486-linux-gnu-g++ -g -O2 -L/usr/X11R6/lib -o libgps.la -rpath /usr/lib -version-number 14:0:0 netlib.lo nmea_parse.lo serial.lo drivers.lo zodiac.lo garmin.lo tsip.lo libgpsd_core.lo ntpshm.lo libgps.lo packet.lo gpsutils.lo geoid.lo dgpsip.lo sirf.lo report.lo libgpsmm.lo -lm -lc -lnsl -lpthread i486-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crti.o /usr/lib/gcc/i486-linux-gnu/4.0.3/crtbeginS.o .libs/netlib.o .libs/nmea_parse.o .libs/serial.o .libs/drivers.o .libs/zodiac.o .libs/garmin.o .libs/tsip.o .libs/libgpsd_core.o .libs/ntpshm.o .libs/libgps.o .libs/packet.o .libs/gpsutils.o .libs/geoid.o .libs/dgpsip.o .libs/sirf.o .libs/report.o .libs/libgpsmm.o -L/usr/X11R6/lib -lnsl -lpthread -L/usr/lib/gcc/i486-linux-gnu/4.0.3 -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib -L/usr/lib/gcc/i486-linux-gnu/4.0.3/../../.. -L/lib/../lib -L/usr/lib/../lib -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i486-linux-gnu/4.0.3/crtendS.o /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../lib/crtn.o -Wl,-soname -Wl,libgps.so.14 -o .libs/libgps.so.14.0.0 (cd .libs rm -f libgps.so.14 ln -s libgps.so.14.0.0 libgps.so.14) (cd .libs rm -f libgps.so ln -s libgps.so.14.0.0 libgps.so) ar cru .libs/libgps.a netlib.o nmea_parse.o serial.o drivers.o zodiac.o garmin.o tsip.o libgpsd_core.o ntpshm.o libgps.o packet.o gpsutils.o geoid.o dgpsip.o sirf.o report.o libgpsmm.o ranlib .libs/libgps.a creating libgps.la (cd .libs rm -f libgps.la ln -s ../libgps.la libgps.la) if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -MT display.o -MD -MP -MF .deps/display.Tpo -c -o display.o display.c; \ then mv -f .deps/display.Tpo .deps/display.Po; else rm -f .deps/display.Tpo; exit 1; fi if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -MT xgps.o -MD -MP -MF .deps/xgps.Tpo -c -o xgps.o xgps.c; \ then mv -f .deps/xgps.Tpo .deps/xgps.Po; else rm -f .deps/xgps.Tpo; exit 1; fi /bin/sh ./libtool --mode=link --tag=CC i486-linux-gnu-gcc -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -L/usr/X11R6/lib -o xgps display.o xgps.o -lm -lc -lnsl -lXm -lXt -L/usr/X11R6/lib -lSM -lICE libgps.la -lm -lpthread i486-linux-gnu-gcc -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE -o .libs/xgps display.o xgps.o -L/usr/X11R6/lib -lc /usr/lib/libXm.so /usr/lib/libXft.so -lfontconfig /usr/lib/libfreetype.so -lz /usr/lib/libXrender.so -lX11 -lXt -lSM -lICE ./.libs/libgps.so -lnsl -lm -lpthread creating xgps if i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -g -O2 -Wall -Wcast-align -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wreturn-type -W -D_GNU_SOURCE
Bug#339864: gpsd: FTBFS: XmStrDefs.h:959: error: syntax error before 'extern'
tag 339864 patch thanks Hi, the attached patch fixes this. bye, Roland --- include/Motif-2.1/Xm/XmStrDefs.h.orig 2005-11-19 13:00:59.0 +0100 +++ include/Motif-2.1/Xm/XmStrDefs.h 2005-11-19 13:01:13.0 +0100 @@ -28,6 +28,8 @@ #include X11/StringDefs.h +#include Xm/Xm.h + #ifdef __cplusplus extern C { #endif