Subject: Re: 1.4.2 to 1.5_BETA and library problems
To: None <>
From: Jeremy C. Reed <>
List: current-users
Date: 10/26/2000 11:31:45
On Thu, 26 Oct 2000, Jeremy C. Reed wrote:

> Well anyways, I looked at the libXaw and libXaw3d files and I saw that
> libXaw (original) started with "^?ELF" and the libXaw3d started with
> "<C0><86>^A^K^@".

> The file starts with "^?ELF^A". Instead of rebuild lynx and
> other applications, can I maybe untar base.tgz's /usr/lib directory to
> /emul/aout/ ?? (Usually, I guess I should try things before asking -- but

> To fix this should I untar some old x*.tgz set's libraries to my
> /emul/aout directory?

Well I answered my own question here. And now rxvt, lynx and XF86Setup 
appear to work. Using 1.4.2 sets, I did:

 tar -C /emul/aout -xvzf base.tgz '*/usr/lib/*'
 tar -C /emul/aout -xvzf xbase.tgz '*/usr/X11R6/lib/lib*'

Now back to my original problem in my first posting. After doing a "make
clean" and "make" in pkgsrc/graphics/xpm, I receive:

making all in ./sxpm...
gcc -O2   -I../exports/include -I../..  -I/usr/X11R6/include
rm -f sxpm
gcc -o sxpm -O2      -L/usr/X11R6/lib sxpm.o -L../lib -L/usr/X11R6/lib
-lXpm -lXt -lSM -lICE -lXext -lX11      -Wl,-rpath,/usr/X11R6/lib
sxpm.o: In function `main':
sxpm.o(.text+0x409): undefined reference to `XpmReadFileToPixmap'
sxpm.o(.text+0xace): undefined reference to `XpmReadFileToPixmap'
sxpm.o(.text+0xba3): undefined reference to `XpmCreatePixmapFromData'
sxpm.o(.text+0xbee): undefined reference to `XpmWriteFileFromPixmap'
sxpm.o: In function `Punt':
sxpm.o(.text+0xf7f): undefined reference to `XpmFreeAttributes'
sxpm.o(.text+0xfea): undefined reference to `XpmFreeAttributes'
sxpm.o: In function `VersionInfo':
sxpm.o(.text+0x10e1): undefined reference to `XpmLibraryVersion'
sxpm.o(.text+0x10f0): undefined reference to `XpmLibraryVersion'
collect2: ld returned 1 exit status
*** Error code 1

I am guessing that it is using the wrong libraries -- my new 1.5_BETA
include headers aren't matching up. How can I get them to use the
new/correct libraries?

Any ideas?

   Jeremy C. Reed