Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Mar 2006 12:14:53 +0200
From:      "[LoN]Kamikaze" <LoN_Kamikaze@gmx.de>
To:        Dirk Meyer <dirk.meyer@dinoex.sub.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: lang/gcc41 - linking issues
Message-ID:  <4426699D.7040103@gmx.de>
In-Reply-To: <Bj23wkrHii@dmeyer.dinoex.sub.org>
References:  <4ZAiCkrHii@dmeyer.dinoex.sub.org>	<tlR9GNs3Ad@dmeyer.dinoex.sub.org> <441BE0A5.50309@gmx.de>	<tlR9GNs3Ad@dmeyer.dinoex.sub.org>	<Pine.LNX.4.61.0603201519580.20130@acrux.dbai.tuwien.ac.at>	<4ZAiCkrHii@dmeyer.dinoex.sub.org> <442534B7.3040405@gmx.de> <Bj23wkrHii@dmeyer.dinoex.sub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Dirk Meyer wrote:
> [LoN]Kamikaze schrieb:,
> 
>> # echo "/usr/local/lib/gcc/i386-portbld-freebsd6.1/4.1.1/" >
>> /usr/local/libdata/ldconfig/gcc41
>> solves the problem easily.
> 
> Where is this documented?
> 
> kind regards Dirk
> 

Since this issue is rather troubling in my opinion I wanted to get a
hold of how library finding works in FreeBSD. I started with reading
"/etc/rc.d/ldconfig". The command

# /etc/rc.d/ldconfig start

brought the following output:
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/X11R6/lib
/usr/local/lib /usr/local/lib/compat/pkg /usr/local/libdata/ldconfig/mysql
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout

Since mysql certainly isn't part of the base system I had a look what's
there. "/usr/local/libdata/ldconfig/mysql" is a file that simply
contains the string "/usr/local/lib/mysql".

I didn't find it documented anywhere, though. Also it seems that all
"lang/gccXX" ports have recently received the proper "INSTALLS_SHLIB"
and "LDCONFIG_DIRS", as described in the porters handbook. Thus my
solution is obsolete.



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