Re: GTK+ 1.2.7: failing to compile gtkmain.c



"Frederic L. W. Meunier" <fredlwm@marseille.nitnet.com.br> writes:
> Hi. I compiled succesfully GLib/GTK+ 1.2.6 and didn't changed
> anything on the machine. I compiled GLib 1.2.7 using objdir
> (compiling from another directory), and tried the same for
> GTK+, configured with --with-xinput=xfree --disable-nls
> --disable-glibtest. The error:
> 
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H
> -I. -I../../gtk
> -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H
> -DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_LOCALEDIR=\"/usr/local/share/locale\" -I../.. -DGTK_NO_CHECK_CASTS
> -DUSE_XIM -I/usr/local/lib/glib/include -I/usr/local/include
> -D_REENTRANT -I/usr/X11R6/include    -g -O2 -Wall -c
> ../../gtk/gtkmain.c
> rm -f .libs/gtkmain.lo
> gcc -DHAVE_CONFIG_H -I. -I../../gtk
> -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H
> -DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_LOCALEDIR=\"/usr/local/share/locale\" -I../.. -DGTK_NO_CHECK_CASTS
> -DUSE_XIM -I/usr/local/lib/glib/include -I/usr/local/include
> -D_REENTRANT -I/usr/X11R6/include -g -O2 -Wall -c
> ../../gtk/gtkmain.c  -fPIC -DPIC -o .libs/gtkmain.lo
> gcc -DHAVE_CONFIG_H -I. -I../../gtk
> -I.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_DISABLE_COMPAT_H
> -DGTK_EXE_PREFIX=\"/usr/local\" -DGTK_DATA_PREFIX=\"/usr/local\" -DGTK_SYSCONFDIR=\"/usr/local/etc\" -DGTK_LOCALEDIR=\"/usr/local/share/locale\" -I../.. -DGTK_NO_CHECK_CASTS
> -DUSE_XIM -I/usr/local/lib/glib/include -I/usr/local/include
> -D_REENTRANT -I/usr/X11R6/include -g -O2 -Wall -c
> ../../gtk/gtkmain.c -o gtkmain.o >/dev/null 2>&1
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This looks like a compiler error.  It compiles the -fPIC version but
not the non-PIC version... wierd.  Maybe you temporarily ran out of
disk space, or there's some little bug in gcc that is tickled by the
code in gtkmain.c.

Try running

    make gtkmain.o

and look at the output.  This compiles the non-PIC version without
redirecting the output of the compiler to /dev/null.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



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