Undefined Reference Error

Issues related to applications and software problems
Post Reply
Sarg0n
Posts: 4
Joined: 2017/12/14 15:06:02

Undefined Reference Error

Post by Sarg0n » 2018/01/16 18:22:59

Hello, I'm attempting to build Yet Another Flowmeter (YAF) from source and whenever I run the 'make' command, I receive the following error:

Code: Select all

[root@localhost yaf-2.9.3]# make
Making all in lua
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/lua'
make  all-recursive
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/lua'
Making all in src
make[3]: Entering directory `/opt/rpms/yaf-2.9.3/lua/src'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/opt/rpms/yaf-2.9.3/lua/src'
make[3]: Entering directory `/opt/rpms/yaf-2.9.3/lua'
make[3]: Leaving directory `/opt/rpms/yaf-2.9.3/lua'
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/lua'
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/lua'
Making all in airframe
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/airframe'
Making all in src
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/airframe/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/airframe/src'
Making all in include
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/airframe/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/airframe/include'
Making all in doc
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/airframe/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/airframe/doc'
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/airframe'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/airframe'
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/airframe'
Making all in libltdl
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/libltdl'
make  all-am
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/libltdl'
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/libltdl'
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/libltdl'
Making all in src
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/src'
Making all in applabel
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/src/applabel'
make[3]: Entering directory `/opt/rpms/yaf-2.9.3/src/applabel'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/opt/rpms/yaf-2.9.3/src/applabel'
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/src/applabel'
make[2]: Entering directory `/opt/rpms/yaf-2.9.3/src'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/opt/rpms/yaf-2.9.3/src'
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/src'
Making all in include
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/include'
Making all in etc
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/etc'
Making all in scripts
make[1]: Entering directory `/opt/rpms/yaf-2.9.3/scripts'
/bin/sh ../libtool  --tag=CC   --mode=link gcc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -g -O2   -L../airframe/src -lairframe -lglib-2.0   -pthread -L/usr/local/lib -lfixbuf -lpthread -lgthread-2.0 -lglib-2.0   -lpcre   -o getFlowKeyHash getFlowKeyHash-getFlowKeyHash.o  -lpcap -lm   -lz
libtool: link: gcc -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -pthread -o .libs/getFlowKeyHash getFlowKeyHash-getFlowKeyHash.o  -L../airframe/src /opt/rpms/yaf-2.9.3/airframe/src/.libs/libairframe.so -L/usr/local/lib /usr/local/lib/libfixbuf.so -lpthread -lgthread-2.0 -lglib-2.0 -lpcre -lpcap -lm -lz -pthread
/bin/ld: /usr/local/lib/libpcap.a(pcap-linux.o): undefined reference to symbol 'pfring_send'
/usr/local/lib/libpcap.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [getFlowKeyHash] Error 1
make[1]: Leaving directory `/opt/rpms/yaf-2.9.3/scripts'
make: *** [all-recursive] Error 1
[root@localhost yaf-2.9.3]# 
I have tried searching for help online with this specific issue, but have been unsuccessful. I am not at an expert level for compiling so does anybody see anything obvious that I should modify? I thought maybe it was a link error of some sort, but I'm not totally sure what to do. Thanks for any assistance.

Sarg0n
Posts: 4
Joined: 2017/12/14 15:06:02

Re: Undefined Reference Error

Post by Sarg0n » 2018/01/16 20:19:38

Okay...sorry but disregard this. The fix for me was just to yum remove kernel-devel and reinstall via rpm...not sure why that worked but it did.

Post Reply