Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2007 13:59:24 +0200
From:      Martin Schweizer <lists_freebsd@bluewin.ch>
To:        Kris Kennaway <kris@freebsd.org>
Cc:        freebsd-questions@freebsd.org, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: ldconfig problem after upgrade 4.11 to 5.5
Message-ID:  <20070902115924.GA38350@saturn.pcs.ms>
In-Reply-To: <20070827153454.GB70070@hub.freebsd.org>
References:  <20070822042246.GA3497@saturn.pcs.ms> <20070822043725.GA2869@rot26.obsecurity.org> <20070822045118.GB3497@saturn.pcs.ms> <20070822063102.GA4141@rot26.obsecurity.org> <20070822064430.GB3852@saturn.pcs.ms> <20070822132050.GA9055@rot26.obsecurity.org> <20070826153546.GA637@saturn.pcs.ms> <20070827153454.GB70070@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--AqsLC8rIMeq19msA
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Kris

Am Mon, Aug 27, 2007 at 03:34:54PM +0000 Kris Kennaway schrieb:
> > > > > > > > After I updated my 4.11 to an 5.5 system (following /usr/sr=
c/UPDATING), I get=20
> > > > > > > > around 63 error messages while the system boot up:
> > > > > > > >=20
> > > > > > > > ldconfig: /var/run/ld.so.hints: No such file or directory
> > > > > > > >           search: trailing characters ignored
> > > > > > > >           No such file or directory
> > > > > > > >         0: - lmalloc.1.1: trailing characters ignored. No s=
uch file or=20
> > > > > > > > directory
> > > > > > > > ...
> > > > > > > > ...
> > > > > > > >=20
> > > > > > > Looks like it might be a broken symlink.
> > > > > > >=20
> > > > > > > Why are you updating to 5.5 though?  You should be using 6.2.
> > > > > >=20
> > > > > > If I'm understanding /usr/src/UPDATING correct I should first u=
pdate to 5.5=20
> > > > > > and then to 6.2?
> > > > >=20
> > > > > OK.  It may have been easier (and still could be) to just do a bi=
nary
> > > > > upgrade instead.
> > > > >=20
> > > > > > Any ideas where I can check this symlink?
> > > > >=20
> > > > > Use find(1) to look for libmalloc.so.1.1
> > > >=20
> > > > The files are all located in /usr/lib/compat/aout. The path is defi=
ned in=20
> > > > /etc/defaults/rc.conf
> > > > [snip]
> > > > ldconfig_paths_aout=3D"/usr/lib/compat/aout /usr/X11R6/lib/aout /us=
r/local/lib/aout"
> > > > [snip]
> > > >=20
> > > > Any ideas?
> > >=20
> > > Are you missing aout support from your kernel?  I think it's COMPAT_A=
OUT.
> >=20
> > After reading about ldconfig and playing with the parameters (see man p=
age) I=20
> > find out that the processing of the pathes in /etc/defaults/rc.conf isn=
't=20
> > correct.
> > /etc/defaults/rc.conf:
> > [snip]
> > ldconfig_insecure=3D"NO"	# Set to YES to disable ldconfig security chec=
ks
> > ldconfig_paths=3D"/usr/lib/compat /usr/X11R6/lib /usr/local/lib"
> > ldconfig_paths_aout=3D"/usr/lib/compat/aout /usr/X11R6/lib/aout /usr/lo=
cal/lib/aout"
> > ldconfig_local_dirs=3D"/usr/local/libdata/ldconfig /usr/X11R6/libdata/l=
dconfig"
> > 			# Local directories with ldconfig configuration files.
> > ldconfig_local32_dirs=3D"/usr/local/libdata/ldconfig32 /usr/X11R6/libda=
ta/ldconfig32"
> > 			# Local directories with 32-bit compatibility ldconfig
> > [snip]
> >=20
> > Following this I set in /etc/rc.conf
> >=20
> > [snip]
> > ldconfig_paths_aout=3D"/usr/lib/compat/aout"
> > [snip]
> >=20
> > Any ideas why the kernel do not process the pathes correct?
> >=20
> > Now it works. Thank you for your help.
> >=20
>=20
> You need a.out support *IN YOUR KERNEL*.  i.e. you need to enable it
> in your kernel configuration and recompile your kernel.

Only for clarification. This option I've in my kernel:
[snip]
options         COMPAT_AOUT
[snip]

After the above change in /etc/rc.conf no messages occurs while FreeBSD is=
=20
starting.

--=20
Regards,

Martin Schweizer
<info@pc-service.ch>

PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon
Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch;
public key : http://www.pc-service.ch/pgp/public_key.asc;=20
fingerprint: EC21 CA4D 5C78 BC2D 73B7  10F9 C1AE 1691 D30F D239;


--AqsLC8rIMeq19msA
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFG2qWbwa4WkdMP0jkRAkn8AJ0SoWTauS0xf8sWC54nWCs6K4eb5gCg+f3w
nOCtzrsG9zuOjacVt09MWnA=
=BKZJ
-----END PGP SIGNATURE-----

--AqsLC8rIMeq19msA--



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