Subject: Re: 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: 11/04/2000 07:05:56
On Sat, 4 Nov 2000, Frederick Bruckman wrote:

> On Fri, 3 Nov 2000, Jeremy C. Reed wrote:
> 
> > ===> Building for xscreensaver-gnome-3.25nb1
> > cc -Wall -Wstrict-prototypes -Wnested-externs -Wno-format -Wp,-lang-c89
> > -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 -L/usr/X11R6/lib
> > -o attraction attraction.o     screenhack.o ../utils/resources.o
> > ../utils/visual.o  ../utils/usleep.o ../utils/yarandom.o ../utils/hsv.o ../utils/colors.o
> > ../utils/spline.o  -L/usr/X11R6/lib -L/usr/X11R6/lib  -L/usr/X11R6/lib
> > -lXmu  -lSM -lICE -lXt -lX11 -lXext  -lm
> > /usr/X11R6/lib/libXt.a(Shell.o): In function `StopManagingSession':
> > Shell.o(.text+0x2a3c): undefined reference to `SmcCloseConnection'
> 
> The real question is, why it's using static libXt.a instead of the
> shared libXt.so. What does "file /usr/X11R6/lib/libXt.*" say?

$ file /usr/X11R6/lib/libXt.* 
/usr/X11R6/lib/libXt.a:      current ar archive
/usr/X11R6/lib/libXt.so.6:   symbolic link to libXt.so.6.0
/usr/X11R6/lib/libXt.so.6.0: ELF 32-bit LSB shared object, Intel 80386,
version 1, not stripped
$ ls -l /usr/X11R6/lib/libXt.*
-rw-r--r--  1 root  wheel  341634 Oct 21 05:44 /usr/X11R6/lib/libXt.a
lrwxr-xr-x  1 root  wheel      12 Oct 21 05:44 /usr/X11R6/lib/libXt.so.6
-> libXt.so.6.0
-r-xr-xr-x  1 root  wheel  296793 Oct 21 05:44 /usr/X11R6/lib/libXt.so.6.0

I also have under /emul/aout...

$ file /emul/aout/usr/X11R6/lib/libXt.*
/emul/aout/usr/X11R6/lib/libXt.a:      current ar archive random library
/emul/aout/usr/X11R6/lib/libXt.so:     symbolic link to libXt.so.6.0
/emul/aout/usr/X11R6/lib/libXt.so.6:   symbolic link to libXt.so.6.0
/emul/aout/usr/X11R6/lib/libXt.so.6.0: NetBSD/i386 demand paged shared
library not stripped
$ ls -l /emul/aout/usr/X11R6/lib/libXt.*
-rw-r--r--  1 root  wheel  302438 Jan 12  2000
/emul/aout/usr/X11R6/lib/libXt.a
lrwxr-xr-x  1 root  wheel      12 Oct 21 05:44
/emul/aout/usr/X11R6/lib/libXt.so -> libXt.so.6.0
lrwxr-xr-x  1 root  wheel      12 Oct 21 05:44
/emul/aout/usr/X11R6/lib/libXt.so.6 -> libXt.so.6.0
-r--r--r--  1 root  wheel  297755 Mar  3  2000
/emul/aout/usr/X11R6/lib/libXt.so.6.0

(Also, thanks for the info about xscreensaver and gnome.)

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