Error compiling cvs-snapshot on FreeBSD 5.4-RELEASE

Valeriy V. Peshkoff peshkoff at gmail.com
Wed Aug 24 16:11:02 CEST 2005


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 at quantum.ru
+7 (812) 327-6131
+7 (812) 327-1442


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3174 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20050824/8526dff1/attachment.bin>


More information about the Freeradius-Users mailing list