can not build FreeRadius 2.2.0
Eugen Konkov
kes-kes at yandex.ru
Sat Dec 15 15:37:45 CET 2012
Hi
Building freeradiusd on
# uname -a
FreeBSD aki 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Wed Jun 13 13:46:00 EEST 2012 adm at aki:/usr/obj/usr/src/sys/AKI i386
get this error:
xlat.c: In function 'xlat_packet':
xlat.c:191: warning: 'count' may be used uninitialized in this function
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c xlat.c -o xlat.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=compile cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c event.c
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c event.c -fPIC -DPIC -o .libs/event.o
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c event.c -o event.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=compile cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c realms.c
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c realms.c -fPIC -DPIC -o .libs/realms.o
realms.c: In function 'realm_add':
realms.c:1476: warning: suggest parentheses around && within ||
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c realms.c -o realms.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=compile cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c evaluate.c
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c evaluate.c -fPIC -DPIC -o .libs/evaluate.o
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c evaluate.c -o evaluate.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=compile cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c vmps.c
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c vmps.c -fPIC -DPIC -o .libs/vmps.o
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c vmps.c -o vmps.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=compile cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c detail.c
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c detail.c -fPIC -DPIC -o .libs/detail.o
libtool: compile: cc -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0 -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -O2 -pipe -I/usr/local/include -L/usr/local/lib -fno-strict-aliasing -Wall -D_GNU_SOURCE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DNDEBUG -DWITH_SYSTEM_LTDL -I/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src -DHOSTINFO=\"i386-portbld-freebsd10.0\" -DRADIUSD_VERSION=\"2.2.0\" -I/usr/include -DOPENSSL_NO_KRB5 -c detail.c -o detail.o >/dev/null 2>&1
/usr/local/bin/libtool --mode=link cc -export-dynamic -dlopen self \
-L/usr/local/lib -pthread -static -all-static -o radiusd acct.lo auth.lo client.lo conffile.lo crypt.lo exec.lo files.lo listen.lo log.lo mainconfig.lo modules.lo modcall.lo radiusd.lo stats.lo soh.lo session.lo threads.lo util.lo valuepair.lo version.lo xlat.lo event.lo realms.lo evaluate.lo vmps.lo detail.lo \
-dlpreopen ../modules/rlm_acctlog/rlm_acctlog.la -dlpreopen ../modules/rlm_acct_unique/rlm_acct_unique.la -dlpreopen ../modules/rlm_always/rlm_always.la -dlpreopen ../modules/rlm_attr_filter/rlm_attr_filter.la -dlpreopen ../modules/rlm_attr_rewrite/rlm_attr_rewrite.la -dlpreopen ../modules/rlm_cache/rlm_cache.la -dlpreopen ../modules/rlm_chap/rlm_chap.la -dlpreopen ../modules/rlm_checkval/rlm_checkval.la -dlpreopen ../modules/rlm_copy_packet/rlm_copy_packet.la -dlpreopen ../modules/rlm_counter/rlm_counter.la -dlpreopen ../modules/rlm_dbm/rlm_dbm.la -dlpreopen ../modules/rlm_detail/rlm_detail.la -dlpreopen ../modules/rlm_digest/rlm_digest.la -dlpreopen ../modules/rlm_dynamic_clients/rlm_dynamic_clients.la -dlpreopen ../modules/rlm_eap/rlm_eap.la -dlpreopen ../modules/rlm_exec/rlm_exec.la -dlpreopen ../modules/rlm_expiration/rlm_expiration.la -dlpreopen ../modules/rlm_expr/rlm_expr.la -dlpreopen ../modules/rlm_fastusers/rlm_fastusers.la -dlpreopen ../modules/rlm_files/rlm_files.la -dlpreopen ../modules/rlm_ippool/rlm_ippool.la -dlpreopen ../modules/rlm_linelog/rlm_linelog.la -dlpreopen ../modules/rlm_logintime/rlm_logintime.la -dlpreopen ../modules/rlm_mschap/rlm_mschap.la -dlpreopen ../modules/rlm_otp/rlm_otp.la -dlpreopen ../modules/rlm_pam/rlm_pam.la -dlpreopen ../modules/rlm_pap/rlm_pap.la -dlpreopen ../modules/rlm_passwd/rlm_passwd.la -dlpreopen ../modules/rlm_perl/rlm_perl.la -dlpreopen ../modules/rlm_policy/rlm_policy.la -dlpreopen ../modules/rlm_preprocess/rlm_preprocess.la -dlpreopen ../modules/rlm_radutmp/rlm_radutmp.la -dlpreopen ../modules/rlm_realm/rlm_realm.la -dlpreopen ../modules/rlm_replicate/rlm_replicate.la -dlpreopen ../modules/rlm_soh/rlm_soh.la -dlpreopen ../modules/rlm_sql/rlm_sql.la -dlpreopen ../modules/rlm_sqlcounter/rlm_sqlcounter.la -dlpreopen ../modules/rlm_sqlippool/rlm_sqlippool.la -dlpreopen ../modules/rlm_sql_log/rlm_sql_log.la -dlpreopen ../modules/rlm_unix/rlm_unix.la -dlpreopen ../modules/rlm_wimax/rlm_wimax.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_leap/rlm_eap_leap.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_ttls/rlm_eap_ttls.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_sim/rlm_eap_sim.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.la -dlpreopen ../modules/rlm_eap/types/rlm_eap_gtc/rlm_eap_gtc.la /usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src/lib/libfreeradius-radius.la -lpthread ../modules/rlm_eap/libeap/libfreeradius-eap.la \
-lcrypt -lltdl -lcrypto -lssl -lcrypto
libtool: link: rm -f .libs/radiusd.nm .libs/radiusd.nmS .libs/radiusd.nmT
libtool: link: (cd .libs && cc -O2 -pipe -fno-strict-aliasing -c -fno-builtin "radiusdS.c")
libtool: link: rm -f ".libs/radiusdS.c" ".libs/radiusd.nm" ".libs/radiusd.nmS" ".libs/radiusd.nmT"
libtool: link: cc .libs/radiusdS.o -pthread -static -o 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/soh.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 ../modules/rlm_acctlog/.libs/rlm_acctlog.a -L/usr/local/lib ../modules/rlm_acct_unique/.libs/rlm_acct_unique.a ../modules/rlm_always/.libs/rlm_always.a ../modules/rlm_attr_filter/.libs/rlm_attr_filter.a ../modules/rlm_attr_rewrite/.libs/rlm_attr_rewrite.a ../modules/rlm_cache/.libs/rlm_cache.a ../modules/rlm_chap/.libs/rlm_chap.a ../modules/rlm_checkval/.libs/rlm_checkval.a ../modules/rlm_copy_packet/.libs/rlm_copy_packet.a ../modules/rlm_counter/.libs/rlm_counter.a ../modules/rlm_dbm/.libs/rlm_dbm.a ../modules/rlm_detail/.libs/rlm_detail.a ../modules/rlm_digest/.libs/rlm_digest.a ../modules/rlm_dynamic_clients/.libs/rlm_dynamic_clients.a ../modules/rlm_eap/.libs/rlm_eap.a ../modules/rlm_exec/.libs/rlm_exec.a ../modules/rlm_expiration/.libs/rlm_expiration.a ../modules/rlm_expr/.libs/rlm_expr.a ../modules/rlm_fastusers/.libs/rlm_fastusers.a ../modules/rlm_files/.libs/rlm_files.a ../modules/rlm_ippool/.libs/rlm_ippool.a /usr/local/lib/libgdbm.so ../modules/rlm_linelog/.libs/rlm_linelog.a ../modules/rlm_logintime/.libs/rlm_logintime.a ../modules/rlm_mschap/.libs/rlm_mschap.a ../modules/rlm_otp/.libs/rlm_otp.a ../modules/rlm_pam/.libs/rlm_pam.a -lpam ../modules/rlm_pap/.libs/rlm_pap.a ../modules/rlm_passwd/.libs/rlm_passwd.a ../modules/rlm_perl/.libs/rlm_perl.a -L/usr/local/lib/perl5/5.12.4/mach/CORE -lperl -lm -lutil ../modules/rlm_policy/.libs/rlm_policy.a ../modules/rlm_preprocess/.libs/rlm_preprocess.a ../modules/rlm_radutmp/.libs/rlm_radutmp.a ../modules/rlm_realm/.libs/rlm_realm.a ../modules/rlm_replicate/.libs/rlm_replicate.a ../modules/rlm_soh/.libs/rlm_soh.a ../modules/rlm_sql/.libs/rlm_sql.a ../modules/rlm_sqlcounter/.libs/rlm_sqlcounter.a ../modules/rlm_sqlippool/.libs/rlm_sqlippool.a ../modules/rlm_sql_log/.libs/rlm_sql_log.a ../modules/rlm_unix/.libs/rlm_unix.a ../modules/rlm_wimax/.libs/rlm_wimax.a ../modules/rlm_eap/types/rlm_eap_md5/.libs/rlm_eap_md5.a ../modules/rlm_eap/types/rlm_eap_leap/.libs/rlm_eap_leap.a ../modules/rlm_eap/types/rlm_eap_tls/.libs/rlm_eap_tls.a ../modules/rlm_eap/types/rlm_eap_ttls/.libs/rlm_eap_ttls.a ../modules/rlm_eap/types/rlm_eap_sim/.libs/rlm_eap_sim.a ../modules/rlm_eap/types/rlm_eap_peap/.libs/rlm_eap_peap.a /usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src/modules/rlm_eap/libeap/.libs/libfreeradius-eap.a ../modules/rlm_eap/types/rlm_eap_mschapv2/.libs/rlm_eap_mschapv2.a ../modules/rlm_eap/types/rlm_eap_gtc/.libs/rlm_eap_gtc.a ../modules/rlm_eap/libeap/.libs/libfreeradius-eap.a /usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src/lib/.libs/libfreeradius-radius.a -lpthread -lcrypt /usr/local/lib/libltdl.so -lssl -lcrypto -pthread -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib
/usr/bin/ld: attempted static link of dynamic object `/usr/local/lib/libgdbm.so'
libtool: link: rm -f ".libs/radiusdS.o"
gmake[4]: *** [radiusd] Error 1
gmake[4]: Leaving directory `/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src/main'
gmake[3]: *** [main] Error 2
gmake[3]: Leaving directory `/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/ports/net/freeradius2/work/freeradius-server-2.2.0/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/usr/ports/net/freeradius2/work/freeradius-server-2.2.0'
gmake: *** [all] Error 2
*** Error code 1
Stop in /usr/ports/net/freeradius2.
*** Error code 1
--
С уважением,
Eugen mailto:kes-kes at yandex.ru
More information about the Freeradius-Users
mailing list