phaag / nfdump

Netflow processing tools
Other
770 stars 202 forks source link

Parallel build fail #32

Closed Pristavkin closed 7 years ago

Pristavkin commented 8 years ago

I was trying to update the package formula of nfdump at MacOS Brew package repository and found out that parallel build (which default for brew) of nfdump fails with error message of linker about missing library nfdump. The problem reproduces on debian 8.2 jessie.

Here is the log of build with error message:

avp@dtm:~/tmp/nfdump-1.6.15$ MAKEFLAGS=-j2 make
---- Skipped ----
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing   -o nfcapd nfcapd-nfcapd.o nfcapd-nfstatfile.o nfcapd-launch.o nfcapd-nfnet.o nfcapd-collector.o nfcapd-netflow_v1.o nfcapd-netflow_v5_v7.o nfcapd-netflow_v9.o nfcapd-ipfix.o nfcapd-bookkeeper.o nfcapd-expire.o  -lnfdump  -lresolv  -lbz2
libtool: link: gcc -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -o nfcapd nfcapd-nfcapd.o nfcapd-nfstatfile.o nfcapd-launch.o nfcapd-nfnet.o nfcapd-collector.o nfcapd-netflow_v1.o nfcapd-netflow_v5_v7.o nfcapd-netflow_v9.o nfcapd-ipfix.o nfcapd-bookkeeper.o nfcapd-expire.o  -lnfdump -lresolv -lbz2
/usr/bin/ld: cannot find -lnfdump
collect2: error: ld returned 1 exit status
Makefile:920: recipe for target 'nfcapd' failed
make[3]: *** [nfcapd] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -ggdb -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -MT scanner.lo -MD -MP -MF .deps/scanner.Tpo -c scanner.c -o scanner.o >/dev/null 2>&1
make[3]: Leaving directory '/home/avp/tmp/nfdump-1.6.15/bin'
Makefile:778: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/avp/tmp/nfdump-1.6.15/bin'
Makefile:402: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/avp/tmp/nfdump-1.6.15'
Makefile:334: recipe for target 'all' failed
make: *** [all] Error 2
phaag commented 7 years ago

Fix added.