Subject: Re: package www/gtkhtml3 fails
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 06/22/2005 22:24:59
Pritesh Shah wrote:
> > Pritesh Shah wrote:
> > > i was trying to build the package www/gtkhtml3, but it fails with
> > > the following error:
...
> /bin/sh ../libtool --mode=link cc
> -DICONDIR=\"/usr/pkg/share/gtkhtml-3.1/icons\"
> -DGDK_DISABLE_DEPRECATED=1 -DG_DISABLE_DEPRECATED=1
> -DGNOME_DISABLE_DEPRECATED=1 -O2 -I/usr/pkg/include -I/usr/include
> -I/usr/include/krb5 -I/usr/pkg/include/freetype2 -Wall
> -Wmissing-prototypes  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib
> -Wl,-R/usr/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -o testgtkhtml 
> testgtkhtml.o htmlurl.o libgtkhtml-3.1.la -Wl,-R/usr/pkg/lib
> -L/usr/pkg/lib -lsoup-2.2 -lgnutls -ltasn1 -lgcrypt -lgpg-error -lintl
> -lxml2 -lz -lm -lglib-2.0   -lintl

Calling libtool to build testgtkhtml.  It generate this enormous link
command

> cc -DICONDIR=\"/usr/pkg/share/gtkhtml-3.1/icons\"
...
> ./.libs/libgtkhtml-3.1.so
> /usr/tmp/pkgsrc/www/gtkhtml3/work.i386/.buildlink/lib/libgnomeui-2.so
[and many other fine temporary libraries]
> /usr/tmp/pkgsrc/www/gtkhtml3/work.i386/.buildlink/lib/libxml2.so -lz
> -lm /usr/tmp/pkgsrc/www/gtkhtml3/work.i386/.buildlink/lib/libglib-2.0.so
> -lintl -Wl,--rpath -Wl,/usr/pkg/lib -Wl,--rpath
> -Wl,/usr/tmp/pkgsrc/www/gtkhtml3/work.i386/.buildlink/lib
      ^^^^^^^^^^^^^^^ 
      This looks odd to me. I don't understand why testgtkhtml wants an
rpath to a temporary directory.  But it might be OK; I know nothing about
this particular package.  

> ./.libs/libgtkhtml-3.1.so: undefined reference to `_'
> gmake[2]: *** [testgtkhtml] Error 1

The message says: in trying to create testgtkhtml, I linked in
libgtkhtml-3.1.so, which refers to a symbol '_' that is not exported by
anything else in the link list.  

That's very suspicious: what sort of symbol is '_'?  I would guess
something went wrong making libgtkhtml-3.1.so.  

> This is what produced the error, i'm sort of stuck and do not
> understand what's going on ?

The first step is "cd /usr/pkgsrc/www/gtkhtml3; make clean; make".  Beyond
that I don't know what to tell you, except that I think libgtkhtml-3.1.so
has a problem.  If it fails a second time, maybe someone in tech-pkg will
be able to help.  

HTH.

--jkl