Error compiling cvs-snapshot on FreeBSD 5.4-RELEASE
Hi! I'm still unable to compile CVS version of freeradius on Freebsd Configure it like that ./configure --prefix=/usr/local/radius Only this seems bad to me ..... checking net/if.h usability... no checking net/if.h presence... yes configure: WARNING: net/if.h: present but cannot be compiled configure: WARNING: net/if.h: check for missing prerequisite headers? configure: WARNING: net/if.h: see the Autoconf documentation configure: WARNING: net/if.h: section "Present But Cannot Be Compiled" configure: WARNING: net/if.h: proceeding with the preprocessor's result configure: WARNING: net/if.h: in the future, the compiler will take precedence configure: WARNING: ## ------------------------------------------ ## configure: WARNING: ## Report this to the AC_PACKAGE_NAME lists. ## configure: WARNING: ## ------------------------------------------ ## checking for net/if.h... yes ...... radius1[root]:.../freeradius-snapshot-20050823 # gmake all gmake[1]: Entering directory `/root/freeradius-snapshot-20050823' Making all in libltdl... gmake[2]: Entering directory `/root/freeradius-snapshot-20050823/libltdl' /usr/local/bin/gmake all-am gmake[3]: Entering directory `/root/freeradius-snapshot-20050823/libltdl' /usr/local/bin/bash ./libtool --mode=compile --tag=CC gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -c -o ltdl.lo ltdl.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -c ltdl.c -fPIC -DPIC -o .libs/ltdl.o ltdl.c:119:5: warning: "HAVE_ARGZ_H" is not defined ltdl.c:131:5: warning: "WITH_DMALLOC" is not defined ltdl.c:229:5: warning: "WITH_DMALLOC" is not defined ltdl.c:563:7: warning: "HAVE_ARGZ_APPEND" is not defined ltdl.c:605:7: warning: "HAVE_ARGZ_CREATE_SEP" is not defined ltdl.c:668:7: warning: "HAVE_ARGZ_INSERT" is not defined ltdl.c:725:7: warning: "HAVE_ARGZ_NEXT" is not defined ltdl.c: In function `rpl_argz_next': ltdl.c:752: warning: cast discards qualifiers from pointer target type ltdl.c:770:7: warning: "HAVE_ARGZ_STRINGIFY" is not defined ltdl.c:1057:5: warning: "HAVE_SYS_DL_H" is not defined ltdl.c: At top level: ltdl.c:1104: warning: function declaration isn't a prototype ltdl.c:1119: warning: function declaration isn't a prototype ltdl.c:1135: warning: function declaration isn't a prototype ltdl.c:1165:5: warning: "HAVE_SHL_LOAD" is not defined ltdl.c:1519:5: warning: "HAVE_DLD" is not defined ltdl.c:1587:5: warning: "HAVE_DYLD" is not defined ltdl.c:1948: warning: function declaration isn't a prototype ltdl.c:1967: warning: function declaration isn't a prototype ltdl.c:1989: warning: function declaration isn't a prototype ltdl.c:1997: warning: function declaration isn't a prototype ltdl.c:2035: warning: function declaration isn't a prototype ltdl.c: In function `presym_open': ltdl.c:2067: warning: cast discards qualifiers from pointer target type ltdl.c: At top level: ltdl.c:2085: warning: function declaration isn't a prototype ltdl.c:2095: warning: function declaration isn't a prototype ltdl.c:2214:5: warning: "HAVE_SHL_LOAD" is not defined ltdl.c:2223:5: warning: "HAVE_DLD" is not defined ltdl.c:2226:5: warning: "HAVE_DYLD" is not defined ltdl.c:2455: warning: function declaration isn't a prototype ltdl.c: In function `foreach_dirinpath': ltdl.c:2684: warning: comparison between signed and unsigned ltdl.c:2693: warning: comparison between signed and unsigned ltdl.c: In function `try_dlopen': ltdl.c:3137: warning: comparison between signed and unsigned ltdl.c: In function `lt_dlpath_insertdir': ltdl.c:3989: warning: comparison between signed and unsigned ltdl.c: In function `lt_dlinsertsearchdir': ltdl.c:4051: warning: cast discards qualifiers from pointer target type ltdl.c: At top level: ltdl.c:2769: warning: unused parameter 'ignored' ltdl.c:1135: warning: unused parameter 'loader_data' ltdl.c:1119: warning: unused parameter 'loader_data' ltdl.c:1104: warning: unused parameter 'loader_data' ltdl.c:1989: warning: unused parameter 'loader_data' ltdl.c:2095: warning: unused parameter 'loader_data' ltdl.c:2085: warning: unused parameter 'loader_data' ltdl.c:2035: warning: unused parameter 'loader_data' ltdl.c:1948: warning: unused parameter 'loader_data' gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -c ltdl.c -o ltdl.o
/dev/null 2>&1 /usr/local/bin/bash ./libtool --mode=link --tag=CC gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -o libltdl.la -rpath /usr/local/radius//lib -no-undefined -version-info 4:0:1 ltdl.lo -lcrypto -lpthread gcc -shared .libs/ltdl.o -lcrypto -lpthread -Wl,-soname -Wl,libltdl.so.4 -o .libs/libltdl.so.4 (cd .libs && rm -f libltdl.so && ln -s libltdl.so.4 libltdl.so) (cd .libs && rm -f libltdl.so && ln -s libltdl.so.4 libltdl.so) ar cru .libs/libltdl.a ltdl.o ranlib .libs/libltdl.a creating libltdl.la (cd .libs && rm -f libltdl.la && ln -s ../libltdl.la libltdl.la) gmake[3]: Leaving directory `/root/freeradius-snapshot-20050823/libltdl' gmake[2]: Leaving directory `/root/freeradius-snapshot-20050823/libltdl' Making all in src... gmake[2]: Entering directory `/root/freeradius-snapshot-20050823/src' gmake[3]: Entering directory `/root/freeradius-snapshot-20050823/src' Making all in include... gmake[4]: Entering directory `/root/freeradius-snapshot-20050823/src/include' gmake[4]: Цель `all' не требует выполнения команд. gmake[4]: Leaving directory `/root/freeradius-snapshot-20050823/src/include' Making all in lib... gmake[4]: Entering directory `/root/freeradius-snapshot-20050823/src/lib' /root/freeradius-snapshot-20050823/libtool --mode=compile gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c dict.c mkdir .libs gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c dict.c -fPIC -DPIC -o .libs/dict.o In file included from ../include/libradius.h:38, from dict.c:42: /usr/include/sys/socket.h:243: error: redefinition of `struct sockaddr_storage' dict.c: In function `dict_stat_free': dict.c:113: warning: passing arg 1 of `free' discards qualifiers from pointer target type dict.c:115: warning: passing arg 1 of `free' discards qualifiers from pointer target type dict.c:125: warning: passing arg 1 of `free' discards qualifiers from pointer target type dict.c: In function `dict_attrbyname': dict.c:1155: warning: comparison between signed and unsigned gmake[4]: *** [dict.lo] Ошибка 1 gmake[4]: Leaving directory `/root/freeradius-snapshot-20050823/src/lib' gmake[3]: *** [common] Ошибка 2 gmake[3]: Leaving directory `/root/freeradius-snapshot-20050823/src' gmake[2]: *** [all] Ошибка 2 gmake[2]: Leaving directory `/root/freeradius-snapshot-20050823/src' gmake[1]: *** [common] Ошибка 2 gmake[1]: Leaving directory `/root/freeradius-snapshot-20050823' gmake: *** [all] Ошибка 2 radius1[root]:.../freeradius-snapshot-20050823 #
-- Russia, St. Petersburg Quantum Communications Valeriy V. Peshkov | simps@quantum.ru +7 (812) 327-6131 +7 (812) 327-1442
Valeriy V. Peshkoff wrote:
I'm still unable to compile CVS version of freeradius on Freebsd
[...]
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c dict.c -fPIC -DPIC -o .libs/dict.o In file included from ../include/libradius.h:38, from dict.c:42: /usr/include/sys/socket.h:243: error: redefinition of `struct sockaddr_storage'
It seems to me the bug is either in autoconf or in FreeBSD headers. I don't know what could be done in FreeRADIUS to work around it. You could possibly try: 1. Install the latest autoconf version and run a "make configure". 2. If it still doesn't work, try to use CFLAGS=-DHAVE_STRUCT_SOCKADDR_STORAGE -- Nicolas Baradakis
Nicolas Baradakis пишет:
Valeriy V. Peshkoff wrote:
I'm still unable to compile CVS version of freeradius on Freebsd
[...]
gcc -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LIBRADIUS -I../include -DHMAC_SHA1_DATA_PROBLEMS -c dict.c -fPIC -DPIC -o .libs/dict.o In file included from ../include/libradius.h:38, from dict.c:42: /usr/include/sys/socket.h:243: error: redefinition of `struct sockaddr_storage'
It seems to me the bug is either in autoconf or in FreeBSD headers. I don't know what could be done in FreeRADIUS to work around it.
You could possibly try: 1. Install the latest autoconf version and run a "make configure". 2. If it still doesn't work, try to use CFLAGS=-DHAVE_STRUCT_SOCKADDR_STORAGE
But i've compile 1.0.4 version on this server without any problem -- Russia, St. Petersburg Quantum Communications Valeriy V. Peshkov | simps@quantum.ru +7 (812) 327-6131 +7 (812) 327-1442
Valeriy V. Peshkoff wrote:
In file included from ../include/libradius.h:38, from dict.c:42: /usr/include/sys/socket.h:243: error: redefinition of `struct sockaddr_storage'
It seems to me the bug is either in autoconf or in FreeBSD headers. I don't know what could be done in FreeRADIUS to work around it.
You could possibly try: 1. Install the latest autoconf version and run a "make configure". 2. If it still doesn't work, try to use CFLAGS=-DHAVE_STRUCT_SOCKADDR_STORAGE
But i've compile 1.0.4 version on this server without any problem
Version 1.0.4 uses autoconf 2.13, lastest CVS uses autoconf 2.59. Did you try to regenerate "configure" with the autotools from the FreeBSD port ? -- Nicolas Baradakis
Nicolas Baradakis пишет:
Valeriy V. Peshkoff wrote:
In file included from ../include/libradius.h:38, from dict.c:42: /usr/include/sys/socket.h:243: error: redefinition of `struct sockaddr_storage'
It seems to me the bug is either in autoconf or in FreeBSD headers. I don't know what could be done in FreeRADIUS to work around it.
You could possibly try: 1. Install the latest autoconf version and run a "make configure". 2. If it still doesn't work, try to use CFLAGS=-DHAVE_STRUCT_SOCKADDR_STORAGE
But i've compile 1.0.4 version on this server without any problem
Version 1.0.4 uses autoconf 2.13, lastest CVS uses autoconf 2.59.
Did you try to regenerate "configure" with the autotools from the FreeBSD port ?
Yes but it doesn't help me. Your second variant help me but now i can't install freeadius. Got error when instaling peap Making install in rlm_eap_peap... gmake[10]: Entering directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap/types/rlm_eap_peap' if [ "xrlm_eap_peap" != "x" ]; then \ /root/freeradius-snapshot-20050823/libtool --mode=install /root/freeradius-snapshot-20050823/install-sh -c -c \ rlm_eap_peap.la /usr/local/radius//lib/rlm_eap_peap.la || exit ;\ rm -f /usr/local/radius//lib/rlm_eap_peap-1.1.0-pre0.la || exit %?; \ ln -s rlm_eap_peap.la /usr/local/radius//lib/rlm_eap_peap-1.1.0-pre0.la || exit ;\ fi libtool: install: warning: relinking `rlm_eap_peap.la' (cd /root/freeradius-snapshot-20050823/src/modules/rlm_eap/types/rlm_eap_peap; /usr/local/bin/bash /root/freeradius-snapshot-20050823/libtool --mode=relink gcc -release 1.1.0-pre0 -module -export-dynamic -o rlm_eap_peap.la -rpath /usr/local/radius//lib rlm_eap_peap.lo peap.lo ../../../../lib/libradius.la ../rlm_eap_tls/rlm_eap_tls.la -L./../../libeap -leap -lcrypto -lssl -lcrypto -lcrypto -lpthread ) *** Warning: Linking the shared library rlm_eap_peap.la against the loadable module *** rlm_eap_tls.so is not portable! *** Warning: Linking the shared library rlm_eap_peap.la against the loadable module *** libeap.so is not portable! mv: rename rlm_eap_peap-1.1.0-pre0.so to rlm_eap_peap-1.1.0-pre0.soU: No such file or directory libtool: install: error: relink `rlm_eap_peap.la' with the above command before installing it gmake[10]: *** [install] Ошибка 1 gmake[10]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap/types/rlm_eap_peap' gmake[9]: *** [common] Ошибка 2 gmake[9]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap/types' gmake[8]: *** [install] Ошибка 2 gmake[8]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap/types' gmake[7]: *** [common] Ошибка 2 gmake[7]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap' gmake[6]: *** [install-types] Ошибка 2 gmake[6]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap' gmake[5]: *** [install] Ошибка 2 gmake[5]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules/rlm_eap' gmake[4]: *** [common] Ошибка 2 gmake[4]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules' gmake[3]: *** [install] Ошибка 2 gmake[3]: Leaving directory `/root/freeradius-snapshot-20050823/src/modules' gmake[2]: *** [common] Ошибка 2 gmake[2]: Leaving directory `/root/freeradius-snapshot-20050823/src' gmake[1]: *** [install] Ошибка 2 gmake[1]: Leaving directory `/root/freeradius-snapshot-20050823/src' gmake: *** [common] Ошибка 2 *** Error code 2 Stop in /root/freeradius-snapshot-20050823. radius1[root]:.../freeradius-snapshot-20050823 # ls -l /root/freeradius-snapshot-20050823/src/modules/rlm_eap/types/rlm_eap_peap total 234 drwxr-xr-x 2 root 101 512 24 авг 18:25 .libs drwxr-xr-x 2 507 101 512 23 авг 13:01 CVS -rw-r--r-- 1 root 101 488 24 авг 17:14 Makefile -rw-r--r-- 1 507 101 537 25 мар 02:04 Makefile.in -rw-r--r-- 1 root 101 533 24 авг 11:50 config.h -rw-r--r-- 1 507 101 471 29 дек 2004 config.h.in -rwxr-xr-x 1 507 101 100820 7 июл 2004 configure -rw-r--r-- 1 507 101 953 23 июн 2004 configure.in -rw-r--r-- 1 507 101 1607 21 ноя 2004 eap_peap.h -rw-r--r-- 1 507 101 23333 22 мар 03:57 peap.c -rw-r--r-- 1 root 101 303 24 авг 17:36 peap.lo -rw-r--r-- 1 root 101 45244 24 авг 17:36 peap.o -rw-r--r-- 1 507 101 7597 22 мар 03:53 rlm_eap_peap.c -rw-r--r-- 1 root 101 1613 24 авг 17:36 rlm_eap_peap.la -rw-r--r-- 1 root 101 327 24 авг 17:36 rlm_eap_peap.lo -rw-r--r-- 1 root 101 34372 24 авг 17:36 rlm_eap_peap.o radius1[root]:.../freeradius-snapshot-20050823 # ls -l /root/freeradius-snapshot-20050823/src/modules/rlm_eap/types/rlm_eap_peap/.libs/ total 160 -rw-r--r-- 1 root 101 45912 24 авг 17:36 peap.o -rw-r--r-- 1 root 101 79846 24 авг 17:36 rlm_eap_peap.a lrwxr-xr-x 1 root 101 18 24 авг 17:36 rlm_eap_peap.la -> ../rlm_eap_peap.la -rw-r--r-- 1 root 101 1063 24 авг 17:36 rlm_eap_peap.lai -rw-r--r-- 1 root 101 34664 24 авг 17:36 rlm_eap_peap.o lrwxr-xr-x 1 root 101 26 24 авг 17:36 rlm_eap_peap.so -> rlm_eap_peap-1.1.0-pre0.so -- Russia, St. Petersburg Quantum Communications Valeriy V. Peshkov | simps@quantum.ru +7 (812) 327-6131 +7 (812) 327-1442
participants (2)
-
Nicolas Baradakis -
Valeriy V. Peshkoff