Subject: Updating p5-GD -- libintl RRS linking problem
To: None <>
From: None <>
List: tech-pkg
Date: 03/21/2000 14:18:37

I've been looking at upgrading our version of p5-GD in pkgsrc,
and I've met a problem I don't quite know how to cope with.

One of the patches to p5-GD adds "-lintl" to the libraries which
should be "linked" when the shared object is created.

However, -lintl (part of our gettext package) does not exist as a
shared library, only a normal .a library.  This causes this
problem when the shared object is created:

LD_RUN_PATH=3D"/usr/pkg/lib:/usr/lib:/usr/X11R6/lib" ld -o ./blib/arch/auto/GD/  -Bforcearchive -Bshareable  -L/usr/pkg/lib GD.o    -L/usr/X11R6/lib -L/usr/local/lib -lgd -lpng -lttf -lz -ljpeg -lintl -lm -lX11 -lXpm 
ld: /usr/pkg/lib/libintl.a(intl-compat.o): RRS text relocation at 0x7c72 for "_bindtextdomain__"
ld: /usr/pkg/lib/libintl.a(intl-compat.o): RRS text relocation at 0x7c85 for "_dcgettext__"

etc. etc.

I've looked at gettext, and I'll admit that I don't understand
how to properly and portably instruct it to create a shared
libintl.  Pointers/assistance hereby requested.

- H=E5vard