Package: tcpreplay Version: 2.99+3.0.beta11-4 Usertags: ftbfs-gcc-4.3 Tags: patch
Your package fails to build with GCC 4.3. Version 4.3 has not been released yet but I'm building with a snapshot in order to find errors and give people an advance warning. In C99 the meaning of "inline" changed, see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31389 A patch for this problem is below. > Automatic build of tcpreplay_2.99+3.0.beta11-4 on coconut0 by sbuild/ia64 0.49 ... > common/timer.h:46: warning: inline function 'float2timer' declared but never > defined > common/timer.h:45: warning: inline function 'timerdiv' declared but never > defined > common/timer.h:46: warning: inline function 'float2timer' declared but never > defined > common/timer.h:45: warning: inline function 'timerdiv' declared but never > defined > /bin/sh ../libtool --tag=CC --mode=link ia64-linux-gnu-gcc -g -O2 -Wall -O2 > -funroll-loops -std=gnu99 -o tcpreplay tcpreplay-tcpreplay_opts.o > tcpreplay-send_packets.o tcpreplay-signal_handler.o tcpreplay-tcpreplay.o > ./common/libcommon.a ../lib/libstrl.a /usr/lib/libpcap.a -L/usr/lib -lopts > -lrt -lnsl > mkdir .libs > ia64-linux-gnu-gcc -g -O2 -Wall -O2 -funroll-loops -std=gnu99 -o tcpreplay > tcpreplay-tcpreplay_opts.o tcpreplay-send_packets.o > tcpreplay-signal_handler.o tcpreplay-tcpreplay.o ./common/libcommon.a > ../lib/libstrl.a /usr/lib/libpcap.a -L/usr/lib /usr/lib/libopts.so -lm -ldl > -lrt -lnsl > tcpreplay-send_packets.o: In function `do_sleep': > /build/tbm/tcpreplay-2.99+3.0.beta11/src/send_packets.c:236: undefined > reference to `timerdiv' > collect2: ld returned 1 exit status > make[4]: *** [tcpreplay] Error 1 --- src/common/timer.h~ 2007-03-30 20:19:09.000000000 +0000 +++ src/common/timer.h 2007-03-30 20:19:36.000000000 +0000 @@ -42,8 +42,8 @@ #include <sys/time.h> #include <math.h> -inline void timerdiv(struct timeval *tvp, float div); -inline void float2timer(float time, struct timeval *tvp); +extern void timerdiv(struct timeval *tvp, float div); +extern void float2timer(float time, struct timeval *tvp); #ifndef TIMEVAL_TO_TIMESPEC #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ -- Martin Michlmayr http://www.cyrius.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]