Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 1997 13:55:02 -0800
From:      John Polstra <jdp@polstra.com>
To:        uzsv2k@uni-bonn.de
Cc:        stable@freebsd.org
Subject:   Re: ldconfig problems
Message-ID:  <199711242155.NAA26301@austin.polstra.com>
In-Reply-To: <3476ECD8.41C67EA6@uni-bonn.de>
References:  <3476ECD8.41C67EA6@uni-bonn.de>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <3476ECD8.41C67EA6@uni-bonn.de>,
Philipp Reichmuth  <uzsv2k@uni-bonn.de> wrote:

> rm -f ghostview
> cc -o ghostview -m486 -O2      -L/usr/X11R6/lib main.o misc.o
> callbacks.o actions.o dialogs.o                   Ghostview.o ps.o
> getenv.o setenv.o strcasecmp.o                   SelFile.o Dir.o Path.o
> Draw.o -lXaw -lXmu -L/usr/X11R6/lib -lXt -lX11 -lXt -lSM -lICE -lXext
> -lX11   -lm -lgnumalloc
> ld: -lgnumalloc: no match
> *** Error code 1
[...]
> libgnumalloc.so.2.0 is in my ldconfig path, however, because ldconfig -r
> says:
> 
> XXXXX==== ldconfig -r | grep "numall"
> ======================================XXXXX
> 	9:-lgnumalloc.2.0 => /usr/lib/compat/libgnumalloc.so.2.0
> YYYYY=======================================================================YYYYY

The ldconfig database is used only by the dynamic linker "ld.so".
The static linker "ld" does not use it at all.  If you want "ld" to
find libgnumalloc, then you need to either add "-L/usr/lib/compat"
to its command line arguments, or create a symbolic link
"/usr/lib/libgnumalloc.so.2.0 -> /usr/lib/compat/libgnumalloc.so.2.0".

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711242155.NAA26301>