Subject: devel/gtexinfo build fails on Solaris 9/sparc
To: None <tech-pkg@netbsd.org>
From: John D. Baker <jdbaker@mylinuxisp.com>
List: tech-pkg
Date: 07/23/2004 22:14:44
Trying to build lang/gcc34, devel/gtexinfo is built as a dependency.
Part of the build process creates a tool 'makedoc'.  attempting to run
'makedoc' fails because libgcc_s.so can't be found:

[...]
Making all in info
if gcc -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/pkg/lib/locale\" -DINFODIR=\"/usr/pkg/info\"  -DINFODIR2=\"/usr/pkg/share/info\" -DPKGSRC_INFOPATH=\"/usr/pkg/info:/usr/openwin/info:/usr/pkg/info\" -I. -I. -I.. -I. -I../lib -I../intl -I.. -I.   -I/usr/pkg/include  -O -I/usr/pkg/include -MT makedoc.o -MD -MP -MF ".deps/makedoc.Tpo" -c -o makedoc.o makedoc.c;  then mv -f ".deps/makedoc.Tpo" ".deps/makedoc.Po"; else rm -f ".deps/makedoc.Tpo"; exit 1; fi
gcc  -O -I/usr/pkg/include  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o makedoc  makedoc.o ../lib/libtxi.a -lcurses /usr/pkg/lib/libintl.so /usr/pkg/lib/libiconv.so -lc -R/usr/pkg/lib -lintl -liconv
rm -f doc.c funs.h key.c
./makedoc ./session.c ./echo-area.c ./infodoc.c  ./m-x.c ./indices.c ./nodemenu.c  ./footnotes.c ./variables.c
ld.so.1: ./makedoc: fatal: libgcc_s.so.1: open failed: No such file or directory
*** Signal 9

Stop.
bmake: stopped in /usr/pkgsrc/devel/gtexinfo/work/texinfo-4.7/info

[...]

The compiler being used to bootstrap pkgsrc and lang/gcc34 is the gcc-3.4
from sunfreeware.com, so 'libgcc_s.so' is in /usr/local/lib.

The intention is that once a pkgsrc-derived gcc is built, the external
gcc will be uninstalled and pkgsrc and gcc will be re-bootstrapped using
the freshly-installed compiler.

I've done this several times before with no problems at all, but it seems
recent changes to pkgsrc have introduced problems like that shown above
(and with lang/gcc3, which I posted about earlier).

Thanks for your help.

-- 
John D. Baker, KN5UKS                    NetBSD     Darwin/MacOS X
jdbaker(at)mylinuxisp(dot)com                 OpenBSD            FreeBSD
BSD -- It just sits there and _works_!