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)
        Prince of Songkla University
System: NetBSD 4.0_STABLE NetBSD 4.0_STABLE 
(JADE-1.696-20080517) #9: Fri May 23 18:55:13 ICT 2008 i386
Architecture: i386
Machine: i386
        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 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...

        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 
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/ ../dxmods/ ../dxmods/user.lo 
../dxmods/ ../libdx/ ../libdx/mem.lo ../libdx/memory.lo 
../hwrender/ ../hwrender/opengl/  -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/ /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ -lc /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ -lz /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ -lm /usr/pkg/lib/ 
/usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ !
 /usr/pkg/lib/ /usr/pkg/lib/ /usr/pkg/lib/ 
/usr/pkg/lib/ -lpthread -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath 
ld: cannot find -lsz
gmake[3]: *** [dxexec] Error 1
gmake[3]: Leaving directory 
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
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

make: stopped in /usr/pkgsrc/graphics/dx
*** Error code 1


        the undefined ref to libsz comes from (and

pkg_comp:debug.conf# pwd

pkg_comp:debug.conf# for f in *.so                                              
ldd $f | grep sz && echo ... from $f                                            
        -lsz.2 => /usr/pkg/lib/
... from
        -lsz.2 => /usr/pkg/lib/
... from

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/
lrwxr-xr-x  1 root  wheel     14 Jan 20  2009 /usr/pkg/lib/ ->
lrwxr-xr-x  1 root  wheel     14 Jan 20  2009 /usr/pkg/lib/ ->
-rwxr-xr-x  1 root  wheel  53037 Jan 20  2009 /usr/pkg/lib/

        Note, as usual all this was built starting in an almost
        empty sandbox, szip (and /usr/pkg/lib/ 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

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