NetBSD Problem Report #36086

From www@NetBSD.org  Sun Mar 25 16:35:04 2007
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
	id 39B2363BA6C; Sun, 25 Mar 2007 16:35:04 +0000 (UTC)
Message-Id: <20070325163504.39B2363BA6C@narn.NetBSD.org>
Date: Sun, 25 Mar 2007 16:35:04 +0000 (UTC)
From: jdbaker@mylinuxisp.com
Reply-To: jdbaker@mylinuxisp.com
To: gnats-bugs@NetBSD.org
Subject: security/openssl build fails on MacOS X 10.2.8 (required header file not found)
X-Send-Pr-Version: www-1.0

>Number:         36086
>Category:       pkg
>Synopsis:       security/openssl build fails on MacOS X 10.2.8 (required header file not found)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tron
>State:          closed
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 25 16:40:00 +0000 2007
>Closed-Date:    Fri Apr 27 18:30:32 +0000 2007
>Last-Modified:  Fri Apr 27 18:30:32 +0000 2007
>Originator:     John D. Baker
>Release:        MacOS X 10.2.8, pkgsrc-2006Q4
>Organization:
>Environment:
Darwin pm7500.local. 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC  Power Macintosh powerpc

>Description:
Building security/openssl (dependency of net/wget on MacOS X 10.2.8)
fails as follows:

cc -I.. -I../.. -I../../include -DOPENSSL_SYSNAME_MACOSX -fPIC -fno-common -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -pipe -O2 -O3 -fomit-frame-pointer -DB_ENDIAN -no-cpp-precomp  -c -o dso_dlfcn.o dso_dlfcn.c
dso_dlfcn.c:75:19: dlfcn.h: No such file or directory
dso_dlfcn.c: In function `dlfcn_load':
dso_dlfcn.c:154: error: `RTLD_NOW' undeclared (first use in this function)
dso_dlfcn.c:154: error: (Each undeclared identifier is reported only once
dso_dlfcn.c:154: error: for each function it appears in.)
dso_dlfcn.c:154: warning: assignment makes pointer from integer without a cast
dso_dlfcn.c: In function `dlfcn_bind_var':
dso_dlfcn.c:222: warning: assignment makes pointer from integer without a cast
dso_dlfcn.c: In function `dlfcn_bind_func':
dso_dlfcn.c:253: warning: assignment makes pointer from integer without a cast

[wrapper.sh] note: The real command line, after the pkgsrc wrapper, was:
/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.gcc/bin/gcc -I.. -I../.. -I../../include -DOPENSSL_SYSNAME_MACOSX -fPIC -fno-common -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_IDEA -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC5 -pipe -O2 -O3 -fomit-frame-pointer -DB_ENDIAN -no-cpp-precomp -c -o dso_dlfcn.o dso_dlfcn.c -I/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.buildlink/include -L/Volumes/NetBSD/tmp/pkgsrc/security/openssl/work/.buildlink/lib 
gnumake[2]: *** [dso_dlfcn.o] Error 1
gnumake[1]: *** [subdirs] Error 1
gnumake: *** [sub_all] Error 1
*** Error code 2

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/security/openssl
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/net/wget
[pm7500:pkgsrc/net/wget] sysop% 


It appears the buildlink step failed to install links to files in
/usr/pkg/include, which is where <dlfcn.h> resides (part of the
dlcompat-20030629 package).
>How-To-Repeat:
Attempt to build security/openssl or anything which depends thereon
(like net/wget).

>Fix:
Workaround:  Manually add a link to /usr/pkg/include/dlfcn.h in
.../pkgsrc/security/openssl/work/.buildlink/include.  e.g.,

    cd .../pkgsrc/security/openssl/work/.buildlink
    ln -s /usr/pkg/include/dlfcn.h

>Release-Note:

