Re: win32/gcc : how to avoid need of -fnative-struct

2002-09-08 Thread Egon Andersen, Talura

Thierry CARRARD wrote:
> when compiling a win32 app using gcc and win32 gtk DLLs,
> 
> you can suppress the ?fnative-struct option (which isn?t available any 
> more on gcc3.x)
> 
> if you replace the contant of gtk/gtkbox.h by this (for version 2.0.6) :
> 

Or use -mms-bitfields

/Egon

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



PKG_CONFIG_PATH variable

2002-09-08 Thread millward

Could someone tell me how to set the 
PKG_CONFIG_PATH environment variable?
I've upgraded rpm -Uvh glib2-2.0.4-1gtk.i386.rpm,
but when I do a:
 pkg-config glib-2.0 --modversion 
I get an error message:
 Package glib-2.0 was not found in the pkg-config 
search path. Perhaps you should add the directory 
containing 'glib-2.0.pc' to the PKG_CONFIG_PATH
environment variable. No package 'glib-2.0' found.

I have checked .bashrc and .bash_profile for both
my root and user account and neither has the
PKG_CONFIG_PATH listed.
glib-2.0.pc is in /usr/lib/pkgconfig
 This is what glib-2.0.pc looks like:

prefix=/usr
exec_prefix=/usr
libdir=/usr/lib
includedir=/usr/include

Name: GLib
Description: C Utility Library
Version: 1.2.10
Libs: -L${libdir} -lglib
Cflags: -I${includedir}/glib-1.2 -I${libdir}/glib/include

Nothing in it about version 2.0.4 or 2.0 at all.
So far, upgrading GTK has been very frustrating.
Any suggestions would be most welcome.


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GTK Kill

2002-09-08 Thread Ayose

On Thu, Sep 05, 2002 at 02:17:42PM +0200, Stöhr Kirsten wrote:
> Which sub-routine is called when a gtk program is killed by a Window
> Manager (like WindowMaker)?
> 

I think the SIGPIPE signal is sent to the program.


-- 
Ayose Cazorla León
Debian GNU/Linux - setepo
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Oddity compiling gtk-1.2.10

2002-09-08 Thread Steven Lembark


Running:

#!/bin/bash -x

make distclean;

export CC=/opt/bin/gcc;
export CFLAGS="-O3 -march=i686 -fexpensive-optimizations 
$(/opt/glib/bin/glib-config --libs)";

./configure \
--prefix=/opt/gtk/1.2.10\
--with-glib=$(/opt/glib/bin/glib-config --prefix)   \
--disable-nls   \
--with-x\
&&
make all check;

Fails with:

configure: error: GLIB directory (/opt/glib) not present or not configured

(see attached: configure-out, config.log).

Checking:

$ ls -l /opt/glib
total 4
drwxrwsr-x8 lembark  bin  4096 Sep  8 21:40 1.2.10
lrwxrwxrwx1 lembark  bin10 Sep  8 21:40 bin -> 1.2.10/bin
lrwxrwxrwx1 lembark  bin14 Sep  8 21:40 include -> 
1.2.10/include
lrwxrwxrwx1 lembark  bin11 Sep  8 21:40 info -> 1.2.10/info
lrwxrwxrwx1 lembark  bin10 Sep  8 21:40 lib -> 1.2.10/lib
lrwxrwxrwx1 lembark  bin10 Sep  8 21:40 man -> 1.2.10/man
lrwxrwxrwx1 lembark  bin12 Sep  8 21:40 share -> 
1.2.10/share

$ ls /opt/glib/lib/
glib   libglib.lalibgmodule.a 
libgthread-1.2.so.0.0.10  pkgconfig
libglib-1.2.so.0   libglib.solibgmodule.la 
libgthread.a
libglib-1.2.so.0.0.10  libgmodule-1.2.so.0   libgmodule.so 
libgthread.la
libglib.a  libgmodule-1.2.so.0.0.10  libgthread-1.2.so.0 
libgthread.so


"make check install" exits zero for ./glib-1.2.10, so
glib thinks it was installed correctly.


Checking config.log it ends with:

configure:4177: /opt/bin/gcc -c -O3 -march=i686 -fexpensive-optimizations 
-Wall  conftest.c 1>&5
configure: In function `main':
configure:4173: warning: unused variable `dir'

and has no "error:" entries.


I have tried adding "--with-glib-prefix" to the configs, didn't
make a difference. USing "-with-glib=/opt/glib/1.2.10" did not
help either, and running /opt/glib/bin/glib-config didn't improve
things either.

Checking glib-config output:

$ /opt/glib/bin/glib-config --prefix
/opt/glib/1.2.10

$ /opt/glib/bin/glib-config --prefix glib
/opt/glib/1.2.10

$ /opt/glib/bin/glib-config --exec-prefix glib
/opt/glib/1.2.10

It certianly looks like it's out there.

I don't remember having to hack the install when I did it last time,
but could have forgotten something...

Environment is heavily updated RH-6.2 w/ gcc-3.2.

The FAQ doesn't have anything specific to this, only thing I can
see is the entry that "./confgure" is all that I usually need.



--
Steven Lembark   2930 W. Palmer
Workhorse Computing   Chicago, IL 60647
+1 800 762 1582


configure-out
Description: Binary data


config.log
Description: Binary data