Re: [gtk-list] Re: pbms on freebsd w/ threads
- From: Emmanuel DELOGET <pixel DotCom FR>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: pbms on freebsd w/ threads
- Date: Wed, 5 May 1999 17:07:46 +0200 (MET DST)
As the well known Jeremy Lea said...
->Hi,
->
->On Wed, May 05, 1999 at 04:13:01PM +0200, Sebastian Wilhelmi wrote:
->> I attach a patch, that should solve your problems. Please tell me the
->> necessary MACROS to test for (e.g. #ifdef FREEBSD... or even NETBSD?) to
->> enable that fix, beacuse we do not want to have it on platforms other than
->> those necessary. A general solution a la g_getc is IMHO not needed, as the
->> getc thing only poses problems to libraries for both MT and non-MT (currently
->> not so many, it seems) and as such should be taken care of by the libraries
->> themselfs.
->>
->> > This solution fits all the architecture, and eliminates the
->> > freebsd problem. I'll post some diff in a few days (need some
->> > tests).
->
->Could you please detail this problem, because I'm not seeing any
->problems. Are you linking the app correctly (with -pthread)? Glib's
->configure is broken for FreeBSD. I submitted patches but they seemed to
->be ignored. See patch-ad in the devel/glib12 port.
I link the program correctly (I saw the missing -pthread too).
The problem is : when you want to link a gtk app that does not
use thread, you end up with a linker error (__isthread : symbol
not found, or something like that). This is related to the use of
the getc() macro.
This causes really great disasters on some ./configure script
around the world (gimp, imlib, gtk-engine, and so on), since
the C program they use to test the gtk version is compiled
with 'gtk-config --libs --cflags'. So, the program compiles
well, but cannot be executed because of the ld.so error.
Finnaly, those configure scripts fail. Since it is a Bad Idea
to modify the [glib.m4] macros to handle this freebsd problem,
it's better to turn those getc() into fgetc(). I have actually
done this but (what I cannot understand) I have some very
gtk strange errors when using the examples/. Gimp works,
others don't...
I will try your glib12 port soon.
Yours,
->
-> -Jeremy
->
->--
-> | What will people think when they hear that I'm a Jesus freak?
->--+-- What will people do when they find that it's true?
-> | I don't really care if they label me a Jesus Freak,
-> | There ain't no disguising the truth. - d c Talk
->
->--
->To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
->
--
__________________________________________________________________________
Emmanuel DELOGET [pixel] pixel@{dotcom.fr,epita.fr} ---- DotCom SA
http://www.epita.fr/~pixel | http://www.dotcom.fr/~pixel
#(god@universe) cd os ; rm -rf ms-win*
#rm: No match.
--------------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]