>Audit-Trail:
From: John D.Baker <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: John D.Baker <jdbaker@mylinuxisp.com>
Subject: Re: pkg/36086
Date: Sun, 25 Mar 2007 13:27:52 -0500

 A similar failure occurs during the link stage.  A similar workaround
 was tried (i.e. manually create symlinks in
 security/openssl/work/.buildlink/lib which point to files in
 /usr/pkg/lib), but this ultimately didn't solve the problem.

 I should have mentioned it in the original PR, but the 
 .buildlink/include
 and .buildlink/lib directories are completely empty prior to executing
 the workaround steps described.

 The link step failure is as follows.  The first part, that lists the
 various "_dl*" symbols occurs a few times in earlier stages but the
 build continues until this last attempt.

 [...]
   /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
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/security/openssl
 *** Error code 1

 Stop.
 bmake: stopped in /usr/pkgsrc/net/wget

 --
 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

From: John D.Baker <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: John D.Baker <jdbaker@mylinuxisp.com>
Subject: Re: pkg/36086
Date: Sun, 25 Mar 2007 15:40:01 -0500

 I realized the first part of the problem was solved by putting:

      .include "../../devel/dlcompat/buildlink3.mk"

 as the next-to-last line in security/openssl/Makefile.

 But linking still fails.  I've now realized that there need to be some
 "-ldl" directives sprinkled around in the distribution Makefiles, but
 I haven't been able to make heads or tails of where they should go.

 --
 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

Responsible-Changed-From-To: pkg-manager->tron
Responsible-Changed-By: tron@netbsd.org
Responsible-Changed-When: Mon, 26 Mar 2007 11:42:40 +0000
Responsible-Changed-Why:
I'll handle this PR.


From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Mon, 26 Mar 2007 11:44:18 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Mon Mar 26 11:44:18 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile

 Log Message:
 Include "pkgsrc/devel/dlcompat/buildlink3.mk" when building this package
 under Mac OS X. This should fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.118 -r1.119 pkgsrc/security/openssl/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->analyzed
State-Changed-By: tron@netbsd.org
State-Changed-When: Mon, 26 Mar 2007 11:47:12 +0000
State-Changed-Why:
I've committed a fix. Does the "openssl" package build on your system now?


From: John D.Baker <jdbaker@mylinuxisp.com>
To: gnats-bugs@NetBSD.org
Cc: John D.Baker <jdbaker@mylinuxisp.com>
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Mon, 26 Mar 2007 23:01:38 -0500

 On 26 Mar 2007, at 06:47, tron@netbsd.org wrote:

 > Synopsis: security/openssl build fails on MacOS X 10.2.8 (required 
 > header file not found)
 >
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: tron@netbsd.org
 > State-Changed-When: Mon, 26 Mar 2007 11:47:12 +0000
 > State-Changed-Why:
 > I've committed a fix. Does the "openssl" package build on your system 
 > now?

 I updated that package to pkgsrc-current (I otherwise am using the
 pkgsrc-2006Q4 branch).

 The header and library symlinks are fixed, but the build still fails
 during linking because there are no "-ldl" link directives to pull in
 "libdl.*".

 I have not yet been able to figure out where these should go, or how
 to get them inserted in the link commands in the distribution Makefiles
 automagically.

 --
 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

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/devel/dlcompat
Date: Tue, 27 Mar 2007 06:32:06 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Tue Mar 27 06:32:06 UTC 2007

 Modified Files:
 	pkgsrc/devel/dlcompat: buildlink3.mk

 Log Message:
 Add "-ld" to "LDFLAGS" automatically. This should help fixing PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.11 -r1.12 pkgsrc/devel/dlcompat/buildlink3.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: jdbaker@mylinuxisp.com
