Subject: Re: pkgsrc with debian/woody - problems with libXaw
To: ing.Nicola Bolla <nicola.bolla@erogasmet.it>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 05/03/2004 14:46:30
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
> dvi-init.o events.o font-open.o string-utils.o my-vsnprintf.o
> my-snprintf.o help-window.o message-window.o statusline.o xserver-info.o
> gf.o pk.o psdps.o psgs.o psheader.o psnews.o special.o  util.o vf.o
> sfDir.o sfDraw.o sfPath.o sfSelFile.o hypertex.o mime.o wwwfetch.o
> alloca.o dvips.o tfmload.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lwwwxml
> -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet
> -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir
> -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5
> -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 :)

Cheers,
 Thomas