Subject: Re: missing .so files on BSD/OS
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/04/2003 10:32:42
On Sat, 4 Oct 2003, Jeremy C. Reed wrote:

> libiconv, libtool-base, and imap-uw didn't install .so files, but they
> did install .a and .la files. This is under BSD/OS 4.3.1.

I found that ltconfig checks for bsdi4*
I added to my bsd.prefs.mk:

.elif ${OPSYS} == "BSDOS"
# XXX ltconfig checks for bsdi4*
# XXX maybe assume bsdi4 for BSD/OS 3 and BSD/OS 5 too
LOWER_OPSYS?=           bsdi4

Or it should be
LOWER_OPSYS?=		bsdi${OS_VERSION}
because some other builds like Apache autodetect like that, but that will
probably break older ltconfig that don't check for bsdi5. Any thoughts?

Then libtool-base installed better. It is only missing one file now:
pkg_create: can't stat `/usr/pkg/lib/libltdl.so.3.0'

It is really libltdl.so.3.0.0

And libiconv had:
pkg_create: can't stat `/usr/pkg/lib/libcharset.so.1.0'
pkg_create: can't stat `/usr/pkg/lib/libiconv.so.4'
pkg_create: can't stat `/usr/pkg/lib/libiconv.so.4.0'

It is really /usr/pkg/lib/libcharset.so.1.0.0
/usr/pkg/lib/libiconv.so.2.2.0 and /usr/pkg/lib/libiconv.so.2
(notice 2.2.0 instead of 4.0)

It appears imap-uw now installed fine, no errors. But no...
it installed /usr/pkg/lib/libc-client.so.4.0.1 (and
/usr/pkg/lib/libimapuw.so.4.0.1)
but the .PLIST (and +CONTENTS) had /usr/pkg/lib/libc-client.so.4.1 and
/usr/pkg/lib/libimapuw.so.4.1.

This imap-uw has some CCLIENT_MINOR setting that appears to have been
ignored or used wrong.

(I don't know why there wasn't a pkg_create error at install time for that
one. Probably because the PLIST had a PLIST_SUBST.)

apr did:
pkg_create: can't stat `/usr/pkg/lib/libapr-0.so.9'
pkg_create: can't stat `/usr/pkg/lib/libapr-0.so.9.4'
pkg_create: can't stat `/usr/pkg/lib/libaprutil-0.so.9'
pkg_create: can't stat `/usr/pkg/lib/libaprutil-0.so.9.4'
But these are really installed as:
/usr/pkg/lib/libapr-0.so                /usr/pkg/lib/libaprutil-0.so
/usr/pkg/lib/libapr-0.so.0              /usr/pkg/lib/libaprutil-0.so.0
/usr/pkg/lib/libapr-0.so.0.9.4          /usr/pkg/lib/libaprutil-0.so.0.9.4

Since these are all similar problems (adding extra .number to .so
filename) -- does anyone know where I should look now?

Does anyone else use BSD/OS?

I know BSD/OS is soon to be dead. The final release is next month and it
will no longer be supported in 15 months. I am working on an article about
pkgsrc with a focus on BSD/OS with the plan to help current BSD/OS
customers to keep up-to-date with their BSD/OS systems before they migrate
away. And then hopefully, they will choose NetBSD :)

Thank you,

   Jeremy C. Reed
   http://bsd.reedmedia.net/