pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/42544: graphics/dx fails to find libsz (required by hdf) (NetBSD 4.0 / i386)
>Number: 42544
>Category: pkg
>Synopsis: graphics/dx fails to find libsz (required by hdf) (NetBSD 4.0
>/ i386)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 30 07:50:00 +0000 2009
>Originator: Robert Elz
>Release: NetBSD 4.0 / i386 (pkgsrc current 2009-12-30)
>Organization:
Prince of Songkla University
>Environment:
System: NetBSD jade.coe.psu.ac.th 4.0_STABLE NetBSD 4.0_STABLE
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008
kre%jade.coe.psu.ac.th@localhost:/usr/obj/4/kernels/JADE i386
Architecture: i386
Machine: i386
>Description:
Linking dxexec in graphics/dx (dx-4.4.4nb4) fails with ld
unable to find -lsz.
This looks to be some kind of buildlink problem to me,
libsz is installed in /usr/pkg/lib - but is not linked
into the .buildlink/lib directory in dx's work dir.
libsz is required ib libhdf (from devel/hdf) - hdf's
Makefile has a .include of szip's buildlink3.mk file,
the dependencies all appear to be there - I always knew
I didn't really understand the rules for bl3 stuff,
now I have proof...
>How-To-Repeat:
I use pkg_comp with libkver and NetBSD 4.0 release sets
installed (with X11_TYPE=modular instead of the x* sets).
I doubt any of that is relevant to this problem.
Building graphics/dx (with the newly fixed devel/hdf - hdf-4.2r4)
results in ...
cc -DHAVE_CONFIG_H -I. -I. -I../../../include -I./../dpexec -Dnetbsd
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -O2
-I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -D_GNU_SOURCE -c
main.c
sh ../../../libtool --tag=CC --mode=link c++ -O2 -I/usr/pkg/include
-I/usr/include -I/usr/pkg/include/freetype2 -D_GNU_SOURCE -Wl,-E
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o dxexec main.o
../dpexec/libDPEXEC.la ../dxmods/libDXMODS.la ../dxmods/user.lo
../dxmods/libDXMODSN.la ../libdx/libLIBDX.la ../libdx/mem.lo ../libdx/memory.lo
../hwrender/libHW.la ../hwrender/opengl/libOPENGL.la -lnetcdf -ldf -lXpm
-ltiff -lXm -lXp -lGLU -lGL -lm -lXmu -lXext -lXt -lX11 -lSM -lICE -lpthread
c++ -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2
-D_GNU_SOURCE -Wl,-E -Wl,-R/usr/pkg/lib -Wl,-R/usr/lib -o dxexec main.o
../dxmods/user.o ../libdx/mem.o ../libdx/memory.o -L/usr/pkg/lib -L/usr/lib
../dpexec/.libs/libDPEXEC.a ../dxmods/.libs/libDXMODS.a
../dxmods/.libs/libDXMODSN.a ../libdx/.libs/libLIBDX.a
../hwrender/.libs/libHW.a ../hwrender/opengl/.libs/libOPENGL.a
/usr/pkg/lib/libnetcdf.so /usr/pkg/lib/libdf.so /usr/pkg/lib/libsz.so
/usr/pkg/lib/libXpm.so /usr/pkg/lib/libtiff.so -lc /usr/pkg/lib/libXm.so
/usr/pkg/lib/libXft.so /usr/pkg/lib/libXrender.so /usr/pkg/lib/libfontconfig.so
/usr/pkg/lib/libexpat.so /usr/pkg/lib/libfreetype.so /usr/pkg/lib/libjpeg.so
/usr/pkg/lib/libpng12.so -lz /usr/pkg/lib/libXp.so /usr/pkg/lib/libGLU.so
/usr/pkg/lib/libGL.so /usr/pkg/lib/libXxf86vm.so /usr/pkg/lib/libXdamage.so
/usr/pkg/lib/libXfixes.so /usr/pkg/lib/libdrm.so -lm /usr/pkg/lib/libXmu.so
/usr/pkg/lib/libXext.so /usr/pkg/lib/libXt.so /usr/pkg/lib/libX11.so !
/usr/pkg/lib/libXau.so /usr/pkg/lib/libXdmcp.so /usr/pkg/lib/libSM.so
/usr/pkg/lib/libICE.so -lpthread -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath
-Wl,/usr/pkg/lib
ld: cannot find -lsz
gmake[3]: *** [dxexec] Error 1
gmake[3]: Leaving directory
`/pkg_comp/obj/pkgsrc/graphics/dx/dbg/dx-4.4.4/src/exec/dxexec'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/pkg_comp/obj/pkgsrc/graphics/dx/dbg/dx-4.4.4/src/exec'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/graphics/dx/dbg/dx-4.4.4/src'
gmake: *** [all-recursive] Error 1
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/graphics/dx
*** Error code 1
Stop.
the undefined ref to libsz comes from libhdf.so (and libmfhdf.so)
pkg_comp:debug.conf# pwd
/pkg_comp/obj/pkgsrc/graphics/dx/dbg/.buildlink/lib
pkg_comp:debug.conf# for f in *.so
do
ldd $f | grep sz && echo ... from $f
done
-lsz.2 => /usr/pkg/lib/libsz.so.2
... from libdf.so
-lsz.2 => /usr/pkg/lib/libsz.so.2
... from libmfhdf.so
pkg_comp:debug.conf# ls -ld libs*
ls: libs*: No such file or directory
pkg_comp:debug.conf# pkg_info | grep sz
szip-2.1nb1 Extended-Rice lossless compression
pkg_comp:debug.conf# ls -l /usr/pkg/lib/libsz*
-rw-r--r-- 1 root wheel 51222 Jan 20 2009 /usr/pkg/lib/libsz.a
-rwxr-xr-x 1 root wheel 840 Jan 20 2009 /usr/pkg/lib/libsz.la
lrwxr-xr-x 1 root wheel 14 Jan 20 2009 /usr/pkg/lib/libsz.so ->
libsz.so.2.0.0
lrwxr-xr-x 1 root wheel 14 Jan 20 2009 /usr/pkg/lib/libsz.so.2 ->
libsz.so.2.0.0
-rwxr-xr-x 1 root wheel 53037 Jan 20 2009 /usr/pkg/lib/libsz.so.2.0.0
Note, as usual all this was built starting in an almost
empty sandbox, szip (and /usr/pkg/lib/libsz.so etc that
come from szip) was installed only because building graphics/dx
installed a dependency that required it.
But somehow, that didn't get through to the buildlink3 setup
to get the library linked into the .buildlink/lib directory
>Fix:
?? No idea - but I'd like to... Would whoever fixes this
(whoever it is who understands the bl3 rules well enough)
like to give a 2 line summary of what rule wasn't followed
so I (and perhaps others) can perhaps suggest a fix next time
instead of just wallowing...
Home |
Main Index |
Thread Index |
Old Index