pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/37760: security/p5-Net-SSLeay: linking problem on linux



>Number:         37760
>Category:       pkg
>Synopsis:       security/p5-Net-SSLeay: linking problem on linux
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 15 11:40:00 +0000 2008
>Originator:     Yakovetsky Vladimir
>Release:        
>Environment:
System: Linux bres 2.6.21.5 #1 SMP Fri Jul 6 09:48:19 GMT 2007 i686 GNU/Linux

>Description:
        linker could not find libz.


>How-To-Repeat:
% uname -sr
Linux 2.6.21.5
% cd security/p5-Net-SSLeay && bmake
...
--- blib/arch/auto/Net/SSLeay/SSLeay.so ---
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/pkg/lib" gcc  -Wl,-R/usr/pkg/lib -shared -L/usr/pkg/lib 
SSLeay.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o 
blib/arch/auto/Net/SSLeay/SSLeay.so     -L/usr/pkg -L/usr/pkg/lib -lssl 
-lcrypto -lz           
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
*** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error code 1
1 error

bmake: stopped in /usr/obj/security/p5-Net-SSLeay/work/Net-SSLeay-1.32
*** Error code 2

Stop.


>Fix:
--- security/p5-Net-SSLeay/Makefile.orig
+++ security/p5-Net-SSLeay/Makefile
@@ -26,6 +26,10 @@
 MAKE_ENV+=             PERL_MM_USE_DEFAULT=1   # avoid network question
 MAKE_PARAMS=           --skipdeps
 
+.include "../../mk/bsd.fast.prefs.mk"
+.if ${OPSYS} == "Linux"
+.include "../../devel/zlib/buildlink3.mk"
+.endif
 .include "../../lang/perl5/module.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"




Home | Main Index | Thread Index | Old Index