Subject: Re: print/teTeX build failure on Solaris 9/sparc
To: SUNAGAWA Keiki <>
From: John D. Baker <>
List: tech-pkg
Date: 04/25/2004 23:55:37
On Mon, 26 Apr 2004, SUNAGAWA Keiki wrote:

> Hi,
> > g++ -o pdftex -L/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -Wl,-R/usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.3 -L/usr/pkg/gcc3/lib -Wl,-R/usr/pkg/gcc3/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib pdftexini.o pdftex0.o pdftex1.o pdftex2.o pdftex3.o pdftexextra.o pdftexdir/libpdf.a -L/usr/pkg/lib -lpng -L/usr/pkg/lib -lz ../../libs/xpdf/xpdf/libxpdf.a ../../libs/xpdf/goo/libGoo.a -lsocket lib/lib.a ../kpathsea/STATIC/libkpathsea.a -lm -nodefaultlibs -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -lm -lgcc -lc -lgcc
> > Undefined                       first referenced
> >  symbol                             in file
> > _Unwind_Resume                      pdftexdir/libpdf.a(pdftoepdf.o)  (symbol belongs to implicit dependency /usr/pkgsrc/print/teTeX-bin/work/.buildlink/gcc3/lib/
> > ld: fatal: Symbol referencing errors. No output written to pdftex
> It seems that the symbol "_Unwind_Resume" does not exist in
>, which belongs to gcc3-c package.  Please
> check if the symbol is in it and let me know?
> $ nm /usr/pkg/gcc3/lib/|grep _Unwind_Resume
> 00003f10 T _Unwind_Resume
> 00003fd8 T _Unwind_Resume_or_Rethrow

Yes, this symbol is in the library in question:

$ nm /usr/pkg/gcc3/lib/|grep _Unwind_Resume
[232]   |     22872|     172|FUNC |GLOB |0    |15     |_Unwind_Resume
[204]   |     23044|     172|FUNC |GLOB |0    |15     |_Unwind_Resume_or_Rethrow

> I installed gcc3-c, c++ and then rebuild most of my pacakge,
> but teTeX related ones are left over.  I'll rebuild them and
> see what happens.

Looking at the link command line, I notice "-lgcc" specified twice.
Would it be reasonable to suspect that if the symbol is in ""
that there should be a matching "-lgcc_s"?


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