Subject: pkg/19114: libtool not working for the png packages with Zoularis in Solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dolemite@wuli.nu>
List: netbsd-bugs
Date: 11/20/2002 10:51:40
>Number: 19114
>Category: pkg
>Synopsis: libtool not working for the png packages with Zoularis in Solaris
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 20 10:52:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Alex Newman
>Release: Solaris
>Organization:
WuLi
>Environment:
SunOS foo 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-5_10
>Description:
In Solaris using Zoularis when you
/usr/pkgsrc/graphics/png/work/.buildlink/bin/libtool --mode=link gcc -o pngtest -lz -lm -O2 -I/usr/pkg/include pngtest.o -Wl,-R/usr/pkg/lib -L/usr/pkg/lib libpng.la
it produces
gcc -o .libs/pngtest -O2 pngtest.o ./.libs/libpng.so -R/usr/pkg/lib
which is missing the -lm and -lz
when you
libtool --mode=link gcc -o pngtest -lz -lm -O2 -I/usr/pkg/include pngtest.o -Wl,-R/usr/pkg/lib -L/usr/pkg/lib libpng.la you get
gcc -o .libs/pngtest -O2 -I/usr/pkg/include pngtest.o -Wl,-R/usr/pkg/lib /usr/pkg/lib/libz.so -lm -L/usr/pkg/lib ./.libs/libpng.so -R/usr/pkg/lib
creating pngtest
>How-To-Repeat:
cd /usr/pkgsrc/print/png in solaris bmake install
>Fix:
nope
>Release-Note:
>Audit-Trail:
>Unformatted: