Re: How to install gnome-guile and gnome-core



On Fri, Feb 13, 1998 at 01:20:39PM -0600, Miguel de Icaza <Miguel> wrote:
Miguel>    I have applied your fixes to gnome.m4 to the CVS repository now.

Thankyou =)O|

On Fri, Feb 13, 1998 at 04:57:04PM +0000, I <Gary> wrote:
Gary> 	  make X_CFLAGS="" LIBS=-ldl
Gary>
Gary> as already mentioned on the list. I was about to patch gnome-core's
Gary> Makefile.am and configure.in to fix these, but looking at the equivalent
Gary> files from gnome-libs and gnome-guile, it appears that X_CFLAGS
Gary> (at least) is being used inconsistently between packages. So I am
Gary> not entirely sure what the best way to proceed would be. My first
Gary> thoughts are to patch *all* Makefile.ams to use X_CFLAGS and add an
Gary> AC_SUBST(X_CFLAGS) somewhere in gnome.m4? Is this correct, and/or useful
Gary> (Hari -- are you listening)?

On Fri, Feb 13, 1998 at 04:25:58 -0600, Raja R Harinath <Hari> wrote:
Hari> X_CFLAGS should contain ' -I /path/to/X11/include'. At least for me, it
Hari> does. I'm not too sure how it works on Debian. AFAIK, only gtk-xmhtml
Hari> and freecell need X11 headers, anyway.

Shouldn't there be a X_CPPFLAGS for this?  and, presumably, a X_LDFLAGS to
hold the matching '-L /path/to/X11/lib'.  I have several test libraries
installed underneath my home directory and often need to type:

	make CPPFLAGS=$HOME/include LDFLAGS=$HOME/lib
	
...sometimes it works, sometimes not.  I'm not sure offhand whether automake
creates Makefile(.in)s which do the right thing here or whether the
maintainer needs to support it explicitly with their build.  I would like to
see it work this way under gnome regardless.

Hari> I will look into these as time permits, and if nobody else beats me to
Hari> it.

Likewise.  I may have time tonight.

Miguel> What is X_CFLAGS used for?  I have removed most of the references I
Miguel> have found to it in the gnome packages. 

It seems to be where autoconf puts *required* CFLAGS to be added to automake's
$COMPILE macro, so that if I type "make CFLAGS='-mpentium -O6'" I only
clobber the default '-g -O' switches (automake puts this in CFLAGS), but not
the '-fPIC' (which is in X_CFLAGS).

Gary> Also, I have managed to compile and install all of gnome-core by
Gary> applying my macro patch and using
Gary>
Gary>	  make X_CFLAGS="" LIBS=-ldl

Miguel> This is pretty strange.  What are the contents of your gnomeConf.sh
Miguel> file?  That file should include -ldl in the defnition for GNOME_LIBS,
Miguel> is that the case?

I did have:

  $ cat /usr/local/stow/gnome-lib-980213/lib/gnomeConf.sh
  #
  # Configuration of the gnome-libs package
  #

  GNOME_LIBS="-lgnome  "
  GNOMEUI_LIBS="-lgnomeui -lgtk -lgdk -lglib -lm  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lXext -lSM -lICE -lgnome "
  GTKXMHTML_LIBS="-lgtkxmhtml -lgtk -lgdk -lglib -lm -lXpm -ljpeg -lpng -lz  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lXext -lSM -lICE"


  GNOME_LIBDIR="-L/usr/local/stow/gnome-libs-980213/lib"
  GNOME_INCLUDEDIR="-I/usr/local/stow/gnome-libs-980213/include"


Just to be certain, from a clean directory, I have just reimported and
rebuilt gtk+ and gnome-libs, at which point I have:

  $ cat /usr/local/stow/gnome-libs-980216/lib/gnomeConf.sh
  #
  # Configuration of the gnome-libs package
  #

  GNOME_LIBDIR=-L/usr/local/lib
  GNOME_INCLUDEDIR=-I/usr/local/include
  GNOME_LIBS="-lgnome -ldl"
  GNOMEUI_LIBS="-lgnomeui -lgnome -ldl -lgtk -lgdk -lglib -lm  -L/usr/X11R6/lib  -lSM -lICE -lX11  -lXext"
  GTKXMHTML_LIBS="-lgtkxmhtml -lgtk -lgdk -lglib -lm -lXpm     -L/usr/X11R6/lib  -lSM -lICE -lX11  -lXext"

Whatever was wrong is now fixed for me at least.  However, the final link
for each app' includes several libraries twice...

LD_RUN_PATH="$LD_RUN_PATH" gcc -g -O2 -I/usr/X11R6/include -o \
.libs/gnome-hello-1-menus gnome-hello-1-menus.o -Wl,--rpath \
-Wl,/usr/local/lib ../libgnomeui/.libs/libgnomeui.so -ldl -lgtk -lgdk -lglib \
-lm -L/usr/X11R6/lib -lSM -lICE -lX11 -lXext -lm -Wl,--rpath \
-Wl,/usr/local/lib ../libgnome/.libs/libgnome.so -lglib -lm -ldl -lm \
-Wl,--rpath -Wl,/usr/local/lib ../gtk-xmhtml/.libs/libgtkxmhtml.so -lgtk \
-lgdk -lglib -lm -lXpm -L/usr/X11R6/lib -lSM -lICE -lX11 -lXext -lm \
../support/libsupport.a -lgtk -lgdk -lglib -lm -lXpm -L/usr/X11R6/lib -lSM \
-lICE -lX11 -lXext -ldl -lm 

gcc is kind enough to tolerate this, but I expect most prroprietry compilers
will choke on it.

Gary> Would someone please commit this and yesterdays small patches to CVS?

Miguel> i have not seen yesterday's patch.  Can you confirm if it is still
Miguel> missing from the CVS, and if so, could you resend it to me?

Thats okay, it was the gtk+ hack to expose gtk_signal_handlers_get (I think)
so that xmhtml would link -- but this has since been fixed correctly in
gtk-xmhtml.

Cheers,
	Gary.

-- 
{#include #.signature#}
WARNING:  Cannot find '.signature' template file

PGP signature



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