Subject: Re: OOo binary package on 1.6.2
To: None <tech-pkg@netbsd.org>
From: Michael Rauch <mrauch@NetBSD.org>
List: tech-pkg
Date: 06/01/2004 11:17:53
Hi, 

On Sun, May 30, 2004 at 01:02:45PM +0200, Richard Braun wrote:
> New build error :
> 
> /usr/bin/install -c -m 644 ./LICENSE ../python-inst/lib/python2.2/LICENSE.txt
> PYTHONPATH=../python-inst/lib/python2.2 \
>         ./python -tt ../python-inst/lib/python2.2/compileall.py -x badsyntax \
>         ../python-inst/lib/python2.2
> Shared object "libpthread.so.20" not found
> make: *** [libinstall] Erreur 1
> 
> I'm not sure it happens because of libpthread since before that I have
> cd ./unxbsdi2.pro/misc/build/Python-2.2.2/ &&  make ; make install  && touch so_
> built_so_python
> Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
> Shared object "libpthread.so.20" not found
> make: [Include/graminit.h] Erreur 1 (ignorée)
> Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
> Shared object "libpthread.so.20" not found
> make: [Python/graminit.c] Erreur 1 (ignorée)
> etc...

the location of libpthread doesn't get recorded in the binary, or in other
words, besides the -L <dir> flag you also need a -R (or -Wl,-R) <dir> flag. 
Looking at the file python/Python-2.2.2.patch, it might be sufficient to add
the same line for NetBSD as is already there for FreeBSD around line 1744.


Michael