Cc: 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, 27 Mar 2007 07:33:23 +0100

 On Tue, Mar 27, 2007 at 04:05:10AM +0000, John D.Baker wrote:
 >  I updated that package to pkgsrc-current (I otherwise am using the
 >  pkgsrc-2006Q4 branch).

 That might not work (well). Could you please update your complete
 "pkgsrc"? The "pkgsrc-2006Q4" branch will be desupported in a few
 days anyway.

 >  The header and library symlinks are fixed, but the build still fails
 >  during linking because there are no "-ldl" link directives to pull in
 >  "libdl.*".

 Please update at least "pkgsrc/devel/dlcompat" to "pkgsrc-current" and
 try to build the "openssl" package again (after "bmake clean").

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Sun, 1 Apr 2007 13:11:22 -0500

 On 27 Mar 2007, at 01:33, Matthias Scheler wrote:

 > Please update at least "pkgsrc/devel/dlcompat" to "pkgsrc-current" and
 > try to build the "openssl" package again (after "bmake clean").

 OK, I've now updated all of my pkgsrc to -current.

 The link step still fails in the same way as noted previously.  There is
 still no "-ldl" in the link step, despite the change to
 "devel/dlcompat/buildlink3.mk"


 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

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Sun,  1 Apr 2007 21:33:05 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Sun Apr  1 21:33:05 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile

 Log Message:
 Add ${BUILDLINK_LDFLAGS.dlcompat} (defined as "-ldl") to "LDFLAGS" under
 Mac OS X. This is harmless under recent versions of Mac OS X where
 "libdl.dylib" is symbolic link to "libSystem.dylib". And it is necessary
 under old versions of Mac OS X (Jaguar and older) where we need the
 "libdl.dylib" from the "dlcompat" package.

 This should finally fix PR pkg/36086 by John D. Baker.


 To generate a diff of this commit:
 cvs rdiff -r1.119 -r1.120 pkgsrc/security/openssl/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Sun, 1 Apr 2007 22:33:59 +0100

 On Sun, Apr 01, 2007 at 01:11:22PM -0500, John D. Baker wrote:
 > The link step still fails in the same way as noted previously.  There is
 > still no "-ldl" in the link step, despite the change to
 > "devel/dlcompat/buildlink3.mk"

 Can you please update "pkgsrc/security/openssl" again (you need at least
 revision 1.120 of "pkgsrc/security/openssl/Makefile") and try building
 the package again?

 	Thanks in advance

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Sun, 1 Apr 2007 18:19:00 -0500

 On 01 Apr 2007, at 16:33, Matthias Scheler wrote:

 > Can you please update "pkgsrc/security/openssl" again (you need at 
 > least
 > revision 1.120 of "pkgsrc/security/openssl/Makefile") and try building
 > the package again?

 OK, I've updated.  The file and revision are as you describe.

 Linking still fails exactly as described previously.  The only libraries
 explicitly mentioned in the link attempts are "-lgcc" and "-lSystem".

 It seems the "EX_LIB" ("EX_LIBS"?) entries in the distribution Makefiles
 are not being honored?

 --
 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

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Fri, 13 Apr 2007 20:07:11 +0100

 On Sun, Apr 01, 2007 at 06:19:00PM -0500, John D. Baker wrote:
 > On 01 Apr 2007, at 16:33, Matthias Scheler wrote:
 > 
 > >Can you please update "pkgsrc/security/openssl" again (you need at 
 > >least
 > >revision 1.120 of "pkgsrc/security/openssl/Makefile") and try building
 > >the package again?
 > 
 > OK, I've updated.  The file and revision are as you describe.

 Did you use "bmake clean" before reattempting the build?

 > Linking still fails exactly as described previously.  The only libraries
 > explicitly mentioned in the link attempts are "-lgcc" and "-lSystem".
 > 
 > It seems the "EX_LIB" ("EX_LIBS"?) entries in the distribution Makefiles
 > are not being honored?

 Can you please send updated output of the failing build?

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: "John D. Baker" <jdbaker@mylinuxisp.com>
To: Matthias Scheler <tron@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8
 (required header file not found))
