Subject: still problems with shared object lpthread
To: Bill Studenmund , <fedor@doc.com>
From: Riccardo Mottola <zuse@libero.it>
List: port-mac68k
Date: 08/21/2003 14:41:54
Hello,

I still am in doubt if the error here is a NetBSD culprit, a NetBSD/m68k
particular problem or a gnustep configure problem.

there are still some strange problems with the libpthread shared object.
I say "still" because I did the tedious and rare task to format and
reinstall everything of 1.6.1 (I had the small doubt in my mind that I could
have had problems with the 1.6->1.6.1 upgrade).

I regularly installed the pth package.

pkg_info says:
pth-2.0.0           GNU Portable Thread library

now doing a ls-l shows us the following structure:
-rw-r--r--  1 root  wheel  110224 Aug 18 11:11 /usr/pkg/lib/libpthread.a
-rwxr-xr-x  1 root  wheel     788 Aug 18 11:11 /usr/pkg/lib/libpthread.la
lrwxr-xr-x  1 root  wheel      19 Aug 18 11:11 /usr/pkg/lib/libpthread.so ->
libpthread.so.20.20
lrwxr-xr-x  1 root  wheel      19 Aug 18 11:11 /usr/pkg/lib/libpthread.so.20
-> libpthread.so.20.20
-rwxr-xr-x  1 root  wheel   92642 Aug 18 11:11
/usr/pkg/lib/libpthread.so.20.20


if linewrapping did not make this unreadable we see the double symbolic link
system.

I get the following answer to:
file /usr/pkg/lib/libpthread.so
/usr/pkg/lib/libpthread.so: symbolic link to libpthread.so.20.20

so I assume everything is OK?

but now I try co configure "gnustep make" using the official sources (not
the package). There is effort to port the software to NetBSD and OpenBSD so
that it compiles out of the box. I personally verified this for OpenBSD
sparc and AFAIK NetBSD/x86 works, so I wonder for /68k...

I explicitly configure with --with-thread-lib=-lpthread

in fact the error I see in config.log is:
configure:3809: checking whether objc has thread support
configure:3840: gcc -o conftest -O2 -x objective-c -I.  -I/usr/pkg/include
-I/usr/GNUstep/System/Library/Headers
-L/usr/GNUstep/System/Library/Libraries -fgnu-runtime   -I/usr/pkg/include
conftest.c -lobjc  -R/usr/pkg/lib -L/usr/pkg/lib -lpthread  >&5
<snip>

configure:3845: ./conftest
Shared object "libpthread.so.20" not found


so I ask myself are computers too stupid? how can the "it" (i suppose the
linker?) know of the existence of libpthread.so.20 if not following the link
from libpthread.so? And why didn't it resolve to libpthread.so.20.20 ?

Help appreciated...

Riccardo