[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: libgimp/glib/gtk weirdness...



--On Sun, Oct 18, 1998 1:57 pm -0500 "Stephen Crowley" <crow@debian.org>
wrote: 

> On Sun, Oct 18, 1998 at 07:54:35PM +0100, Jules Bean wrote:
>> When trying to build my rather overdue debian package (libgimp-perl), I
get
>> this at the configure stage:
>> 
>> [stuff deleted]
>>
>> Is this a bug?  If so, in which package?  I've copied Che into this email
>> anyway, since he seems to be reponsible for a large chunk of the programs
>> concerned.
> 
> You need to link with -lgmodule

Ah.  Interesting.  I investigated that a bit.

It turns out that the package I am building uses /usr/bin/gimptool --libs to
find out its link-line.  This is reasonable (although, if someone can point
me in the direction of a concise explanation of my why /usr/bin has to be
polluted by gimptool, gtk-config, imlib-config etc., I'd be grateful).

/usr/bin/gimptool appears not to know about -lgmodule.  However, it is
written to fall back on gtk-config.  gtk-config *does* know about -lgmodule.
 Apparently, I have to set an environment variable to force this override
(GTK_CONFIG=/usr/bin/gtk-config).

So, I did this.  Now I get another link error.  This is a mess...

configure:815: cc -o conftest  -I/usr/X11R6/include -I/usr/lib/glib/include 
 co
nftest.c  -L/usr/lib -lgimpui -lgimp -L/usr/X11R6/lib -lgtk -lgdk -rdynamic
-lgm
odule -lglib -ldl -lXi -lXext -lX11 -lm 1>&5
/usr/lib/libgimp.so: undefined reference to `g_debug'
/usr/lib/libgimpui.so: undefined reference to `gtk_object_check_cast'
/usr/lib/libgimp.so: undefined reference to `g_message'
/usr/lib/libgimp.so: undefined reference to `g_warning'
/usr/lib/libgimp.so: undefined reference to `g_error'

Any help appreciated, (Shall I shift over to -mentors?)

Jules


/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@jellybean.co.uk         |  6 Evelyn Rd        |
|  Jules aka     | jules@debian.org              |  Richmond, Surrey   |
|  Julian Bean   | jmlb2@hermes.cam.ac.uk        |  TW9 2TF *UK*       |
+----------------+-------------------------------+---------------------+
|  Debian GNU/Linux - "Microsoft *does* have a year 2000 problem -     |
|                      and we're it!" (paraphrased from IRC)           |
\----------------------------------------------------------------------/



Reply to: