Subject: Re: pkgsrc problems
To: gabriel rosenkoetter <gr@eclipsed.net>
From: Mike Saunders <method@method.cx>
List: current-users
Date: 11/03/2001 15:18:24
 
I still haven't been able to make xmms build, but I have gotten a little
farther into what was going wrong in the first place.  I posted this
message to a bbs that I'm on, I'll repost it here.

NetBSD schizo 1.5Y NetBSD 1.5Y (schizo-i686) #0: Thu Nov  1 09:17:08 CST
2001
  method@schizo:/usr/src/sys/arch/i386/compile/schizo-i686 i386

 I've set a few environment options ahead of time, here they are: 
 
CPPFLAGS=-I/usr/pkg/pthreads/include -I/usr/pkg/include/glib/glib-1.2
LDFLAGS=-L/usr/pkg/pthreads/lib -L/usr/pkg/lib
 
        Here's the problem when I do a make install for xmms:
 
checking for pthread.h... yes
checking for glib-config... /usr/pkgsrc/audio/xmms/work/.buildlink/bin/glib-con
fig
checking for GLIB - version >= 1.2.2... yes
checking for gtk-config... /usr/pkgsrc/audio/xmms/work/.buildlink/bin/gtk-confi
gchecking for GTK - version >= 1.2.2... no
*** Could not run GTK test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK was incorrectly installed
*** or that you have moved GTK since it was installed. In the latter case, you
*** may want to edit the gtk-config script:
/usr/pkgsrc/audio/xmms/work/.buildlink/bin/gtk-config
configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***
 
now, pkg_info tells me this:
schizo# pkg_info gtk+
Information for gtk+-1.2.10:
 
Comment:
Gimp toolkit. Libraries for building X11 user interfaces
 
Requires:
glib>=1.2.8
pth>=1.3.2
 

        So, I obviously have gtk+ >= 1.2.2.  This was confirmed by users on the
netbsd-current mailing list.  now /usr/pkgsrc/audio/xmms/work/xmms-1.2.5/config
.log tells me the true nature of the error:
 
In file included from /usr/pkgsrc/audio/xmms/work/.buildlink/include/gtk-1.2/gt
k/gtkarg.h:31,
                 from /usr/pkgsrc/audio/xmms/work/.buildlink/include/gtk-1.2/gt
k/gtkobject.h:31,
                 from /usr/pkgsrc/audio/xmms/work/.buildlink/include/gtk-1.2/gt
k/gtkaccelgroup.h:35,
                 from /usr/pkgsrc/audio/xmms/work/.buildlink/include/gtk-1.2/gt
k/gtk.h:32,
                 from configure:2791:
/usr/pkgsrc/audio/xmms/work/.buildlink/include/gtk/gtktypeutils.h:31:
glib/glib.h: No such file or directory
configure: failed program was:
#line 2789 "configure"
 
        I can't quite figure out what the problem is here.  It would seem that
buildlink.mk is broken for xmms, but I could be wrong.  glib.h definitely
exists:
schizo# locate glib.h
/usr/include/glib.h
/usr/pkg/include/glib/glib-1.2/glib.h
 
        For some reason though it's not editing the include path for glib in
the gtk things.  

	After posting this message to the bbs I copied the .h files from
glib-1.2/ to /usr/pkg/include/glib/ and I was able to get farther into the
build, but it still fails with this:
 
controlsocket.c:49: `SEMAPHORE_CLEAR' undeclared here (not in a function)
controlsocket.c:49: initializer element is not constant
controlsocket.c:49: (near initialization for `start_cond.c_lock')
controlsocket.c: In function `ctrlsocket_func':
controlsocket.c:392: warning: control reaches end of non-void function
gmake[4]: *** [controlsocket.o] Error 1

So, there's definitely something else not working right here. I'm not sure
what it is as I'm not much of a programmer.  Can anybody else verify this,
or is something broken on my box. 

	Also, is there another mailing list where this may be more
appropriate to discuss?

Sincerely,
-Mike Saunders