Subject: Re: pkgsrc with debian/woody - problems with libXaw
To: tech-pkg@netbsd.org <tech-pkg@netbsd.org>
From: Nicola Bolla <nicola.bolla@erogasmet.it>
List: tech-pkg
Date: 05/05/2004 12:59:00
Il mer, 2004-05-05 alle 12:01, Thomas Klausner ha scritto:
> On Tue, May 04, 2004 at 04:19:45PM +0200, Nicola Bolla wrote:
> > nbolla-bs1:/usr/pkgsrc/print/teTeX-bin# find work/ -name *Xaw*
> > work/.buildlink/lib/libXaw.so.7
> > work/.buildlink/lib/libXaw.so.7.0
> 
> As Dan McMahill noted, you're missing
> work/.buildlink/lib/libXaw.so
> 
> If you add that manually, does it work?
> 

IT WORKED!!! now I have teTex-bin install and I can go on building lyx


I have a very similar problem installing fonts/gucharmap:

/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status

But I have libssl installed!
nbolla-bs1:/usr/pkgsrc/fonts/gucharmap# locate libssl
/usr/doc/libssl0.9.6
/usr/lib/libssl.so.0.9.6
/usr/pkg/lib/libssl.a
/usr/pkg/lib/libssl.so
/usr/pkg/lib/libssl.so.300
/usr/pkg/lib/libssl.so.300.1
/usr/share/doc/libssl0.9.6
/usr/share/doc/libssl0.9.6/changelog.Debian.gz
/usr/share/doc/libssl0.9.6/changelog.gz
/usr/share/doc/libssl0.9.6/copyright
/var/lib/dpkg/info/libssl0.9.6.list
/var/lib/dpkg/info/libssl0.9.6.md5sums
/var/lib/dpkg/info/libssl0.9.6.postinst
/var/lib/dpkg/info/libssl0.9.6.prerm
/var/lib/dpkg/info/libssl0.9.6.shlibs
nbolla-bs1:/usr/pkgsrc/fonts/gucharmap#

As with teTex-bin there was not libssl.so in work/.buildlink/lib:

nbolla-bs1:/usr/pkgsrc/fonts/gucharmap# ls -la work/.buildlink/lib/|grep
ssl
lrwxrwxrwx    1 root     root           32 May  5 11:21
libgnutls-openssl.a -> /usr/pkg/lib/libgnutls-openssl.a
-rw-r--r--    1 root     root         1000 May  5 11:21
libgnutls-openssl.la
lrwxrwxrwx    1 root     root           33 May  5 11:21
libgnutls-openssl.so -> /usr/pkg/lib/libgnutls-openssl.so
lrwxrwxrwx    1 root     root           36 May  5 11:21
libgnutls-openssl.so.13 -> /usr/pkg/lib/libgnutls-openssl.so.13
lrwxrwxrwx    1 root     root           38 May  5 11:21
libgnutls-openssl.so.13.8 -> /usr/pkg/lib/libgnutls-openssl.so.13.8
nbolla-bs1:/usr/pkgsrc/fonts/gucharmap#

So, learning from the teTex-bin experience I made:


nbolla-bs1:/usr/pkgsrc/fonts/gucharmap/work/.buildlink/lib# ln -s
/usr/pkg/lib/libssl.so

nbolla-bs1:/usr/pkgsrc/fonts/gucharmap# ls -la work/.buildlink/lib/|grep
ssl
lrwxrwxrwx    1 root     root           32 May  5 11:21
libgnutls-openssl.a -> /usr/pkg/lib/libgnutls-openssl.a
-rw-r--r--    1 root     root         1000 May  5 11:21
libgnutls-openssl.la
lrwxrwxrwx    1 root     root           33 May  5 11:21
libgnutls-openssl.so -> /usr/pkg/lib/libgnutls-openssl.so
lrwxrwxrwx    1 root     root           36 May  5 11:21
libgnutls-openssl.so.13 -> /usr/pkg/lib/libgnutls-openssl.so.13
lrwxrwxrwx    1 root     root           38 May  5 11:21
libgnutls-openssl.so.13.8 -> /usr/pkg/lib/libgnutls-openssl.so.13.8
lrwxrwxrwx    1 root     root           22 May  5 13:00 libssl.so ->
/usr/pkg/lib/libssl.so
nbolla-bs1:/usr/pkgsrc/fonts/gucharmap#


The compilation restarted, but after a while it stopped, again, with the
error

/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status

The trick didn't work this time because I did'nt find anything similar
to libcrypto on my system



> Then we only have to find out why you didn't get it.
> I currently have no clue why, though.

A question: I understand that all this buildlink stuff is part of the
general pkgsrc infrascruture. I installed the binary Debian GNU
Linux/i386 binary kit, snapshot 20031023. Is it possible that all these
errors are caused by an obsolete infrastructure? What do I have to do to
refresh it? The only update activity I do is a periodic anoncvs update,
just to be sure I have the latest Makefile and similar stuff, to prevent
compilation errors, but I tend not to upgrade the installed packages,
unless thay have a security worning.

this is my "lintpkgsrc -i" output:

nbolla-bs1:/usr/pkgsrc/fonts/gucharmap# lintpkgsrc -i
Scanning pkgsrc Makefiles: 4668 packages
Version mismatch: 'GConf2' 2.6.0nb2 vs 2.6.1
Version mismatch: 'GConf2-ui' 2.6.0 vs 2.6.1
Version mismatch: 'fontconfig' 2.2.1nb3 vs 2.2.2
Version mismatch: 'freetype2' 2.1.5 vs 2.1.8
Unknown package: 'gcc3-c++' version 3.3.3
Unknown package: 'gcc3-c' version 3.3.3nb1
Unknown package: 'gcc3-f77' version 3.3.3
Unknown package: 'gcc3-java' version 3.3.3
Unknown package: 'gcc3-objc' version 3.3.3
Version mismatch: 'glib2' 2.4.0nb2 vs 2.4.1
Version mismatch: 'gnome-vfs2' 2.6.0nb1 vs 2.6.1.1
Version mismatch: 'gtk2+' 2.4.0nb1 vs 2.4.1
Version mismatch: 'nautilus' 2.6.0nb1 vs 2.6.1
Version mismatch: 'openssh' 3.8.1nb1 vs 3.8.1nb3
Version mismatch: 'perl' 5.8.3 vs 5.8.4,5.6.1nb10
Version mismatch: 'pkg_install' 20030923 vs 20040428
Version mismatch: 'png' 1.2.5nb3 vs 1.2.5nb4
Version mismatch: 't1lib' 5.0.1 vs 5.0.2nb1
Version mismatch: 'tcp_wrappers' 7.6.1nb1 vs 7.6.1nb2
Version mismatch: 'tiff' 3.6.1nb1 vs 3.6.1nb2
Version mismatch: 'xmlcatmgr' 2.0 vs 2.1
Version mismatch: 'xpkgwedge' 1.9 vs 1.10
nbolla-bs1:/usr/pkgsrc/fonts/gucharmap#


 
-- Nicola