Subject: amanda* pkg shared libs do not install
To: None <tech-pkg@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-pkg
Date: 10/15/2000 01:12:01
Hi,

I am trying to set up an ss10 with Solaris 7 / Zoularis as an Amanda
backup server from the sysutil/amanda-* packages. After some Makefile
tweaks I got to the point where the package installed just to find
that the elf symlink farms are set up but the targets of the symlinks, 
the shared libraries, are not installed. 

Better: They are installed and then removed immediately. 

The make(1) output from amanda-common:

---- snip ------------------------------------------------------------

[hauke@pizza] /<3>sysutils/amanda-common # make install
===> Installing for amanda-common-2.4.1p1

[...]

/sbin/sh ../config/mkinstalldirs /usr/pkg/lib
/sbin/sh ../libtool  --mode=install /usr/ucb/install -c -o root -g sys -m 444 libamanda.la /usr/pkg/lib/libamanda.la
/usr/ucb/install -c -o root -g sys -m 444 .libs/libamanda-2.4.1p1.so /usr/pkg/lib/libamanda-2.4.1p1.so
(cd /usr/pkg/lib && rm -f libamanda.so && ln -s libamanda-2.4.1p1.so libamanda.so)
chmod +x /usr/pkg/lib/libamanda-2.4.1p1.so

[...]

 /sbin/sh ../libtool  --mode=install /usr/ucb/install -c -s -o root -g sys -m 555 versionsuffix /usr/pkg/libexec/versionsuffix
/usr/ucb/install -c -o root -g sys -m 555 -s .libs/versionsuffix /usr/pkg/libexec/versionsuffix
/sbin/sh ../config/mkinstalldirs /usr/pkg/libexec
/sbin/sh ../config/mkinstalldirs /usr/pkg/sbin
make install-exec-hook
chown root /usr/pkg/libexec/versionsuffix
chgrp sysadmin /usr/pkg/libexec/versionsuffix
Making install in tape-src
/sbin/sh ../config/mkinstalldirs /usr/pkg/lib
/sbin/sh ../libtool  --mode=install /usr/ucb/install -c -o root -g sys -m 444 libamtape.la /usr/pkg/lib/libamtape.la
/usr/ucb/install -c -o root -g sys -m 444 .libs/libamtape-2.4.1p1.so /usr/pkg/lib/libamtape-2.4.1p1.so
(cd /usr/pkg/lib && rm -f libamtape.so && ln -s libamtape-2.4.1p1.so libamtape.so)
chmod +x /usr/pkg/lib/libamtape-2.4.1p1.so

[...]

===> [Automatic ELF shared object handling]
/usr/pkg/lib/libamanda-2.4.1p1.so.0.0: No such file or directory
/usr/pkg/lib/libamtape-2.4.1p1.so.0.0: No such file or directory
===> Registering installation for amanda-common-2.4.1p1
pkg_create: can't stat `/usr/pkg/lib/libamanda-2.4.1p1.so.0.0'
pkg_create: can't stat `/usr/pkg/lib/libamtape-2.4.1p1.so.0.0'
[hauke@pizza] /<3>sysutils/amanda-common #


[hauke@pizza] /<3>sysutils/amanda-common # ls -la /usr/pkg/lib/libam*
lrwxrwxrwx   1 root           24 Oct 15 00:35 /usr/pkg/lib/libamanda-2.4.1p1.so -> libamanda-2.4.1p1.so.0.0
lrwxrwxrwx   1 root           24 Oct 15 00:35 /usr/pkg/lib/libamanda-2.4.1p1.so.0 -> libamanda-2.4.1p1.so.0.0
-rw-r--r--   1 root       150868 Oct 15 00:35 /usr/pkg/lib/libamanda.a
-r--r--r--   1 root          740 Oct 15 00:35 /usr/pkg/lib/libamanda.la
lrwxrwxrwx   1 root           20 Oct 15 00:35 /usr/pkg/lib/libamanda.so -> libamanda-2.4.1p1.so
lrwxrwxrwx   1 root           22 Oct 14 23:20 /usr/pkg/lib/libamclient.so -> libamclient-2.4.1p1.so
lrwxrwxrwx   1 root           24 Oct 15 00:35 /usr/pkg/lib/libamtape-2.4.1p1.so -> libamtape-2.4.1p1.so.0.0
lrwxrwxrwx   1 root           24 Oct 15 00:35 /usr/pkg/lib/libamtape-2.4.1p1.so.0 -> libamtape-2.4.1p1.so.0.0
-rw-r--r--   1 root         9868 Oct 15 00:35 /usr/pkg/lib/libamtape.a
-r--r--r--   1 root          740 Oct 15 00:35 /usr/pkg/lib/libamtape.la
lrwxrwxrwx   1 root           20 Oct 15 00:35 /usr/pkg/lib/libamtape.so -> libamtape-2.4.1p1.so
[hauke@pizza] /<3>sysutils/amanda-common # 


---- snip ------------------------------------------------------------

Looks to me the elf lib version extensions are messed up. This happens 
with all the amanda packages, and ISTR that I've seen the "can't stat
xxx" messages before. Does anybody have a quick workaround?

     hauke

-- 
Now without signature.