I got the same issue starting 10/15/2011. Will keep an eye on this thread for solution.
Thanks,
--
Tiến Nguyễn
www.tplogic.com



On Sat, Oct 15, 2011 at 8:08 AM, Panda Resistor <pandaresistor@gmail.com> wrote:
Hiya,

Currently openssl-native won't compile for me. I'm running a VirtualBox machine with Ubuntu 11.10 and have followed the instructions here http://www.gumstix.org/software-development/open-embedded/61-using-the-open-embedded-build-system.html to set up my build environment.

The compilation fails with a load of undefined reference errors, which I believe should be found in the libssl and libcrypto libraries. I have tried to do some digging, but my knowledge of the tools is limited as of yet and therefore I haven't been able to narrow down the problem much more. Internet searching has shown me similar issues, but unfortunately no resolutions.

I have attached the output log file below if that helps. I have paraphrased it to make it a bit more legible. I was initially running 'bitbake omap3-console-image', but after the failure I ran 'bitbake openssl-native -c clean' followed by 'bitbake openssl-native' to produce the following log.

Thanks in advance,
Rob

//LOGFILE//

NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
Loading cache...done.
Loaded 7207 entries from dependency cache.
Parsing recipes...NOTE: Angstrom DOES NOT support libiconv because the glibc builtin iconv replacement is used
NOTE: Angstrom DOES NOT support bash-noemu because doesn't work on the target
NOTE: Angstrom DOES NOT support libiconv because the glibc builtin iconv replacement is used
NOTE: Angstrom DOES NOT support ipkg because ipkg has been superseded by opkg
NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
NOTE: Angstrom DOES NOT support bluez-utils because bluez-utils 3.x has been replaced by bluez4
NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
NOTE: Angstrom DOES NOT support fso-apm because regular apmd is good enough
NOTE: Angstrom DOES NOT support libiconv because the glibc builtin iconv replacement is used
NOTE: Angstrom DOES NOT support bluez-utils because bluez-utils 3.x has been replaced by bluez4
NOTE: Angstrom DOES NOT support bluez-libs because bluez-libs 3.x has been replaced by bluez4
done.
Parsing of 7342 .bb files complete (6579 cached, 763 parsed). 7990 targets, 324 skipped, 2 masked, 0 errors.
WARNING: No bb files matched BBFILE_PATTERN_user '^/home/rihyams/overo-oe/user.collection/recipes'

