Subject: xpdf t1lib elf problem?
To: None <netbsd-help@netbsd.org>
From: James K. Lowden <jklowden@speakeasy.org>
List: netbsd-help
Date: 07/09/2001 02:40:32
Hi All,

I recently upgraded my box from 1.42 to 1.5.  I probably went about it
all wrong: the sysinstall worked fine, but I wound up rebuilding all my
packages with a giant script derived from pkg_info.  All's well (mostly)
though; Gnome 1.4 is functional.

I'm trying to get xpdf installed.  It won't make, and if I install the
precompiled binary I get run-time errors about shared libraries.  The
make (2nd try) stdout ends with

===> Building for xpdf-0.92
cd goo; make
`libGoo.a' is up to date.
cd ltk; make
cd xpdf; make all
c++ -O2  -DHAVE_DIRENT_H=1 -DHAVE_REWINDDIR=1 -DHAVE_POPEN=1
-DHAVE_MKSTEMP=1 -DHAVE_X11_XPM_H=1 -DHAVE_T1LIB_H=1
-DHAVE_FREETYPE_FREETYPE_H=1   -DJAPANESE_SUPPORT -I./../goo -I./../ltk
-I.  -I/usr/X11R6/include   -I/usr/pkg/include -Wl,-R/usr/X11R6/lib
-L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/X11R6/lib
-L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o xpdf Array.o
Catalog.o Decrypt.o Dict.o Error.o FontEncoding.o  FontFile.o
FormWidget.o Gfx.o GfxFont.o GfxState.o Lexer.o  Link.o LTKOutputDev.o
Object.o OutputDev.o Page.o Params.o  Parser.o PDFDoc.o PSOutputDev.o
SFont.o Stream.o T1Font.o  TextOutputDev.o TTFont.o XOutputDev.o XRef.o
xpdf.o -L../ltk -lLTK -L../goo -lGoo -lXpm  -lttf  -lSM -lICE
-L/usr/X11R6/lib -lX11  -lm
*** Error code 1
[etc.]

and stderr :

../goo/libGoo.a(gfile.o): In function `openTempFile(GString **, __sFILE
**, char *, char *)':
gfile.o(.text+0x5e6): warning: tmpnam() possibly used unsafely, use
mkstemp() or mkdtemp()
T1Font.o: In function `T1FontEngine::T1FontEngine(_XDisplay *, Visual *,
int, unsigned long, int, int)':
T1Font.o(.text+0x7c): undefined reference to `T1_SetBitmapPad'
T1Font.o(.text+0x83): undefined reference to `T1_InitLib'
T1Font.o(.text+0xb4): undefined reference to `T1_AASetBitsPerPixel'
T1Font.o(.text+0xc2): undefined reference to `T1_AASetLevel'
[etc.]


I deleted and reinstalled t1lib-1.0.1, no problem.

I'm sure there're 100 things I don't understand about the interaction of
ELF, shared libraries, X, and fonts.  And I doubt I'm the only fellow
who's tried running xpdf on 1.5.  So I thought I'd ask just what the
heck I shoulda done different.

Thanks very much.

--jkl