pkgsrc-Bugs archive

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

pkg/43547: [PATCH] (graphics/netpbm) Darwin has /usr/lib/libz.* separated



>Number:         43547
>Category:       pkg
>Synopsis:       (graphics/netpbm) Darwin has /usr/lib/libz.* separated
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 01 15:00:00 +0000 2010
>Originator:     Makoto Fujiwara
>Release:        Darwin 10.0.0
>Organization:
KINU Corporation
>Environment:
        
        
Darwin d138.ki.nu 10.0.0 Darwin Kernel Version 10.0.0: 
Fri Jul 31 22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386

(with Case Sensitive HFS+ File system)
>Description:
        graphics/netpbm wants _zlibVersion, while Darwin has it in 
/usr/lib/libz.*
        saying,
        -------------
        gcc -o pnmtopng pnmtopng.o pngtxt.o \
                   
-L/Users/makoto/pkgsrc/graphics/netpbm/work/netpbm-10.35.73/lib -lnetpbm \
                  -L/usr/pkg/lib -L/usr/pkg/lib -lpng14 -lm -L/usr/pkg/lib 
-L/usr/lib    
        Undefined symbols:
          "_zlibVersion", referenced from:
              _main in pnmtopng.o
        ld: symbol(s) not found
        collect2: ld returned 1 exit status
        gnumake[2]: *** [pnmtopng] Error 1
        gnumake[1]: *** [other/all] Error 2
        gnumake: *** [converter/all] Error 2
        *** Error code 2
        -------------
>How-To-Repeat:
        in Mac OS X 10.6,
        prepare bootstrap-pkgsrc
        and (cd pkgsrc/graphics/netpbm; bmake)
>Fix:
        

Index: graphics/netpbm/Makefile
===================================================================
RCS file: /export/cvsync/pkgsrc/graphics/netpbm/Makefile,v
retrieving revision 1.166
diff -u -r1.166 Makefile
--- graphics/netpbm/Makefile    13 Jun 2010 22:44:39 -0000      1.166
+++ graphics/netpbm/Makefile    1 Jul 2010 14:45:04 -0000
@@ -67,6 +67,10 @@
 CPPFLAGS+=     -DSGI_IDO_CC
 .endif
 
+.if ${OPSYS} == "Darwin"
+LDFLAGS+=      -lz
+.endif
+
 .include "../../graphics/jasper/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"

>Unformatted:
        
        


Home | Main Index | Thread Index | Old Index