VUTBR / libnf

GNU General Public License v3.0
2 stars 6 forks source link

Build fails on Ubuntu 16.04 #12

Open Kukant opened 7 years ago

Kukant commented 7 years ago

Does anyone have a clue what cut be wrong? Build log: ... Making all in bin make[2]: Entering directory '/home/zeusko/Plocha/libnf/bin' /bin/bash ../libtool --tag=CC --mode=link gcc -I../include -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -DLNF_THREADS -DNSEL -o nfdumpp nfdumpp.o flist.o cpucores.o output.o output_line.o output_nfdump.o output_ringbuf.o progress.o ../src/.libs/libnf.a -lpthread -lresolv -lpthread libtool: link: gcc -I../include -g -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -fno-strict-aliasing -DLNF_THREADS -DNSEL -o nfdumpp nfdumpp.o flist.o cpucores.o output.o output_line.o output_nfdump.o output_ringbuf.o progress.o ../src/.libs/libnf.a -lresolv -lpthread ../src/.libs/libnf.a(lnf_ringbuf.o): In function lnf_ring_init': /home/zeusko/Plocha/libnf/src/lnf_ringbuf.c:88: undefined reference toshm_open' /home/zeusko/Plocha/libnf/src/lnf_ringbuf.c:74: undefined reference to shm_unlink' /home/zeusko/Plocha/libnf/src/lnf_ringbuf.c:94: undefined reference toshm_open' ../src/.libs/libnf.a(lnf_ringbuf.o): In function lnf_ring_free': /home/zeusko/Plocha/libnf/src/lnf_ringbuf.c:314: undefined reference toshm_unlink' collect2: error: ld returned 1 exit status Makefile:392: recipe for target 'nfdumpp' failed make[2]: *** [nfdumpp] Error 1 ...

mgregr commented 7 years ago

Probably connected with e7d1a99. Try uncomment the line, it should help.

Kukant commented 7 years ago

That solved it, thanks.

tpoder1 commented 7 years ago

I would keep the issue open until we find some automatic/smart way to deal with -lrt option on various platforms.