Subject: RE: Shared Libraries under NetBSD/pmax
To: 'djv@bedford.net' <djv@bedford.net>
From: Rob Mohr <rmohr@triax.com>
List: netbsd-help
Date: 03/02/1998 19:26:06
On Sunday, March 01, 1998 9:07 PM, CyberPeasant [SMTP:listread@bedford.net] 
wrote:
> > I am attempting to compile lesstif version 0.82.  The configure, make 
and
> > make install all went fine.  I edited /etc/ld.so.conf to include
> > /usr/local/lib the location of the libXm.so.0.82 and libMwm.so.0.82 
shared
> > libraries.  I then ran ldconfig -v which showed both libraries being
> > configured.  Soft links exist in this directory from libXm.so and 
libMwm.so
> > to their corresponding libraries.  I modified my .xinitrc file to use 
mwm
> > rather than twm.  When I execute xinit I fials with an error when
> > attempting to run mwm.  The error message is:
> >
> > mwm: can't load library 'libXm.so'
> >
> > Why isn't this working?  Have i missed a step?
> >
> > Rob Mohr
> >
>
> I  wasn't aware that ldconfig used /etc/ld.so.conf on NetBSD.
> Is this a 1.3 thing? Am I all wet again?
>
> I use code like this to accomplish ldconfig on 1.2.1, near the end
> of /etc/rc.local:
>
> if [ -f /sbin/ldconfig ]; then
>         echo -n 'creating runtime link editor directory cache'
>         ldconfig
>         if [ -d /usr/X11R6/lib ]; then
>                 echo -n ', including the X libraries'
>                 ldconfig -m /usr/X11R6/lib
> 	fi
> +	if [ -d /usr/local/lib ]; then
> +		echo -n ', and local libraries'
> +		ldconfig -m /usr/local/lib
> +       fi
>         echo '.'
> fi
>
> Or move the libs to /usr/X11R6/lib
>
> you can do the ldconfig -m /usr/local/lib from the command line and
> try startx'ing again.
>
> Dave
> --
> PGP public key:  finger djv@bedford.net
>
>        --== There are Greeks in that horse! I can hear them! ==--

It doesn't appear that the -m option is valid for ldconfig under NetBSD 
1.3/pmax.  The usage listing is:

usage:	ldconfig [-DvnNX] dir ...
	ldconfig -l [-Dv] lib ...
	ldconfig -p

At least one person has said that they didn't think shared libraries were 
working under NetBSD 1.3/pmax.  This seems to be contrary to what I have 
found in the archives about shared library support.  Anyone out there have 
the definitive answer on this?

Rob Mohr