[Gltt-devel] Compiling gltt under RedHat 7.0
Brought to you by:
gerard
|
From: Christophe T. <ch....@co...> - 2000-11-01 23:32:14
|
Hello folks. I'd like to comment on the tweak to compile gltt under RH 7.0, since I ran into the problem myself. Gerard had to make the following change to compile under RH7.0: diff GLTTGlyphPolygonizer.C /usr/local/src/gltt-2.5/ 184c184,185 < typedef void CALLBACK (*glu_callback)(CALLBACKARG); --- > typedef void (*glu_callback)(); > // typedef void CALLBACK (*glu_callback)(CALLBACKARG); As you may know, RedHat has made a highly controversial move by shipping a new version of gcc (actually the snapshot of a work in progress) with the 7.0 distribution. It is labeled "2.96". This had the sad effect, among other things, to break a lot of C++ code around. However, given the large base of RedHat users, we may want that those who want can compile gltt effortlessly, while at the same time keeping people using another compiler happy. The problem would have surfaced at one time or another anyway, with the upcoming of the new gcc compiler. So, I would (humbly) suggest to alter the conditional around CALLBACKARG, as shown by the patch at the end of this message. Best regards, PS: I'm heading to Asia for two weeks, so I may not respond to my emails soon. -- Christophe Tronche ch....@co... marchFIRST (France) http://tronche.com/ ====================================================================== --- gltt-2.5/GLTTGlyphPolygonizer.C Sun Nov 21 02:04:43 1999 +++ gltt-2.5-new/GLTTGlyphPolygonizer.C Thu Nov 2 00:03:56 2000 @@ -107,7 +107,7 @@ #endif // IMHO, the (...) vs. (void) warning is due to GNU-C/C++. -#if defined(__GNUC__) || defined(_GNUG_) +#if (defined(__GNUC__) || defined(_GNUG_)) && !__GNUC_PREREQ(2,96) #define CALLBACKARG ... #else #define CALLBACKARG void |