rlm_dbm build error in CVS head

Daniel Larsson daniel.larsson at servicefactory.com
Mon Nov 27 14:58:25 CET 2006


On Mon, 2006-11-27 at 15:19 +0200, Peter Nixon wrote:
> Somewhere between freeradius-snapshot-20061014 and 
> freeradius-snapshot-20061127 someone appears to have broken rlm_dbm (Yep. 
> I've been busy and didn't get around to updating my snapshot rpms for over a 
> month :-)
> 
> The same error occurs on all SUSE versions from 9 through to 10.2 beta.

Sounds like conflicting definitions of WITH_UDPFROMTO between compiles
of libradius? 

> 
> Making all in rlm_dbm...
> gmake[6]: Entering directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src/modules/rlm_dbm'
> /usr/src/packages/BUILD/freeradius-snapshot-20061127/libtool --mode=compile 
> gcc  -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm.c
> mkdir .libs
>  
> gcc -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm.c  -fPIC -DPIC -o .libs/rlm_dbm.o
> rlm_dbm.c: In function 'sm_parse_user':
> rlm_dbm.c:179: warning: assignment discards qualifiers from pointer target 
> type
> rlm_dbm.c:213: warning: passing argument 2 of 'paircompare' discards 
> qualifiers from pointer target type
>  
> gcc -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm.c -o rlm_dbm.o >/dev/null 2>&1
> /usr/src/packages/BUILD/freeradius-snapshot-20061127/libtool --mode=link 
> gcc -release 2.0.0-pre0 \
> 	-module -export-dynamic   -o rlm_dbm.la     \
> 	-rpath /usr/lib64/freeradius rlm_dbm.lo 
> rlm_dbm.c /usr/src/packages/BUILD/freeradius-snapshot-20061127/src/lib/libradius.la 
> \
> 	-lndbm  -lnsl -lresolv  -lpthread
> gcc -shared  .libs/rlm_dbm.o  -Wl,--rpath -Wl,/usr/src/packages/BUILD/freeradius-snapshot-20061127/src/lib/.libs -Wl,--rpath -Wl,/usr/lib64/freeradius /usr/src/packages/BUILD/freeradius-snapshot-20061127/src/lib/.libs/libradius.so -lndbm -lnsl -lresolv -lpthread  -Wl,-soname -Wl,rlm_dbm-2.0.0-pre0.so -o .libs/rlm_dbm-2.0.0-pre0.so
> (cd .libs && rm -f rlm_dbm.so && ln -s rlm_dbm-2.0.0-pre0.so rlm_dbm.so)
> ar cru .libs/rlm_dbm.a  rlm_dbm.o
> ranlib .libs/rlm_dbm.a
> creating rlm_dbm.la
> (cd .libs && rm -f rlm_dbm.la && ln -s ../rlm_dbm.la rlm_dbm.la)
> /usr/src/packages/BUILD/freeradius-snapshot-20061127/libtool --mode=compile 
> gcc  -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm_parser.c
>  
> gcc -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm_parser.c  -fPIC -DPIC -o .libs/rlm_dbm_parser.o
> rlm_dbm_parser.c: In function 'storecontent':
> rlm_dbm_parser.c:165: warning: assignment discards qualifiers from pointer 
> target type
>  
> gcc -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC -fstack-protector -I/usr/src/packages/BUILD/freeradius-snapshot-20061127/src -DHAVE_NDBM_H -c 
> rlm_dbm_parser.c -o rlm_dbm_parser.o >/dev/null 2>&1
> /usr/src/packages/BUILD/freeradius-snapshot-20061127/libtool --mode=link gcc   
> \
> 		-o rlm_dbm_parser 
> rlm_dbm_parser.lo ../../lib/libradius.la -lndbm  -lnsl -lresolv  -lpthread
> gcc -o .libs/rlm_dbm_parser .libs/rlm_dbm_parser.o  ../../lib/.libs/libradius.so -lndbm -lnsl -lresolv -lpthread  -Wl,--rpath -Wl,/usr/lib64/freeradius
> ../../lib/.libs/libradius.so: undefined reference to `recvfromto'
> ../../lib/.libs/libradius.so: undefined reference to `sendfromto'
> ../../lib/.libs/libradius.so: undefined reference to `udpfromto_init'
> collect2: ld returned 1 exit status
> gmake[6]: *** [rlm_dbm_parser] Error 1
> gmake[6]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src/modules/rlm_dbm'
> gmake[5]: *** [common] Error 2
> gmake[5]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src/modules'
> gmake[4]: *** [all] Error 2
> gmake[4]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src/modules'
> gmake[3]: *** [common] Error 2
> gmake[3]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src'
> gmake[2]: *** [all] Error 2
> gmake[2]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127/src'
> gmake[1]: *** [common] Error 2
> gmake[1]: Leaving directory 
> `/usr/src/packages/BUILD/freeradius-snapshot-20061127'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.35808 (%build)




More information about the Freeradius-Devel mailing list