Build Configuration:
BB_VERSION        = "1.12.0"
METADATA_BRANCH   = "overo-2011.03"
METADATA_REVISION = "58d5ce0"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "overo"
DISTRO            = "angstrom"
DISTRO_VERSION    = "2011.03"
TARGET_FPU        = "hard"

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing RunQueue Tasks
NOTE: Running task 96 of 185 (ID: 10, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_setscene)
NOTE: package openssl-native-1.0.0d-r14.0: task do_setscene: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_setscene: Succeeded
NOTE: Running task 97 of 185 (ID: 8, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_fetch)
NOTE: package openssl-native-1.0.0d-r14.0: task do_fetch: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_fetch: Succeeded
NOTE: Running task 98 of 185 (ID: 0, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_unpack)
NOTE: package openssl-native-1.0.0d-r14.0: task do_unpack: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_unpack: Succeeded
NOTE: Running task 103 of 185 (ID: 1, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_patch)
NOTE: package openssl-native-1.0.0d-r14.0: task do_patch: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_patch: Succeeded
NOTE: Running task 104 of 185 (ID: 11, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_configure)
NOTE: package openssl-native-1.0.0d-r14.0: task do_configure: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_configure: Succeeded
NOTE: Running task 108 of 185 (ID: 12, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_qa_configure)
NOTE: package openssl-native-1.0.0d-r14.0: task do_qa_configure: Started
NOTE: package openssl-native-1.0.0d-r14.0: task do_qa_configure: Succeeded
NOTE: Running task 109 of 185 (ID: 13, /home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_compile)
NOTE: package openssl-native-1.0.0d-r14.0: task do_compile: Started
ERROR: Logfile of failure stored in: /home/rihyams/overo-oe/tmp/work/i686-linux/openssl-native-1.0.0d-r14.0/temp/log.do_compile.30469
Log data follows:
| + do_compile
| + oe_runmake
| + oenote make -e MAKEFLAGS=
| + echo NOTE: 'make -e MAKEFLAGS='
| NOTE: make -e MAKEFLAGS=
| + make -e MAKEFLAGS=
| making all in crypto...
| make[1]: Entering directory `/home/rihyams/overo-oe/tmp/work/i686-linux/openssl-native-1.0.0d-r14.0/openssl-1.0.0d/crypto'
| ( echo "#ifndef MK1MF_BUILD"; \
| echo '  /* auto-generated by crypto/Makefile for crypto/cversion.c */'; \
| echo '  #define CFLAGS "gcc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO   -Wall  -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM"'; \
| echo '  #define PLATFORM "debian-i386-i686/cmov"'; \
| echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
| echo '#endif' ) >buildinf.h
| gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO   -Wall  -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -isystem/home/rihyams/overo-oe/tmp/sysroots/i686-linux/usr/include  -c -o cryptlib.o cryptlib.c
| gcc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO   -Wall  -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -isystem/home/rihyams/overo-oe/tmp/sysroots/i686-linux/usr/include  -c -o mem.o mem.c

REMOVED LOTS OF GCC COMMANDS FOR CLARITY

| gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO   -Wall  -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -isystem/home/rihyams/overo-oe/tmp/sysroots/i686-linux/usr/include  -c -o ts.o ts.c
| gcc -DMONOLITH -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO   -Wall  -Wa,--noexecstack -DOPENSSL_BN_ASM_PART_WORDS -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DRMD160_ASM -DAES_ASM -DWHIRLPOOL_ASM -isystem/home/rihyams/overo-oe/tmp/sysroots/i686-linux/usr/include  -c -o openssl.o openssl.c
| rm -f openssl
| shlib_target=; if [ -n "libcrypto.so.1.0.0 libssl.so.1.0.0" ]; then \
| shlib_target="linux-shared"; \
| fi; \
| LIBRARIES="-L.. -lssl  -L.. -lcrypto" ; \
| make -f ../Makefile.shared -e \
| APPNAME=openssl OBJECTS="openssl.o verify.o asn1pars.o req.o dgst.o dh.o dhparam.o enc.o passwd.o gendh.o errstr.o ca.o pkcs7.o crl2p7.o crl.o rsa.o rsautl.o dsa.o dsaparam.o ec.o ecparam.o x509.o genrsa.o gendsa.o genpkey.o s_server.o s_client.o speed.o s_time.o apps.o s_cb.o s_socket.o app_rand.o version.o sess_id.o ciphers.o nseq.o pkcs12.o pkcs8.o pkey.o pkeyparam.o pkeyutl.o spkac.o smime.o cms.o rand.o engine.o ocsp.o prime.o ts.o" \
| LIBDEPS=" $LIBRARIES -lgcc -ldl" \
| link_app.${shlib_target}
| make[2]: Entering directory `/home/rihyams/overo-oe/tmp/work/i686-linux/openssl-native-1.0.0d-r14.0/openssl-1.0.0d/apps'
| openssl.o: In function `main':
| openssl.c:(.text+0x199): undefined reference to `BIO_s_file'
| openssl.c:(.text+0x1a1): undefined reference to `BIO_new'
| openssl.c:(.text+0x1e1): undefined reference to `BIO_ctrl'
| openssl.c:(.text+0x231): undefined reference to `CRYPTO_dbg_get_options'
| openssl.c:(.text+0x23b): undefined reference to `CRYPTO_dbg_set_options'
| openssl.c:(.text+0x245): undefined reference to `CRYPTO_dbg_free'
| openssl.c:(.text+0x24f): undefined reference to `CRYPTO_dbg_realloc'
| openssl.c:(.text+0x259): undefined reference to `CRYPTO_dbg_malloc'
| openssl.c:(.text+0x261): undefined reference to `CRYPTO_set_mem_debug_functions'
| openssl.c:(.text+0x26d): undefined reference to `CRYPTO_set_mem_debug_options'
| openssl.c:(.text+0x29b): undefined reference to `CRYPTO_set_mem_debug_functions'
| openssl.c:(.text+0x2a7): undefined reference to `CRYPTO_mem_ctrl'
| openssl.c:(.text+0x2b5): undefined reference to `CRYPTO_set_locking_callback'
| openssl.c:(.text+0x2eb): undefined reference to `CRYPTO_set_mem_functions'
| openssl.c:(.text+0x2f0): undefined reference to `ERR_load_crypto_strings'
| openssl.c:(.text+0x2f5): undefined reference to `OPENSSL_add_all_algorithms_noconf'
| openssl.c:(.text+0x2fa): undefined reference to `ENGINE_load_builtin_engines'
| openssl.c:(.text+0x35a): undefined reference to `NCONF_new'
| openssl.c:(.text+0x382): undefined reference to `NCONF_load'
| openssl.c:(.text+0x396): undefined reference to `ERR_peek_last_error'
| openssl.c:(.text+0x3c2): undefined reference to `BIO_printf'
| openssl.c:(.text+0x3c7): undefined reference to `ERR_clear_error'
| openssl.c:(.text+0x3d7): undefined reference to `NCONF_free'
| openssl.c:(.text+0x3f5): undefined reference to `ERR_print_errors'
| openssl.c:(.text+0x405): undefined reference to `NCONF_free'
| openssl.c:(.text+0x45a): undefined reference to `lh_retrieve'
| openssl.c:(.text+0x66d): undefined reference to `BIO_printf'
| openssl.c:(.text+0x695): undefined reference to `BIO_ctrl'
| openssl.c:(.text+0x6b5): undefined reference to `BIO_printf'
| openssl.c:(.text+0x6d9): undefined reference to `CRYPTO_free'
| openssl.c:(.text+0x6f5): undefined reference to `NCONF_free'
| openssl.c:(.text+0x714): undefined reference to `lh_free'
| openssl.c:(.text+0x728): undefined reference to `CRYPTO_free'
| openssl.c:(.text+0x734): undefined reference to `CONF_modules_unload'
| openssl.c:(.text+0x73e): undefined reference to `OBJ_cleanup'
| openssl.c:(.text+0x743): undefined reference to `EVP_cleanup'
| openssl.c:(.text+0x748): undefined reference to `ENGINE_cleanup'
| openssl.c:(.text+0x74d): undefined reference to `CRYPTO_cleanup_all_ex_data'
| openssl.c:(.text+0x759): undefined reference to `ERR_remove_thread_state'
| openssl.c:(.text+0x75e): undefined reference to `ERR_free_strings'
| openssl.c:(.text+0x763): undefined reference to `COMP_zlib_cleanup'
| openssl.c:(.text+0x773): undefined reference to `CRYPTO_mem_leaks'
| openssl.c:(.text+0x78f): undefined reference to `BIO_free'
| openssl.o: In function `do_cmd':
| openssl.c:(.text+0x7f7): undefined reference to `lh_retrieve'
| openssl.c:(.text+0x80d): undefined reference to `EVP_get_digestbyname'
| openssl.c:(.text+0x836): undefined reference to `EVP_get_cipherbyname'
| openssl.c:(.text+0x8ba): undefined reference to `BIO_new_fp'
| openssl.c:(.text+0x8da): undefined reference to `lh_retrieve'
| openssl.c:(.text+0x909): undefined reference to `BIO_printf'
| openssl.c:(.text+0x92c): undefined reference to `BIO_printf'
| openssl.c:(.text+0x937): undefined reference to `BIO_free_all'
| openssl.c:(.text+0xc33): undefined reference to `BIO_new_fp'
| openssl.c:(.text+0xcbf): undefined reference to `BIO_printf'
| openssl.c:(.text+0xcd8): undefined reference to `BIO_free_all'
| openssl.c:(.text+0xd07): undefined reference to `BIO_printf'
| openssl.c:(.text+0xd21): undefined reference to `BIO_printf'
| openssl.c:(.text+0xd71): undefined reference to `BIO_printf'
| openssl.c:(.text+0xdaa): undefined reference to `BIO_printf'
| openssl.c:(.text+0xdd1): undefined reference to `BIO_printf'
| openssl.o:openssl.c:(.text+0xdfa): more undefined references to `BIO_printf' follow
| openssl.o: In function `list_pkey':
| openssl.c:(.text+0xee4): undefined reference to `EVP_PKEY_asn1_get0'
| openssl.c:(.text+0xf15): undefined reference to `EVP_PKEY_asn1_get0_info'
| openssl.c:(.text+0xf2a): undefined reference to `OBJ_nid2ln'
| openssl.c:(.text+0xf43): undefined reference to `BIO_printf'
| openssl.c:(.text+0xf4e): undefined reference to `OBJ_nid2ln'
| openssl.c:(.text+0xf67): undefined reference to `BIO_printf'
| openssl.c:(.text+0xf88): undefined reference to `BIO_printf'
| openssl.c:(.text+0xfb9): undefined reference to `BIO_printf'
| openssl.c:(.text+0xfc4): undefined reference to `OBJ_nid2ln'
| openssl.c:(.text+0xfdd): undefined reference to `BIO_printf'
| openssl.c:(.text+0x1009): undefined reference to `BIO_printf'
| openssl.c:(.text+0x1012): undefined reference to `EVP_PKEY_asn1_get_count'
| openssl.o: In function `list_cipher_fn':
| openssl.c:(.text+0x1044): undefined reference to `EVP_CIPHER_nid'
| openssl.c:(.text+0x104c): undefined reference to `OBJ_nid2sn'
| openssl.c:(.text+0x1065): undefined reference to `BIO_printf'
| openssl.c:(.text+0x10a8): undefined reference to `BIO_printf'
| openssl.o: In function `list_cipher':
| openssl.c:(.text+0x10d5): undefined reference to `EVP_CIPHER_do_all_sorted'
| openssl.o: In function `list_md_fn':
| openssl.c:(.text+0x10fe): undefined reference to `EVP_MD_type'
| openssl.c:(.text+0x1106): undefined reference to `OBJ_nid2sn'
| openssl.c:(.text+0x111f): undefined reference to `BIO_printf'
| openssl.c:(.text+0x1162): undefined reference to `BIO_printf'
| openssl.o: In function `list_md':
| openssl.c:(.text+0x118f): undefined reference to `EVP_MD_do_all_sorted'
| openssl.o: In function `function_hash':
| openssl.c:(.text+0x1213): undefined reference to `lh_strhash'
| openssl.o: In function `prog_init':
| openssl.c:(.text+0x12a7): undefined reference to `lh_new'
| openssl.c:(.text+0x12d4): undefined reference to `lh_insert'
| verify.o: In function `verify_main':

PLUS LOTS MORE UNDEFINED IN OTHER FILES

NOTE: package openssl-native-1.0.0d-r14.0: task do_compile: Failed
ERROR: Function 'do_compile' failed (see /home/rihyams/overo-oe/tmp/work/i686-linux/openssl-native-1.0.0d-r14.0/temp/log.do_compile.30469 for further information)
ERROR: Task 13 (/home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb, do_compile) failed with exit code '1'
ERROR: '/home/rihyams/overo-oe/org.openembedded.dev/recipes/openssl/openssl-native_1.0.0d.bb' failed


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users