This bug is actually documented. See the file PROBLEMS in the root
directory. The solution is not as simple as you make it out to be,
unfortunately.

-Kyle H

On 6/18/07, Wesley Sutton via RT wrote:
> I may have found the problem. OS X comes with a default installation of
> /usr/lib/libcrpyto.dylib
> and /usr/lib/libssl.dylib that may be found in the LD_LIBRARY_PATH before
> the ../libcrypto.a
> when it is building. Maybe a Makefile check could detect that and or modify
> the local LD_LIB_PATH
> to allow the build to still work.
>
> --Wes
>
> ----- Original Message ----
> From: The default queue via RT
> To: wes_sutton@yahoo.com
> Sent: Monday, June 18, 2007 4:35:56 AM
> Subject: [openssl.org #1539] AutoReply: BUG: openssl-0.9.8e build bug on Mac
> OSX Intel Dual Core
>
>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "BUG: openssl-0.9.8e build bug on Mac OSX Intel Dual Core",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [openssl.org #1539].
>
> Please include the string:
>
> [openssl.org #1539]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> rt@openssl.org
>
> -------------------------------------------------------------------------
> I am running the out-of-the-box flavor of Darwin/ld on Mac OS X (v10.4.9).
>
> I tried the ./Configure no-asm darwin-i386-cc and several other suggestions
> and have not been able to get openssl to build.
>
> I also checked the Request/Bug Tracker page and have not found a bug listed
> for this.
>
> Please let me know if you need any more info.
>
> Thanks,
> Wes.
>
> ========== DETAILS ABOUT THE ISSUE ===========
>
>
> Machine Name: Mac
> Machine Model: MacBookPro2,2
> Processor Name: Intel Core 2 Duo
> Processor Speed: 2.16 GHz
> Number Of Processors: 1
> Total Number Of Cores: 2
> L2 Cache (per processor): 4 MB
> Memory: 1 GB
> Bus Speed: 667 MHz
> Boot ROM Version: MBP22.00A5.B00
> SMC Version: 1.12f5
> Serial Number: W8643AN0W0G
> Sudden Motion Sensor:
> State: Enabled
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ uname -a
> Darwin Laptop.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00
> PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386
>
> ------
> Laptop:~/Dev/c user$ /usr/bin/ld -v
> Apple Computer, Inc. version cctools-622.5.obj~13
>
> ------
> Laptop:~/Dev/c wsutton$ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> --with-gxx-include-dir=/include/c++/4.0.0
> --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona
> --with-tune=generic --program-prefix= --host=i686-apple-darwin8
> --target=i686-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5367)
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ ./Configure no-asm darwin-i386-cc
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ make
>
> ...
>
> if [ -n "" ]; then \
> (cd ..; make libcrypto.0.9.8.dylib); \
> fi
> making all in ssl...
> if [ -n "" ]; then \
> (cd ..; make libssl.0.9.8.dylib); \
> fi
> making all in engines...
> make[1]: Nothing to be done for `all'.
> making all in apps...
> rm -f openssl
> shlib_target=; if [ -n "" ]; then \
> shlib_target="darwin-shared"; \
> fi; \
> if [ "${shlib_target}" = "darwin-shared" ] ; then \
> LIBRARIES="../libssl.a ../libcrypto.a" ; \
> else \
> LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
> fi; \
> 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
> 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 spkac.o smime.o rand.o
> engine.o ocsp.o prime.o" \
> LIBDEPS=" $LIBRARIES " \
> link_app.${shlib_target}
> ( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}";
> LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -fno-common}";
> LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1;
> then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH
> | sed -e 's/ /:/g'`;
> LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD}
> ${LDFLAGS} -o ${APPNAME:=openssl} 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
> 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 spkac.o smime.o rand.o
> engine.o ocsp.o prime.o ${LIBDEPS} )
> /usr/bin/ld: Undefined symbols:
> _X509_STORE_set1_param
> _X509_VERIFY_PARAM_free
> _ASN1_generate_nconf
> _EC_GROUP_get_degree
> _EC_KEY_dup
> _EC_KEY_free
> _EC_KEY_generate_key
> _EC_KEY_get0_group
> _EC_KEY_new
> _EC_KEY_set_group
> _EVP_ecdsa
> _PEM_read_bio_ECPKParameters
> _RSA_generate_key_ex
> _BIO_set_callback
> _BIO_set_callback_arg
> _DH_generate_parameters_ex
> _DSA_generate_parameters_ex
> _BIO_set_flags
> _EVP_CIPHER_nid
> _X509_REQ_check_private_key
> _EVP_MD_type
> _EC_KEY_print
> _EC_KEY_set_asn1_flag
> _EC_KEY_set_conv_form
> _PEM_read_bio_ECPrivateKey
> _PEM_read_bio_EC_PUBKEY
> _PEM_write_bio_ECPKParameters
> _PEM_write_bio_ECPrivateKey
> _PEM_write_bio_EC_PUBKEY
> _d2i_ECPrivateKey_bio
> _d2i_EC_PUBKEY_bio
> _i2d_ECPKParameters
> _i2d_ECPrivateKey_bio
> _i2d_EC_PUBKEY_bio
> _ECPKParameters_print
> _EC_GROUP_check
> _EC_GROUP_get_point_conversion_form
> _EC_GROUP_new_by_curve_name
> _EC_GROUP_set_asn1_flag
> _EC_GROUP_set_point_conversion_form
> _EC_GROUP_set_seed
> _EC_METHOD_get_field_type
> _EC_POINT_point2bn
> _EC_get_builtin_curves
> _d2i_ECPKParameters
> _EVP_idea_cbc
> _BIO_new_dgram
> _BIO_test_flags
> _DTLSv1_server_method
> _EC_KEY_new_by_curve_name
> _SSL_CTX_set_info_callback
> _DTLSv1_client_method
> _SSL_COMP_get_name
> _SSL_get_current_compression
> _SSL_get_current_expansion
> _ECDH_compute_key
> _ECDSA_sign
> _ECDSA_verify
> _EC_KEY_get0_public_key
> _EC_KEY_precompute_mult
> _SHA256
> _SHA512
> _idea_cbc_encrypt
> _idea_options
> _idea_set_encrypt_key
> _X509_POLICY_NODE_print
> _X509_STORE_CTX_get0_policy_tree
> _X509_STORE_CTX_get_explicit_policy
> _X509_VERIFY_PARAM_add0_policy
> _X509_VERIFY_PARAM_new
> _X509_VERIFY_PARAM_set_flags
> _X509_VERIFY_PARAM_set_purpose
> _X509_policy_tree_get0_policies
> _X509_policy_tree_get0_user_policies
> _BIO_get_callback_arg
> _EVP_PKEY_add1_attr_by_NID
> _BN_is_prime_ex
> collect2: ld returned 1 exit status
> make[2]: *** [link_app.] Error 1
> make[1]: *** [openssl] Error 2
> make: *** [build_apps] Error 1
>
>
>
>
>
>
>
>
>
>
> I may have found the problem. OS X comes with a default installation of
> /usr/lib/libcrpyto.dylib
> and /usr/lib/libssl.dylib that may be found in the LD_LIBRARY_PATH before
> the ../libcrypto.a
> when it is building. Maybe a Makefile check could detect that and or modify
> the local LD_LIB_PATH
> to allow the build to still work.
>
> --Wes
>
> ----- Original Message ----
> From: The default queue via RT
> To: wes_sutton@yahoo.com
> Sent: Monday, June 18, 2007 4:35:56 AM
> Subject: [openssl.org #1539] AutoReply: BUG: openssl-0.9.8e build bug on Mac
> OSX Intel Dual Core
>
>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
> "BUG: openssl-0.9.8e build bug on Mac OSX Intel Dual Core",
> a summary of which appears below.
>
> There is no need to reply to this message right now. Your ticket has been
> assigned an ID of [openssl.org #1539].
>
> Please include the string:
>
> [openssl.org #1539]
>
> in the subject line of all future correspondence about this issue. To do so,
> you may reply to this message.
>
> Thank you,
> rt@openssl.org
>
> -------------------------------------------------------------------------
> I am running the out-of-the-box flavor of Darwin/ld on Mac OS X (v10.4.9).
>
> I tried the ./Configure no-asm darwin-i386-cc and several other suggestions
> and have not been able to get openssl to build.
>
> I also checked the Request/Bug Tracker page and have not found a bug listed
> for this.
>
> Please let me know if you need any more info.
>
> Thanks,
> Wes.
>
> ========== DETAILS ABOUT THE ISSUE ===========
>
>
> Machine Name: Mac
> Machine Model: MacBookPro2,2
> Processor Name: Intel Core 2 Duo
> Processor Speed: 2.16 GHz
> Number Of Processors: 1
> Total Number Of Cores: 2
> L2 Cache (per processor): 4 MB
> Memory: 1 GB
> Bus Speed: 667 MHz
> Boot ROM Version: MBP22.00A5.B00
> SMC Version: 1.12f5
> Serial Number: W8643AN0W0G
> Sudden Motion Sensor:
> State: Enabled
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ uname -a
> Darwin Laptop.local 8.9.1 Darwin Kernel Version 8.9.1: Thu Feb 22 20:55:00
> PST 2007; root:xnu-792.18.15~1/RELEASE_I386 i386 i386
>
> ------
> Laptop:~/Dev/c user$ /usr/bin/ld -v
> Apple Computer, Inc. version cctools-622.5.obj~13
>
> ------
> Laptop:~/Dev/c wsutton$ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> --with-gxx-include-dir=/include/c++/4.0.0
> --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona
> --with-tune=generic --program-prefix= --host=i686-apple-darwin8
> --target=i686-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5367)
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ ./Configure no-asm darwin-i386-cc
>
> ------
> Laptop:~/Dev/c/openssl-0.9.8e user$ make
>
> ...
>
> if [ -n "" ]; then \
> (cd ..; make libcrypto.0.9.8.dylib); \
> fi
> making all in ssl...
> if [ -n "" ]; then \
> (cd ..; make libssl.0.9.8.dylib); \
> fi
> making all in engines...
> make[1]: Nothing to be done for `all'.
> making all in apps...
> rm -f openssl
> shlib_target=; if [ -n "" ]; then \
> shlib_target="darwin-shared"; \
> fi; \
> if [ "${shlib_target}" = "darwin-shared" ] ; then \
> LIBRARIES="../libssl.a ../libcrypto.a" ; \
> else \
> LIBRARIES="-L.. -lssl -L.. -lcrypto" ; \
> fi; \
> 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
> 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 spkac.o smime.o rand.o
> engine.o ocsp.o prime.o" \
> LIBDEPS=" $LIBRARIES " \
> link_app.${shlib_target}
> ( :; LIBDEPS="${LIBDEPS:--L.. -lssl -L.. -lcrypto }"; LDCMD="${LDCMD:-cc}";
> LDFLAGS="${LDFLAGS:--DOPENSSL_THREADS -D_REENTRANT
> -DDSO_DLFCN -DHAVE_DLFCN_H -O3 -fomit-frame-pointer -fno-common}";
> LIBPATH=`for x in $LIBDEPS; do if echo $x | grep '^ *-L' > /dev/null 2>&1;
> then echo $x | sed -e 's/^ *-L//'; fi; done | uniq`; LIBPATH=`echo $LIBPATH
> | sed -e 's/ /:/g'`;
> LD_LIBRARY_PATH=$LIBPATH:$LD_LIBRARY_PATH ${LDCMD}
> ${LDFLAGS} -o ${APPNAME:=openssl} 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
> 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 spkac.o smime.o rand.o
> engine.o ocsp.o prime.o ${LIBDEPS} )
> /usr/bin/ld: Undefined symbols:
> _X509_STORE_set1_param
> _X509_VERIFY_PARAM_free
> _ASN1_generate_nconf
> _EC_GROUP_get_degree
> _EC_KEY_dup
> _EC_KEY_free
> _EC_KEY_generate_key
> _EC_KEY_get0_group
> _EC_KEY_new
> _EC_KEY_set_group
> _EVP_ecdsa
> _PEM_read_bio_ECPKParameters
> _RSA_generate_key_ex
> _BIO_set_callback
> _BIO_set_callback_arg
> _DH_generate_parameters_ex
> _DSA_generate_parameters_ex
> _BIO_set_flags
> _EVP_CIPHER_nid
> _X509_REQ_check_private_key
> _EVP_MD_type
> _EC_KEY_print
> _EC_KEY_set_asn1_flag
> _EC_KEY_set_conv_form
> _PEM_read_bio_ECPrivateKey
> _PEM_read_bio_EC_PUBKEY
> _PEM_write_bio_ECPKParameters
> _PEM_write_bio_ECPrivateKey
> _PEM_write_bio_EC_PUBKEY
> _d2i_ECPrivateKey_bio
> _d2i_EC_PUBKEY_bio
> _i2d_ECPKParameters
> _i2d_ECPrivateKey_bio
> _i2d_EC_PUBKEY_bio
> _ECPKParameters_print
> _EC_GROUP_check
> _EC_GROUP_get_point_conversion_form
> _EC_GROUP_new_by_curve_name
> _EC_GROUP_set_asn1_flag
> _EC_GROUP_set_point_conver sion_form
> _EC_GROUP_set_seed
> _EC_METHOD_get_field_type
> _EC_POINT_point2bn
> _EC_get_builtin_curves
> _d2i_ECPKParameters
> _EVP_idea_cbc
> _BIO_new_dgram
> _BIO_test_flags
> _DTLSv1_server_method
> _EC_KEY_new_by_curve_name
> _SSL_CTX_set_info_callback
> _DTLSv1_client_method
> _SSL_COMP_get_name
> _SSL_get_current_compression
> _SSL_get_current_expansion
> _ECDH_compute_key
> _ECDSA_sign
> _ECDSA_verify
> _EC_KEY_get0_public_key
> _EC_KEY_precompute_mult
> _SHA256
> _SHA512
> _idea_cbc_encrypt
> _idea_options
> _idea_set_encrypt_key
> _X509_POLICY_NODE_print
> _X509_STORE_CTX_get0_policy_tree
> _X509_STORE_CTX_get_explicit_policy
> _X509_VERIFY_PARAM_add0_policy
> _X509_VERIFY_PARAM_new
> _X509_VERIFY_PARAM_set_flags
> _X509_VERIFY_PARAM_set_purpose
> _X509_policy_tree_get0_policies
> _X509_policy_tree_get0_user_policies
> _BIO_get_callback_arg
> _EVP_PKEY_add1_attr_by_NID
> _BN_is_prime_ex
> collect2: ld returned 1 exit status
> make[2]: *** [link_app.] Error 1
> make[1]: *** [openssl] Error 2
> make: *** [build_apps] Error 1
>
>
>
>
>
>

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org