FreeRadius 2.1.10 Install Failure -- undefined reference to `pcap_fopen_offline'

Saqib Ali (saqib) saqib at cisco.com
Wed May 11 20:22:38 CEST 2011


Hi Folks,

 

I just joined the mailer so I apologize if this has been asked before.
I just attempted to install FreeRadius 2.1.10 using the following steps:

 

1)  Downloaded
ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.1.10.tar.gz

2)  gunzip and untar

3)  ./configure

4) make

 

At this point make fails with the following error:

 

/root/freeradius-server-2.1.10/libtool --mode=compile gcc  -g -O2
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG
-I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5  -c radconf2xml.c

gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG -I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5 -c radconf2xml.c  -fPIC -DPIC -o .libs/radconf2xml.o

gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG -I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5 -c radconf2xml.c -o radconf2xml.o >/dev/null 2>&1

/root/freeradius-server-2.1.10/libtool --mode=link gcc   -o radconf2xml
radconf2xml.lo
/root/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la util.lo
log.lo conffile.lo -lnsl -lresolv  -lpthread

gcc -o .libs/radconf2xml .libs/radconf2xml.o .libs/util.o .libs/log.o
.libs/conffile.o
/root/freeradius-server-2.1.10/src/lib/.libs/libfreeradius-radius.so
-lnsl -lresolv -lpthread  -Wl,--rpath -Wl,/usr/local/lib

creating radconf2xml

/root/freeradius-server-2.1.10/libtool --mode=compile gcc  -g -O2
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -DNDEBUG
-I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5 -c radsniff.c

gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG -I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5 -c radsniff.c  -fPIC -DPIC -o .libs/radsniff.o

radsniff.c: In function `got_packet':

radsniff.c:231: warning: assignment discards qualifiers from pointer
target type

radsniff.c: In function `main':

radsniff.c:467: warning: implicit declaration of function
`pcap_fopen_offline'

radsniff.c:467: warning: assignment makes pointer from integer without a
cast

radsniff.c:489: warning: implicit declaration of function
`pcap_dump_fopen'

radsniff.c:489: warning: assignment makes pointer from integer without a
cast

gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE
-DNDEBUG -I/root/freeradius-server-2.1.10/src
-DHOSTINFO=\"x86_64-unknown-linux-gnu\" -DRADIUSD_VERSION=\"2.1.10\"
-DOPENSSL_NO_KRB5 -c radsniff.c -o radsniff.o >/dev/null 2>&1

/root/freeradius-server-2.1.10/libtool --mode=link gcc   -o radsniff
radsniff.lo
/root/freeradius-server-2.1.10/src/lib/libfreeradius-radius.la -lnsl
-lresolv  -lpthread -lpcap

gcc -o .libs/radsniff .libs/radsniff.o
/root/freeradius-server-2.1.10/src/lib/.libs/libfreeradius-radius.so
-lnsl -lresolv -lpthread -lpcap  -Wl,--rpath -Wl,/usr/local/lib

.libs/radsniff.o(.text+0xd13): In function `main':

/root/freeradius-server-2.1.10/src/main/radsniff.c:489: undefined
reference to `pcap_dump_fopen'

.libs/radsniff.o(.text+0xdb3):/root/freeradius-server-2.1.10/src/main/ra
dsniff.c:467: undefined reference to `pcap_fopen_offline'

collect2: ld returned 1 exit status

gmake[4]: *** [radsniff] Error 1

gmake[4]: Leaving directory `/root/freeradius-server-2.1.10/src/main'

gmake[3]: *** [main] Error 2

gmake[3]: Leaving directory `/root/freeradius-server-2.1.10/src'

gmake[2]: *** [all] Error 2

gmake[2]: Leaving directory `/root/freeradius-server-2.1.10/src'

gmake[1]: *** [src] Error 2

gmake[1]: Leaving directory `/root/freeradius-server-2.1.10'

make: *** [all] Error 2

[root at ott-freerad-101 freeradius-server-2.1.10]# 

 

 

I'm running an enterprise variant of Red Hat 4 64-bit with kernel
2.6.9-89.0.11.EL and gcc version:

 

[root at ott-freerad-101 freeradius-server-2.1.10]# gcc -v

Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-java-awt=gtk
--host=x86_64-redhat-linux

Thread model: posix

gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)

[root at ott-freerad-101 freeradius-server-2.1.10]#

 

Note that this is on a fresh install of Linux and I did not have
FreeRadius running on this machine before.  Any idea what I am doing
wrong?

 

Thanks,

 

Saqib

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110511/e3b98c1f/attachment.html>


More information about the Freeradius-Users mailing list