Subject: Linux glib2 package compile
To: None <tech-pkg@NetBSD.org>
From: Vern Kyle <vkyle@lemoncurry.com>
List: tech-pkg
Date: 10/21/2003 17:17:05
All:

Been banging my head against the wall for a couple of days on this one.  If
it is as simple as read this, please let me know what I should be searching
on, since I don't see anyway to solve the issue.

Using pkgsrc (current) on RedHat8 box, attempting glib2 compile
=> Checksum OK for glib-2.2.3.tar.bz2.
===> Extracting for glib2-2.2.3nb1
===> Required installed package perl>=5.0: perl-5.8.1 found
===> Required installed package libtool-base>=1.4.20010614nb11: libtool-base-1.4.20010614nb16 found
===> Required installed package x11-links>=0.17: x11-links-0.18 found
===> Required installed package pkgconfig>=0.15.0: pkgconfig-0.15.0 found
===> Patching for glib2-2.2.3nb1
===> Applying pkgsrc patches for glib2-2.2.3nb1
===> Overriding tools for glib2-2.2.3nb1
===> Buildlinking for glib2-2.2.3nb1
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/glib2
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/devel/glib2

Don't even get an error message for what is going wrong.

Occassionally on the compile, I do get this output instead:

Making all in gthread
make[2]: Entering directory `/opt/pkgsrc/devel/glib2/work/glib-2.2.3/gthread'
/bin/sh ../libtool --mode=link gcc  -O2 -I/opt/bpkg/include -I/usr/X11R6/include -Wall -Wl,-R/usr/lib  -L/opt/bpkg/lib -Wl,-R/opt/bpkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o libgthread-2.0.la -rpath /opt/bpkg/lib -version-info 200:3:200 -export-dynamic   gthread-impl.lo -lpthread ../glib/libglib-2.0.la 
libtool: link: `/opt/pkgsrc/devel/glib2/work/.buildlink/lib/libpthread.la' is not a valid libtool archive
make[2]: *** [libgthread-2.0.la] Error 1
make[2]: Leaving directory `/opt/pkgsrc/devel/glib2/work/glib-2.2.3/gthread'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/pkgsrc/devel/glib2/work/glib-2.2.3'
make: *** [all-recursive-am] Error 2
*** Error code 2

Which I do find information on, however, not with this package, and what is
suggested is not fixing the problem.

Any suggestions?  Will summarize.

Thanks,

Vern