Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
To: None <tron@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,>
From: John D.Baker <jdbaker@mylinuxisp.com>
List: pkgsrc-bugs
Date: 04/17/2007 16:00:06
The following reply was made to PR pkg/36086; it has been noted by GNATS.
From: John D.Baker <jdbaker@mylinuxisp.com>
To: Matthias Scheler <tron@NetBSD.org>
Cc: John D.Baker <jdbaker@mylinuxisp.com>, gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Tue, 17 Apr 2007 10:58:25 -0500
I've finally updated and rebuilt everything, starting from bootstrapping
pkgsrc all over again. The link failure is as follows. No doubt the
later link failure is due to the earlier ones failing. The identical
complaint about "_dl*" undefined symbols happens several times during
the build process. This is just the last one before everything gives
up.
[...]
/usr/bin/libtool -arch_only ppc -dynamic -compatibility_version 0.9
-current_ve
rsion 0.9.7 -install_name /usr/pkg/lib/libcrypto.0.9.7.dylib -all_load
-o libcry
pto.0.9.7.dylib -L.
-L/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.buildlin
k/lib -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin
-L/usr/libexec/gcc/darwin/
ppc/3.3/../../.. libcrypto.a -lgcc -lSystem |
c++filt3
ld: Undefined symbols:
_dlclose
_dlerror
_dlopen
_dlsym
/usr/bin/libtool: internal link edit command failed
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.gcc/bin/gcc --verbose
-dynamic
lib -o libcrypto.0.9.7.dylib libcrypto.a -L. -all_load -current_version
0.9.7 -c
ompatibility_version 0.9 -install_name
/usr/pkg/lib/libcrypto.0.9.7.dylib -I/Vol
umes/NetBSD/tmp/pkgsrc/security/openssl/work/.buildlink/include
-L/Volumes/NetBS
D/tmp/pkgsrc/security/openssl/work/.buildlink/lib
gnumake[3]: *** [do_darwin-shared] Error 1
+ rm -f libssl.0.dylib
+ rm -f libssl.dylib
+ rm -f libssl.0.9.7.dylib
libs='-L. -lcrypto'; for i in ssl; do \
if [ "ssl" = "ssl" -a -n "" ]; then \
libs=" $libs"; \
fi; \
( set -x; cc \
--verbose -dynamiclib -o lib$i.0.9.7.dylib \
lib$i.a $libs -all_load -current_version 0.9.7 \
-compatibility_version 0.`echo 9.7 | cut -d. -f1` \
-install_name /usr/pkg/lib/lib$i.0.9.7.dylib ) || exit 1; \
libs="-l`basename $i.0.9.7.dylib .dylib` $libs"; \
echo "" ; \
done
++ echo 9.7
++ cut -d. -f1
+ cc --verbose -dynamiclib -o libssl.0.9.7.dylib libssl.a -L. -lcrypto
-all_load
-current_version 0.9.7 -compatibility_version 0.9 -install_name
/usr/pkg/lib/li
bssl.0.9.7.dylib
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1493)
/usr/bin/libtool -arch_only ppc -dynamic -compatibility_version 0.9
-current_ve
rsion 0.9.7 -install_name /usr/pkg/lib/libssl.0.9.7.dylib -all_load -o
libssl.0.
9.7.dylib -L.
-L/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.buildlink/lib
-L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin
-L/usr/libexec/gcc/darwin/ppc/3.
3/../../.. libssl.a -lcrypto -lgcc -lSystem |
c++filt3
ld: Undefined symbols:
_EVP_DigestInit_ex
_EVP_MD_CTX_cleanup
_EVP_MD_CTX_init
_EVP_DigestFinal_ex
_OpenSSLDie
_EVP_DecryptInit_ex
_EVP_EncryptInit_ex
_BUF_MEM_grow_clean
_RSA_up_ref
_EVP_CipherInit_ex
_EVP_MD_CTX_copy_ex
_HMAC_CTX_cleanup
_HMAC_CTX_init
_HMAC_CTX_set_flags
_HMAC_Init_ex
_X509_PURPOSE_set
_X509_TRUST_set
_ERR_peek_last_error
_EVP_aes_128_cbc
_EVP_aes_192_cbc
_EVP_aes_256_cbc
/usr/bin/libtool: internal link edit command failed
[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.gcc/bin/gcc --verbose
-dynamic
lib -o libssl.0.9.7.dylib libssl.a -L. -all_load -current_version 0.9.7
-compati
bility_version 0.9 -install_name /usr/pkg/lib/libssl.0.9.7.dylib
-I/Volumes/NetB
SD/tmp/pkgsrc/security/openssl/work/.buildlink/include
-L/Volumes/NetBSD/tmp/pkg
src/security/openssl/work/.buildlink/lib -lcrypto
gnumake[3]: *** [do_darwin-shared] Error 1
gnumake[2]: *** [libssl.0.9.7.dylib] Error 2
gnumake[1]: *** [shared] Error 2
gnumake: *** [sub_all] Error 1
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
[...]
--
John D. Baker NetBSD Darwin/MacOS X
http://mylinuxisp(dot)com/(tilde)jdbaker/ OpenBSD FreeBSD
BSD. It just sits there and _works_.
GPG fingerprint = D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645