Subject: 1.4.2 to 1.5_BETA and library problems
To: None <current-users@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: current-users
Date: 10/26/2000 02:02:01
I updated my 1.4.2 system to 1.5_BETA by grabbing the *.tgz sets and
overwriting my system (except for etc.tgz which I used my new script for
updating /etc).

Using the new /etc/ld.so.conf, I couldn't use cvs, X or various other
programs. So I rebuilt cvs via pkgsrc and updated the /etc/ld.so.conf.

I am getting errors like:
Shared object "libSM.so.6" not found
/usr/libexec/ld.so: rxvt: libX11.so.6.1: No such file or directory
/usr/libexec/ld.so: bbkeys: libSM.so.6.0: No such file or directory
/usr/libexec/ld.so: lynx: libm.so.0.1: No such file or directory

Now my /etc/ld.so.conf looks like:
libm.so.0       machdep.fpu_present     1:libm387.so.0,libm.so.0
/usr/pkg/lib
/usr/X11R6/lib
/usr/local/lib

When I run ldconfig, I get:
ldconfig: can't open `/emul/aout//etc/ld.so.conf'

This /emul/aout didn't exist.

Now X works, but I am trying to build rxvt from pkgsrc.

Using a couple week old pkgsrc and a new pkgsrc, when I build
pkgsrc/graphics/xpm I receive:

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
-Wl,-rpath,/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

Stop.

I am not sure, but it seems like I read that I changed from a.out to ELF
(the INSTALL document is unclear -- it thinks it is 1.4) and the
NetBSD.org ELF webpage says that ld.so.conf is used differently (or not
really needed) with ELF.

I think I am missing some xpm files.
$ ls -l /usr/X11R6/lib/*Xpm*
-rw-r--r--  1 root  wheel  58478 Feb  9  2000 /usr/X11R6/lib/libXpm.a

Can anyone point me to the documentation for upgrading libraries? Or does
anyone have any advice on fixing this problem?

Thanks,

   Jeremy C. Reed
   http://www.reedmedia.net/