FreeRADIUS 2.1.7 and 2.1.8 fail to build

Joey Officer JOfficer at istreamfs.com
Tue Mar 16 23:01:13 CET 2010


Trying to build FreeRADIUS from Gentoo's package system, or manually
building it from the downloaded sources and I receive the following
errors:

building manually:
gcc .libs/radiusdS.o -o .libs/radiusd .libs/acct.o .libs/auth.o
.libs/client.o .libs/conffile.o .libs/crypt.o .libs/exec.o .libs/files.o
.libs/listen.o .libs/log.o .libs/mainconfig.o .libs/modules.o
.libs/modcall.o .libs/radiusd.o .libs/stats.o .libs/session.o
.libs/threads.o .libs/util.o .libs/valuepair.o .libs/version.o
.libs/xlat.o .libs/event.o .libs/realms.o .libs/evaluate.o .libs/vmps.o
.libs/detail.o -Wl,--export-dynamic
/root/build/freeradius-server-2.1.8/src/lib/.libs/libfreeradius-radius.s
o -lnsl -lresolv -lpthread -lcrypt /usr/lib/libltdl.so -lssl -lcrypto
-ldl
.libs/modules.o: In function `setup_modules':
/root/build/freeradius-server-2.1.8/src/main/modules.c:1358: undefined
reference to `lt__PROGRAM__LTX_preloaded_symbols'
collect2: ld returned 1 exit status
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory
`/root/build/freeradius-server-2.1.8/src/main'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory `/root/build/freeradius-server-2.1.8/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/root/build/freeradius-server-2.1.8/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory `/root/build/freeradius-server-2.1.8'
make: *** [all] Error 2

I found the following thread:

http://lists.cistron.nl/pipermail/freeradius-users/2009-September/msg001
49.html 

I see that when I try to build manually I am getting basically the same
thing.  I'm the first to admit I may be missing something in Alan's
notes about updating the freeradius source code.  What I believe he
meant was to update ltmain.sh in the root of the extracted FreeRADIUS
directory.

I made the following change:

from: #define lt_preloaded_symbols some_other_symbol
to: #define lt__PROGRAM__LTX_preloaded_symbols
t__PROGRAM__LTX_preloaded_symbols

I run make clean, configure, and make again, and still receive the same
error.  So I'm probably missing something in this step.

When I try to compile from within Gentoo's package management tools, I
get the following:

gentoo emerge:
libtool: compile:  i686-pc-linux-gnu-gcc -O2 -mtune=i686 -pipe -Wall
-D_GNU_SOURCE -DNDEBUG
-I/var/tmp/portage/net-dialup/freeradius-2.1.7/work/freeradius-server-2.
1.7/src -DHOSTINFO=\"i686-pc-linux-gnu\" -DRADIUSD_VERSION=\"2.1.7\"
-DOPENSSL_NO_KRB5 -c event.c  -fPIC -DPIC -o .libs/event.o
event.c: In function 'wait_a_bit':
event.c:1163: warning: implicit declaration of function 'pthread_equal'
event.c:1163: error: 'REQUEST' has no member named 'child_pid'
event.c:1163: error: 'NO_SUCH_CHILD_PID' undeclared (first use in this
function)
event.c:1163: error: (Each undeclared identifier is reported only once
event.c:1163: error: for each function it appears in.)
event.c:1174: error: 'wait_for_child_to_die' undeclared (first use in
this function)
event.c: In function 'radius_event_init':
event.c:3440: warning: unused variable 'attr'
gmake[4]: *** [event.lo] Error 1
gmake[4]: Leaving directory
`/var/tmp/portage/net-dialup/freeradius-2.1.7/work/freeradius-server-2.1
.7/src/main'
gmake[3]: *** [common] Error 2
gmake[3]: Leaving directory
`/var/tmp/portage/net-dialup/freeradius-2.1.7/work/freeradius-server-2.1
.7/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/var/tmp/portage/net-dialup/freeradius-2.1.7/work/freeradius-server-2.1
.7/src'
gmake[1]: *** [common] Error 2
gmake[1]: Leaving directory
`/var/tmp/portage/net-dialup/freeradius-2.1.7/work/freeradius-server-2.1
.7'
make: *** [all] Error 2

Unfortunately, I wasn't able to find reference of this within the
existing archives for FreeRADIUS.

One thing to point out is that the Gentoo package is based off of 2.1.7
and when I attempt to build from source it is 2.1.8.

Any help would be fantastic.  If possible I'd prefer to get it working
within the existing package system, using the build from source as a
last resort.

Thanks,
joey





More information about the Freeradius-Users mailing list