link with openssl library error - multiple definition of `_init'

ifreebiz at fastmail.fm ifreebiz
Thu Jun 15 16:06:16 PDT 2006


Hi,

I have a problem fixing this error. I build an openssl library for my
target, which is MIPS based. But I have problem linking the supplicant
to the openssl library. Does any one know how to fix this?

Thanks, Andrew

cc -MMD -O2 -Wall -g -DOPENSSL_DOING_MAKEDEPEND -DOPENSSL_NO_KRB5
-DOPENSSL_NO_ENGINE -I. -I../utils -I../hostapd
-I/vobs/sb/my-test/tools/mipsel-linux-uclibc/include
-DCONFIG_BACKEND_FILE -DEAP_TLS -DEAP_TTLS -DEAP_MD5 -DEAP_MSCHAPv2
-DIEEE8021X_EAPOL -DEAP_TLS_FUNCS -DCONFIG_SMARTCARD -DCONFIG_CTRL_IFACE
-DCONFIG_NO_WPA   -c -o main.o main.c
cc -o mymini_supplicant config.o eloop.o common.o md5.o rc4.o sha1.o
config_file.o base64.o l2_packet_linux.o eap_tls.o eap_ttls.o eap_md5.o
eap_mschapv2.o mymini_sm.o eap.o eap_tls_common.o tls_openssl.o
ms_funcs.o crypto.o ctrl_iface.o mymini_supplicant.o events.o
al_message_handler.o main.o  
-L/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib -lssl -lcrypto -ldl
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so: In function
`_init':
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so(.init+0x0):
multiple definition of `_init'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/crti.o(.init+0x0):initfini.c:
first defined here 
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so: In function
`_fini':
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so(.fini+0x0):
multiple definition of `_fini'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/crti.o(.fini+0x0):initfini.c:
first defined here 
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so(*ABS*+0x2b08c):
multiple definition of `_GLOBAL_OFFSET_TABLE_'
/vobs/sb/linux_tools/montavista/hardhat/devkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/crtbegin.o(.got+0x0):
first defined here
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so(*ABS*+0xe4c3c):
multiple definition of `_DYNAMIC'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: In function
`_init':
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so(.init+0x0):
multiple definition of `_init'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/crti.o(.init+0x0):initfini.c:
first defined here 
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: In function
`_edata':
krb5_asn.c(*ABS*+0xe51fc): multiple definition of `__bss_start'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: In function
`_fini':
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so(.fini+0x0):
multiple definition of `_fini'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/crti.o(.fini+0x0):initfini.c:
first defined here 
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: In function
`_edata':
krb5_asn.c(*ABS*+0xe51fc): multiple definition of `_edata'
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so(*ABS*+0xe4d28):
multiple definition of `_GLOBAL_OFFSET_TABLE_'
/vobs/sb/linux_tools/montavista/hardhat/devkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/crtbegin.o(.got+0x0):
first defined here
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: In function
`_end':
krb5_asn.c(*ABS*+0xe8978): multiple definition of `_end'
/vobs/sb/linux_tools/montavista/hardhat/devkit/mips/fp_le/bin/../lib/gcc-lib/mipsel-hardhat-linux/2.95.3/crtbegin.o(.dynamic+0x0):
multiple definition of `_DYNAMIC'
/vobs/sb/linux_tools/montavista/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so: linking PIC
files with non-PIC files
Bad value: failed to merge target specific data of file
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libssl.so
/vobs/sb/linux_tools/montavista/hardhat/devkit/mips/fp_le/bin/../mipsel-hardhat-linux/bin/ld:
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so: linking PIC
files with non-PIC files
Bad value: failed to merge target specific data of file
/vobs/sb/my-test/tools/mipsel-linux-uclibc/lib/libcrypto.so
collect2: ld returned 1 exit status
make[2]: *** [mymini_supplicant] Error 1
make[2]: Leaving directory `/vob/wibb_cpe/vendor/supplicant'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/vob/wibb_cpe/vendor/supplicant'
make: *** [supplicant] Error 2

-- 
http://www.fastmail.fm - The way an email service should be





More information about the Hostap mailing list