Subject: gmodule library problem
To: None <tech-pkg@netbsd.org>
From: Ruibiao Qiu <ruibiao@arl.wustl.edu>
List: tech-pkg
Date: 12/05/2001 14:21:32
Hi, all

I am having problem building gnome-libs.  I get an error of:
...
checking for gmodule support... no
configure: error: Dynamic linking is not available on this platform. Some apps,
like panel, will not run properly.
...

work/gnome-libs-1.4.1.2/config.log shows this:
...
configure:5414: checking for gmodule support
configure:5435: gcc -o conftest -I/usr/pkgsrc/x11/gnome-libs/work/.buildlink/include -O2 -I/usr/pkg/share/x11-links/include -Wall -Wunused  -I/usr/pkgsrc/x11/gnome-libs/work/.buildlink/include  -I/usr/pkg/share/x11-links/include -I/usr/pkgsrc/x11/gnome-li
bs/work/.buildlink/include/gtk-1.2 -I/usr/pkgsrc/x11/gnome-libs/work/.buildlink/include/glib/glib-1.2 -I/usr/pkgsrc/x11/gnome-libs/work/.buildlink/lib/glib/include -I/usr/pkg/share/x11-links/include -L/usr/pkgsrc/x11/gnome-libs/work/.buildlink/lib  -L/usr
/pkg/share/x11-links/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -lgmodule -lglib conftest.c -lm -L/usr/pkgsrc/x11/gnome-libs/work/.buildlink/lib -Wl,-R/usr/pkg/lib -lintl 1>&5
/tmp/ccjftARz.o: In function `main':
/tmp/ccjftARz.o(.text+0x4): undefined reference to `g_module_supported'
collect2: ld returned 1 exit status
configure: failed program was:
#line 5425 "configure"
#include "confdefs.h"

#include <gmodule.h>

int main()
{
  return g_module_supported() == 0;
}
...

gmodule.h is under work/.buildlink/include/glib/glib-1.2, and libgmodule.* are
under work/.buildlink/lib.

What should I do to resolve this problem?  Thanks.

            Ruibiao

/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
   Ruibiao Qiu                      ruibiao@arl.wustl.edu
   Research Assistant               ruibiao@cs.wustl.edu
   Applied Research Laboratory      rq1@cec.wustl.edu
   Department of Computer Science   ruibiao@acm.org
   Washington University            http://www.arl.wustl.edu/~ruibiao
   Campus Box 1045                  http://www.cs.wustl.edu/~ruibiao
   One Brookings Drive              Tel. (314)935-4163
   St. Louis, MO 63130-4899 USA     Fax  (314)935-7302
\____________________________________________________________________/