Subject: Re: pkgsrc with debian/woody - problems with libXaw
To: tech-pkg@NetBSD.org <tech-pkg@NetBSD.org>
From: Nicola Bolla <nicola.bolla@erogasmet.it>
List: tech-pkg
Date: 05/04/2004 13:34:23
Il lun, 2004-05-03 alle 14:46, Thomas Klausner ha scritto:
> On Mon, May 03, 2004 at 09:37:23AM +0200, ing.Nicola Bolla wrote:
> > Installing some packages requiring Xaw, for example teTex-bin, there is
> > the following error:
> > 
> > gcc -o oxdvi.bin -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
> > -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib xdvi.o dvi-draw.o
[...]

> > -ldl -lz -L/usr/pkg/lib -lssl -lcrypto -Wl,-R/usr/pkg/lib -L/usr/pkg/lib
> > -lt1 -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lz
> > ../kpathsea/STATIC/libkpathsea.a -lm /usr/bin/ld: cannot find -lXaw
> > collect2: ld returned 1 exit status
> > make[2]: *** [oxdvi.bin] Error 1
> > make[2]: Leaving directory
> > `/usr/pkgsrc/print/teTeX-bin/work/tetex-src-2.0.2/texk/oxdvik'
> > make[1]: *** [all] Error 1
> > make[1]: Leaving directory
> > `/usr/pkgsrc/print/teTeX-bin/work/tetex-src-2.0.2/texk'
> > make: *** [all] Error 1
> > *** Error code 
> 
> The problem probably is that the package does not include the
> buildlink3 file for Xaw; I just added it to teTeX-bin/Makefile.
> Please update and try again.
> 
> > .. so I cannot understand why ld cannot find Xaw!
> 
> buildlink3 is hiding libraries that shouldn't be found, and it
> seems that in this case it's hiding too much... at least I hope that
> that's the problem :)

The problem is still there.

- I made an anoncvs update
- I verified that the Makefile contains the new line 
      .include "../../mk/xaw.buildlink3.mk"
- I made a 
	# bmake clean clean-depends
- I made a 
	# bmake install clean clean-depends

..and the error is still there:

gcc -o oxdvi.bin -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
-Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib xdvi.o dvi-draw.o
[...]
-lt1 -L/usr/X11R6/lib -lXaw -lXmu -lXt -lSM -lICE -lXext -lX11 -lz
../kpathsea/STATIC/libkpathsea.a -lm
/usr/bin/ld: cannot find -lXaw
collect2: ld returned 1 exit status
make[2]: *** [oxdvi.bin] Error 1


I noticed that the package x11/XFree86-libs has the Xaw libraries:

./x11/XFree86-libs/PLIST:${X11ROOT_PREFIX}/lib/libXaw.so
./x11/XFree86-libs/PLIST:${X11ROOT_PREFIX}/lib/libXaw.so.6
./x11/XFree86-libs/PLIST:${SHARED_LIB_MINOR}${X11ROOT_PREFIX}/lib/libXaw.so.6.1
./x11/XFree86-libs/PLIST:${X11ROOT_PREFIX}/lib/libXaw.so.7
./x11/XFree86-libs/PLIST:${SHARED_LIB_MINOR}${X11ROOT_PREFIX}/lib/libXaw.so.7.0

So I'm thinking about installing that package on my
miminal_debian+pkgsrc machine to see if this solve the problem. I wonder
if this is a good idea, having already all the XFree86 environment
natively installed from debian.

Another option should be to completely substitute the debian/XFree86
with a pkgsrc/XFree86, althought this scares me a little.

Any suggestions?

Anyway, it's realy frustrating that I'm not able to use the Xaw
libraries already present on my machine

nbolla-bs1:/usr/pkgsrc# locate libXaw
/usr/pkg/share/x11-links/lib/libXaw.a
/usr/pkg/share/x11-links/lib/libXaw.so
/usr/pkg/share/x11-links/lib/libXaw.so.6
/usr/pkg/share/x11-links/lib/libXaw.so.6.1
/usr/pkg/share/x11-links/lib/libXaw.so.7
/usr/pkg/share/x11-links/lib/libXaw.so.7.0
/usr/X11R6/lib/libXaw.a
/usr/X11R6/lib/libXaw.so
/usr/X11R6/lib/libXaw.so.6
/usr/X11R6/lib/libXaw.so.6.1
/usr/X11R6/lib/libXaw.so.7
/usr/X11R6/lib/libXaw.so.7.0
/usr/X11R6/lib/libXaw3d.a
/usr/X11R6/lib/libXaw3d.so
/usr/X11R6/lib/libXaw3d.so.6
/usr/X11R6/lib/libXaw3d.so.6.1
nbolla-bs1:/usr/pkgsrc#


-- Nicola