Subject: installing suse91_base, ldconfig fails with syntax error
To: None <netbsd-help@netbsd.org>
From: Jarmo Jaakkola <jarmo.jaakkola@tut.fi>
List: netbsd-help
Date: 05/03/2005 21:14:01
Hi.

I'm having some weird problems, when I try to install emulators/suse91_base
(needed by www/opera7).

Lines from the install, some modifications done to make easier reading.
The actual error is the last two lines.

---8<---8<---
===> do-su-install [suse_base-9.1nb5] ===> Becoming root to install suse_base.
Password:
for FILE in /usr/src/pkgsrc/emulators/suse91_base/work.arthur/*.sh; do install -c -o root -g wheel -m 555 $FILE /usr/pkg/sbin/`basename $FILE .sh`;  done
install -d -o root -g wheel -m 755 /usr/pkg/emul/linux/dev
/bin/ln -fs /dev/sound /usr/pkg/emul/linux/dev/dsp
/bin/ln -fs /dev/null /usr/pkg/emul/linux/dev/null
/bin/ln -fs /dev/tty /usr/pkg/emul/linux/dev/tty
/usr/pkg/sbin/rpm2pkg -d /usr/pkg -f
/usr/src/pkgsrc/emulators/suse91_base/work.arthur/PLIST_DYNAMIC -p emul/linux -s 1 [several -i options listing files in /etc] [several rpm files from distfiles]
echo "@dirrm emul/linux" >>/usr/src/pkgsrc/emulators/suse91_base/work.arthur/PLIST_DYNAMIC
install -c -o root -g wheel -m 444 /usr/src/pkgsrc/emulators/suse91_base/work.arthur/SuSE-release /usr/pkg/emul/linux/etc
install -d -o root -g wheel -m 755 /usr/pkg/emul/linux/proc
/bin/ln -fs /usr/pkg/emul/linux/proc/mounts /usr/pkg/emul/linux/etc/mtab
/usr/pkg/emul/linux/sbin/ldconfig -r /usr/pkg/emul/linux
/usr/pkg/emul/linux/sbin/ldconfig: 1: Syntax error: "(" unexpected
---8<---8<---

So what could be wrong?

This is without /emul/linux symlink, but it is the same with it.

Heres some grepping from /netbsd:
_CFG_options         COMPAT_LINUX    # binary compatibility with Linux
_CFG_###> options \011EXEC_AOUT\011# exec a.out binaries
_CFG_###> options \011EXEC_ELF32\011# exec ELF binaries
_CFG_###> options \011EXEC_SCRIPT\011# exec #! scripts

This is 2.0.2.

Don't these mean that I have Linux-compatibility?  Is there something
else needed?

Also, the installation was kind of a kludge, I had serious problems
getting NetBSD to install on my system, so the install is done at least
half by hand.  So if there is some ld-magic that sysinst does, it could
be missing.

I remember having some similar problems years ago when I was first
starting to use NetBSD and IIRC, they had something to do with ld.
But I just can't remember what did I do to solve them.

Hope I didn't forget anything important from the problem description.
If you need more details, please ask.

-- 
 Jarmo Jaakkola, Student at Tampere University of Technology
 "If a shop is open 24h/day 7 days/week, why do they have locks in their
  doors?"