Re: Build problems...



Nils Barth <nils_barth post harvard edu> writes:

> I'm having difficulty building glib/gtk+ HEAD:
> 
> make in glib/ dies with:
> ----------------------------------------------------------------
> gcc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib
> -DG_ENABLE_DEBUG    -g -O2 -Wall -D_REENTRANT -c testglib.c
> testglib.c: In function `main':
> testglib.c:914: warning: format argument is not a pointer (arg 3)
> testglib.c:400: warning: unused variable `p'
> /bin/sh ./libtool --mode=link gcc  -g -O2 -Wall -D_REENTRANT  -o
> testglib  testglib.o libglib-1.3.la 
> gcc -g -O2 -Wall -D_REENTRANT -o .libs/testglib testglib.o
> .libs/libglib-1.3.so -Wl,--rpath -Wl,/opt//lib
> testglib.o: In function `main':
> /home/nbarth/src/glib/testglib.c:1188: undefined reference to
> `g_mkstemp'
> /home/nbarth/src/glib/testglib.c:1193: undefined reference to
> `g_mkstemp'
> /home/nbarth/src/glib/testglib.c:1217: undefined reference to
> `g_file_open_tmp'
> /home/nbarth/src/glib/testglib.c:1228: undefined reference to
> `g_file_open_tmp'
> /home/nbarth/src/glib/testglib.c:1239: undefined reference to
> `g_file_open_tmp'
> .libs/libglib-1.3.so: undefined reference to `g_file_test'
> .libs/libglib-1.3.so: undefined reference to `g_convert_error_quark'
> .libs/libglib-1.3.so: undefined reference to `g_qsort_with_data'

It sort of looks like you aren't linking to gfileutils.c and 
gconvert.c, so perhaps automake didn't get run and your
makefiles are old - did you run autogen.sh? 

> collect2: ld returned 1 exit status
> make[2]: *** [testglib] Error 1
> make[2]: Leaving directory `/home/nbarth/src/glib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/nbarth/src/glib'
> make: *** [all-recursive-am] Error 2
> ----------------------------------------------------------------
> 
> (also, glib/configure had a (non-fatal?) problem:
> ...
> creating docs/reference/Makefile
> sed: can't read ./docs/reference/Makefile.in: No such file or
> directory
> creating docs/reference/glib/Makefile
> sed: can't read ./docs/reference/glib/Makefile.in: No such file or
> directory
> creating docs/reference/gobject/Makefile
> sed: can't read ./docs/reference/gobject/Makefile.in: No such file or
> directory
> creating tests/Makefile
> ...)

Again this could be a problem with ./autogen.sh not being run
or not working.

If that isn't the problem, something is screwed up about your
checkout. If you are getting stuff from anoncvs, you might want to try
explicitely updating explicitely from anoncvs{1,3,4}.gnome.org instead
of the round-robin anoncvs to find one that is up to date. (The most
recent entry in the GLib changelog is currently 2001-03-13 Tor
Lillqvist <tml iki fi>)
 
> Also, what's the build order now?
> glib, pango, gtk+? (do I need pkg-config?)

pkg-config, glib, pango, gtk+

Regards,
                                        Owen




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