Date: Fri, 13 Apr 2007 17:13:05 -0500 (CDT)

 On Fri, 13 Apr 2007, Matthias Scheler wrote:

 >> OK, I've updated.  The file and revision are as you describe.
 >
 > Did you use "bmake clean" before reattempting the build?

 Yes.  "bmake clean clean-depends"

 >> Linking still fails exactly as described previously.  The only libraries
 >> explicitly mentioned in the link attempts are "-lgcc" and "-lSystem".
 >>
 >> It seems the "EX_LIB" ("EX_LIBS"?) entries in the distribution Makefiles
 >> are not being honored?
 >
 > Can you please send updated output of the failing build?

 It will be Sunday evening (15 April) before I have access to the target
 system again.  I'll re-update everything, try again, and send the result.
 (I suspect it will be identical to the example previously submitted...)

 If you don't see a new entry on Monday, please drop me a reminder.

 -- 
 John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
 jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
 BSD -- It just sits there and _works_!
 GPG fingerprint:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645

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

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: 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 17:49:51 +0100

 On Tue, Apr 17, 2007 at 10:58:25AM -0500, John D. Baker wrote:
 > 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

 You have unfortunately removed a critical part of the information:
 The directory in which the build broke.

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Tue, 17 Apr 2007 17:04:01 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Tue Apr 17 17:04:00 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile buildlink3.mk

 Log Message:
 Use "pkgsrc/mk/dlopen.buildlink3.mk" instead of manually including
 "pkgsrc/devel/dlcompat/buildlink3.mk" under Darwin. This might
 finally fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.120 -r1.121 pkgsrc/security/openssl/Makefile
 cvs rdiff -r1.33 -r1.34 pkgsrc/security/openssl/buildlink3.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: 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 18:05:26 +0100

 	Hello,

 I've just committed another change for the "openssl" package. I'm not
 convinced that it will fix the problem but it is worth a try.
 Could you please try rebuilding the "openssl" package after
 a "bmake clean"?

 	Thanks in advance

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Wed, 18 Apr 2007 14:11:33 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Wed Apr 18 14:11:33 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile

 Log Message:
 Make sure that the "dlcompat" related options are actually added to
 "LDFLAGS". This is another attempt to fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.121 -r1.122 pkgsrc/security/openssl/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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: Mon, 23 Apr 2007 22:01:00 -0500

 On 17 Apr 2007, at 12:05, Matthias Scheler wrote:

 > I've just committed another change for the "openssl" package. I'm not
 > convinced that it will fix the problem but it is worth a try.
 > Could you please try rebuilding the "openssl" package after
 > a "bmake clean"?

 Ok, I've finally been able to update again, do 'bmake clean' and try
 building again.  Still no joy.

 The latest build log is at:

      http://bobdbob.com/~jdbaker/wget.log

 And in answer to your other query, when I go to "security/openssl" and
 run 'bmake VARNAME=LDFLAGS show-var', I get a blank line.

 --
 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

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Tue, 24 Apr 2007 14:10:37 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Tue Apr 24 14:10:37 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile

 Log Message:
 Use all necessary means to convince OpenSSL's "special" build system
 to link with the "dl" library under Mac OS X if necessary.
 This should finally fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.122 -r1.123 pkgsrc/security/openssl/Makefile

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: 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, 24 Apr 2007 15:11:58 +0100

 On Mon, Apr 23, 2007 at 10:01:00PM -0500, John D. Baker wrote:
 > On 17 Apr 2007, at 12:05, Matthias Scheler wrote:
 > 
 > >I've just committed another change for the "openssl" package. I'm not
 > >convinced that it will fix the problem but it is worth a try.
 > >Could you please try rebuilding the "openssl" package after
 > >a "bmake clean"?
 > 
 > Ok, I've finally been able to update again, do 'bmake clean' and try
 > building again.  Still no joy.
 > 
 > The latest build log is at:
 > 
 >     http://bobdbob.com/~jdbaker/wget.log
 > 
 > And in answer to your other query, when I go to "security/openssl" and
 > run 'bmake VARNAME=LDFLAGS show-var', I get a blank line.

 Can you try again after updating in "pkgsrc/security/openssl"? You will
 need revision 1.123 (or newer) of "pkgsrc/security/openssl/Makefile".

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Thu, 26 Apr 2007 12:47:16 -0500

 On 24 Apr 2007, at 09:11, Matthias Scheler wrote:

 > On Mon, Apr 23, 2007 at 10:01:00PM -0500, John D. Baker wrote:
 >> Ok, I've finally been able to update again, do 'bmake clean' and try
 >> building again.  Still no joy.
 >>
 >> And in answer to your other query, when I go to "security/openssl" and
 >> run 'bmake VARNAME=LDFLAGS show-var', I get a blank line.
 >
 > Can you try again after updating in "pkgsrc/security/openssl"? You will
 > need revision 1.123 (or newer) of "pkgsrc/security/openssl/Makefile".

 I'm afraid the results are the same as before.  The log of just the
 openssl build attempt is at:

      http://bobdbob.com/~jdbaker/openssl.log

 --
 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

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/security/openssl
Date: Thu, 26 Apr 2007 21:11:05 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Thu Apr 26 21:11:05 UTC 2007

 Modified Files:
 	pkgsrc/security/openssl: Makefile distinfo
 	pkgsrc/security/openssl/patches: patch-af

 Log Message:
 Also link with the "dl" library when creating the shared libraries.
 Another attempt to fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.123 -r1.124 pkgsrc/security/openssl/Makefile
 cvs rdiff -r1.53 -r1.54 pkgsrc/security/openssl/distinfo
 cvs rdiff -r1.18 -r1.19 pkgsrc/security/openssl/patches/patch-af

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Thu, 26 Apr 2007 22:12:34 +0100

 On Thu, Apr 26, 2007 at 12:47:16PM -0500, John D. Baker wrote:
 > >Can you try again after updating in "pkgsrc/security/openssl"? You will
 > >need revision 1.123 (or newer) of "pkgsrc/security/openssl/Makefile".
 > 
 > I'm afraid the results are the same as before.  The log of just the
 > openssl build attempt is at:

 Can you please try with at least these revisions?

 pkgsrc/security/openssl/Makefile		1.124
 pkgsrc/security/openssl/distinfo		1.54
 pkgsrc/security/openssl/patches/patch-af	1.19

 	Thanks in advance

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Fri, 27 Apr 2007 06:50:15 -0500

 On 26 Apr 2007, at 16:12, Matthias Scheler wrote:

 > Can you please try with at least these revisions?
 >
 > pkgsrc/security/openssl/Makefile		1.124
 > pkgsrc/security/openssl/distinfo		1.54
 > pkgsrc/security/openssl/patches/patch-af	1.19

 Once again, the results after updating and 'bmake clean clean-depends'
 appear to be the same as before.  The logfile at:

      http://bobdbob.com/~jdbaker/openssl.log

 is updated to reflect the latest attempt.  It will likely be Sunday
 evening (29 April) before I can try again...

 --
 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

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Fri, 27 Apr 2007 13:22:55 +0100

 On Fri, Apr 27, 2007 at 06:50:15AM -0500, John D. Baker wrote:
 > On 26 Apr 2007, at 16:12, Matthias Scheler wrote:
 > 
 > >Can you please try with at least these revisions?
 > >
 > >pkgsrc/security/openssl/Makefile		1.124
 > >pkgsrc/security/openssl/distinfo		1.54
 > >pkgsrc/security/openssl/patches/patch-af	1.19
 > 
 > Once again, the results after updating and 'bmake clean clean-depends'
 > appear to be the same as before.  The logfile at:
 > 
 >     http://bobdbob.com/~jdbaker/openssl.log
 > 
 > is updated to reflect the latest attempt.  It will likely be Sunday
 > evening (29 April) before I can try again...

 What output does running "bmake VARNAME=BUILDLINK_LDFLAGS.dl show-var" and
 "bmake VARNAME=DL_LDFLAGS show-var" in "pkgsrc/security/openssl"
 produce on your system?

 If the first command prints "-dl" and the second one print nothing
 please add "DL_LDFLAGS= ${BUILDLINK_LDFLAGS.dl} to "Makefile"
 after ".include "../../mk/dlopen.buildlink3.mk" and try whether
 that fixes the problem.

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Fri, 27 Apr 2007 07:58:15 -0500

 On 27 Apr 2007, at 07:22, Matthias Scheler wrote:

 > What output does running "bmake VARNAME=BUILDLINK_LDFLAGS.dl show-var" 
 > and
 > "bmake VARNAME=DL_LDFLAGS show-var" in "pkgsrc/security/openssl"
 > produce on your system?

 Both commands print blank lines.

 --
 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

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Fri, 27 Apr 2007 14:21:47 +0100

 On Fri, Apr 27, 2007 at 07:58:15AM -0500, John D. Baker wrote:
 > On 27 Apr 2007, at 07:22, Matthias Scheler wrote:
 > 
 > >What output does running "bmake VARNAME=BUILDLINK_LDFLAGS.dl show-var" 
 > >and
 > >"bmake VARNAME=DL_LDFLAGS show-var" in "pkgsrc/security/openssl"
 > >produce on your system?
 > 
 > Both commands print blank lines.

 *argh*

 Something is apparently broken in "pkgsrc/mk/dlopen.buildlink3.mk".
 What does "bmake VARNAME=USE_BUILTIN.dl" print?

 	Kind regards

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Fri, 27 Apr 2007 08:47:22 -0500

 On 27 Apr 2007, at 08:21, Matthias Scheler wrote:

 > Something is apparently broken in "pkgsrc/mk/dlopen.buildlink3.mk".
 > What does "bmake VARNAME=USE_BUILTIN.dl" print?

 It prints "no".

 --
 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

