Re: Compiling GTK+ on AIX 4.1.5



Hi John,

>   I'm trying to compile libgtk under AIX 4.1.5 and running into the following
> error during the compilation of the 'testgtk' program:
> 
>   /bin/sh ../libtool --mode=link gcc  -O2 -Wall  -o testgtk  testgtk.o libgtk.la
>     ../gdk/libgdk.la -lXext -lX11 -L/usr/gnu/lib -Wl,-E -lgmodule -lglib -lm
>   gcc -O2 -Wall -o testgtk testgtk.o .libs/libgtk.a -L/usr/gnu/lib -lgmodule
> -lglib
>     -lXext -lX11 -lm ../gdk/.libs/libgdk.a -lgmodule -lglib -lXext -lX11 -lm
> -lXext
>     -lX11 -L/usr/gnu/lib -Wl,-E -lgmodule -lglib -lm
>   /usr/gnu/lib/libglib.a(gutils.o)(.pr+0xa14):gutils.c: undefined reference to
> `getpwuid_r'
> 
> The gritty details are as follows:
>    * I'm running AIX 4.1.5 on an RS6000
>    * I am trying to compile gtk+ 1.2.6 (Already have a compiled copy of glib
> 1.2.6 installed).
>    * I'm using egcs 2.91.66
> 
> I would really appreciate any type of guidance that anyone can give me.

This is the getpwuid_r function as used in GLib. GLib seems to have found it.
try to reconfigure GLib (after deleting config.cache). If still config.h has
the line

#define HAVE_GETPWUID_R

in it, just delete it. But in fact it shouldn't be there in the first place,
so you might want to provide some insight, why GLib configure.in thinks, you
have getpwuid_r

Bye,
Sebastian
-- 
Sebastian Wilhelmi
mailto:wilhelmi ira uka de
http://goethe.ira.uka.de/~wilhelmi




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