[netflow-tools] CVS Snapshot Breakage

Jesse Kempf kempfj2 at cs.rpi.edu
Sun Sep 30 11:42:39 EST 2007


Hi,
At the end of the email, I've attached the full session.
In short, compiling the CVS snapshot on FreeBSD 6.2/i386 fails with:

waffle% make
gcc -g -O2 -fPIC -c flowd.c
flowd.c: In function `usage':
flowd.c:1381: error: `PROGVER' undeclared (first use in this function)
flowd.c:1381: error: (Each undeclared identifier is reported only once
flowd.c:1381: error: for each function it appears in.)
flowd.c:1386: error: `SYSCONFDIR' undeclared (first use in this  
function)
flowd.c:1386: error: syntax error before string constant
flowd.c: In function `main':
flowd.c:1396: error: `SYSCONFDIR' undeclared (first use in this  
function)
flowd.c:1396: error: syntax error before string constant
*** Error code 1

Stop in /tmp/flowd/flowd.

It took me a little while to figure out that this wasn't my fault (I  
did a little mucking around in Makefile.in, and the autotools and I  
have never gotten along very well).

The preprocessor magic seems to be broken. I ran autoconf-2.59 and  
2.61 on configure.ac, and this happens with configure scripts  
generated by both versions.

While I'd normally have no problem going in, fixing things, and  
submitting a patch, I'm not sure exactly what the reason is for  
what's lead to the breakage.

Cheers,
-Jesse Kempf


waffle% wget http://www.mindrot.org/flowd_snap/flowd- 
SNAP-20070924.tar.gz
--22:44:50--  http://www.mindrot.org/flowd_snap/flowd- 
SNAP-20070924.tar.gz
            => `flowd-SNAP-20070924.tar.gz'
Resolving www.mindrot.org... 203.209.195.154
Connecting to www.mindrot.org|203.209.195.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 184,605 (180K) [application/x-tar]

100% 
[====================================================================>]  
184,605       93.33K/s

22:44:53 (93.11 KB/s) - `flowd-SNAP-20070924.tar.gz' saved  
[184605/184605]

waffle% tar -xzf flowd-SNAP-20070924.tar.gz
waffle% cd flowd
waffle% ./configure
checking build system type... i386-unknown-freebsd6.2
checking host system type... i386-unknown-freebsd6.2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for yacc... /usr/bin/yacc
checking for byacc... /usr/bin/byacc
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/ndir.h usability... no
checking sys/ndir.h presence... no
checking for sys/ndir.h... no
checking sys/dir.h usability... yes
checking sys/dir.h presence... yes
checking for sys/dir.h... yes
checking ndir.h usability... no
checking ndir.h presence... no
checking for ndir.h... no
checking sys/pstat.h usability... no
checking sys/pstat.h presence... no
checking for sys/pstat.h... no
checking endian.h usability... no
checking endian.h presence... no
checking for endian.h... no
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking paths.h usability... yes
checking paths.h presence... yes
checking for paths.h... yes
checking for strings.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for struct sockaddr.sa_len... yes
checking for library containing daemon... none required
checking for library containing socket... none required
checking for closefrom... no
checking for betoh64... no
checking for htobe64... no
checking for daemon... yes
checking for setresuid... yes
checking for setreuid... yes
checking for setresgid... yes
checking for setregid... yes
checking for sysconf... yes
checking for setproctitle... yes
checking for dirfd... no
checking for sendmsg... yes
checking for recvmsg... yes
checking for tzset... yes
checking for strlcpy... yes
checking for strlcat... yes
checking for u_int64_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for u_int16_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for u_int8_t... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for u_int... yes
checking for char... yes
checking size of char... 1
checking for unsigned char... yes
checking size of unsigned char... 1
checking for short int... yes
checking size of short int... 2
checking for unsigned short int... yes
checking size of unsigned short int... 2
checking for int... yes
checking size of int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for long int... yes
checking size of long int... 4
checking for unsigned long int... yes
checking size of unsigned long int... 4
checking for long long int... yes
checking size of long long int... 8
checking for unsigned long long int... yes
checking size of unsigned long long int... 8
checking for sa_family_t... yes
checking size of sa_family_t... 1
checking for /proc/pid/fd directory... no
checking for msg_accrights field in struct msghdr... no
checking for msg_control field in struct msghdr... yes
checking if libc defines __progname... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  Makefile.in seems to ignore the -- 
datarootdir setting
config.status: creating flowd.8
config.status: creating flowd-reader.8
config.status: creating flowd.conf.5
config.status: creating flowd-pytypes.h
config.status: creating flowd-config.h
waffle% make
gcc -g -O2 -fPIC -c flowd.c
flowd.c: In function `usage':
flowd.c:1381: error: `PROGVER' undeclared (first use in this function)
flowd.c:1381: error: (Each undeclared identifier is reported only once
flowd.c:1381: error: for each function it appears in.)
flowd.c:1386: error: `SYSCONFDIR' undeclared (first use in this  
function)
flowd.c:1386: error: syntax error before string constant
flowd.c: In function `main':
flowd.c:1396: error: `SYSCONFDIR' undeclared (first use in this  
function)
flowd.c:1396: error: syntax error before string constant
*** Error code 1



More information about the netflow-tools mailing list