From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/36086 CVS commit: pkgsrc/mk
Date: Fri, 27 Apr 2007 15:02:37 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tron
 Date:		Fri Apr 27 15:02:37 UTC 2007

 Modified Files:
 	pkgsrc/mk: dlopen.buildlink3.mk

 Log Message:
 Set "BUILDLINK_LDFLAGS.dl" to "${BUILDLINK_LDFLAGS.dlcompat}" if we are
 using the "dlcompat" package under Mac OS X.

 Another attempt to fix PR pkg/36086.


 To generate a diff of this commit:
 cvs rdiff -r1.13 -r1.14 pkgsrc/mk/dlopen.buildlink3.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Matthias Scheler <tron@NetBSD.org>
To: "John D. Baker" <jdbaker@mylinuxisp.com>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/36086 (security/openssl build fails on MacOS X 10.2.8 (required header file not found))
Date: Fri, 27 Apr 2007 16:04:10 +0100

 On Fri, Apr 27, 2007 at 08:47:22AM -0500, John D. Baker wrote:
 > >Something is apparently broken in "pkgsrc/mk/dlopen.buildlink3.mk".
 > >What does "bmake VARNAME=USE_BUILTIN.dl" print?
 > 
 > It prints "no".

 Finally somethings which works. Can you please try again with revision
 1.14 of "pkgsrc/mk/dlopen.buildlink3.mk"? If it doesn't work supply
 a logfile and the output of these command, please:

 bmake VARNAME=BUILDLINK_LDFLAGS.dlcompat show-var
 bmake VARNAME=DLINK_LDFLAGS.dl show-var
 bmake VARNAME=DL_LDFLAGS show-var

 	Thanks a lot for your patience

 -- 
 Matthias Scheler                                  http://zhadum.org.uk/

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: Fri, 27 Apr 2007 12:11:02 -0500

 On 27 Apr 2007, at 10:04, Matthias Scheler wrote:

 > Finally somethings which works. Can you please try again with revision
 > 1.14 of "pkgsrc/mk/dlopen.buildlink3.mk"? If it doesn't work supply

 This seems finally to work.  For completeness:

 > a logfile and the output of these command, please:

 updated: "http://bobdbob.com/~jdbaker/openssl.log"

 > bmake VARNAME=BUILDLINK_LDFLAGS.dlcompat show-var

 -ldl

 > bmake VARNAME=DLINK_LDFLAGS.dl show-var

 <blank line>

 > bmake VARNAME=DL_LDFLAGS show-var

 -ldl

 > 	Thanks a lot for your patience

 Thanks for working on this.  (Now returning to the build of "wget"...)

 --
 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

State-Changed-From-To: analyzed->feedback
State-Changed-By: tron@netbsd.org
State-Changed-When: Fri, 27 Apr 2007 17:21:39 +0000
State-Changed-Why:
The originator confirmed that the bug is finally fixed.


State-Changed-From-To: feedback->closed
State-Changed-By: tron@netbsd.org
State-Changed-When: Fri, 27 Apr 2007 18:30:32 +0000
State-Changed-Why:
Really close the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.