Subject: /etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
To: None <port-amd64@netbsd.org>
From: None <joel@carnat.net>
List: port-amd64
Date: 08/05/2006 15:47:28
Hi,

I binary-upgraded my 3.99.21/i386 installation with a 3.99.23/amd64 (from
-daily). I know it's not clean but this is a test :)
Anyway, the system seem to run except there are few weird things:

-> sysctl -a don't show linux emulation version.
-> when compiling packages (pkg_chk and pkgfind, yet), I get the following
message:
##############################################################
===> Building for pkgfind-20050804
cc -O2 -pipe     -Wl,-R/usr/pkg/lib -o
/tmp/pkgwork/pkgtools/pkgfind/work.atheria/pkgfind-20050804/pkgfind
/tmp/pkgwork/pkgtools/pkgfind/work.atheria/pkgfind-20050804/pkgfind.c
=> Unwrapping files-to-be-installed.
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
===> Installing for pkgfind-20050804
=> Creating installation directories
/usr/bin/install -c -s -o root -g wheel -m 555
/tmp/pkgwork/pkgtools/pkgfind/work.atheria/pkgfind-20050804/pkgfind
/usr/pkg/bin/pkgfind
/usr/bin/install -c -o root -g wheel -m 444
/tmp/pkgwork/pkgtools/pkgfind/work.atheria/pkgfind-20050804/pkgfind.1
/usr/pkg/man/man1/pkgfind.1
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)/etc/ld.so.conf:
invalid/unknown sysctl for libm.so.0 (22)

=> Automatic manual page handling
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)/etc/ld.so.conf:
invalid/unknown sysctl for libm.so.0 (22)

/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)/etc/ld.so.conf:
invalid/unknown sysctl for libm.so.0 (22)

/etc/ld.so.conf: invalid/unknown sysctl for libm.so.0 (22)
##############################################################

the app work though without warnings:
##############################################################
# pkgfind vim
editors/vim: Vim editor (vi clone) without GUI
editors/vim-gtk: Vim editor (vi clone) with X11 GTK+ GUI
editors/vim-gtk2: Vim editor (vi clone) with X11 GTK2 GUI
editors/vim-kde: Vim editor (vi clone) with X11 KDE3 GUI
editors/vim-lang: Language files for the vim editor (vi clone)
editors/vim-motif: Vim editor (vi clone) with X11 Motif GUI
editors/vim-share: Data files for the vim editor (vi clone)
editors/vim-xaw: Vim editor (vi clone) with X11 Athena GUI
# ldd /usr/pkg/bin/pkgfind
/usr/pkg/bin/pkgfind:
        -lc.12 => /usr/lib/libc.so.12
##############################################################

if I run the ldconfig rc script, the warning is there:
##############################################################
# sh -x /etc/rc.d/ldconfig restart
+ . /etc/rc.subr
+ : rc.conf(5)
+ _rc_subr_loaded=:
+ name=ldconfig
+ rcvar=ldconfig
+ ldconfig_command=/sbin/ldconfig
(...)
+ _rc_restart_done=true
+ /etc/rc.d/ldconfig stop
+ /etc/rc.d/ldconfig start
Creating a.out runtime link editor directory cache.
/sbin/ldconfig: 1: Syntax error: "(" unexpected
+ eval
+ return 0
##############################################################

what is the way to get rid of thoses warnings/errors (without a full
re-install, if possible ;) ?

TIA,
   Jo