Date: Sat, 22 Apr 2006 00:05:38 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 682 ************************************************** Friday 21 April 2006 Number 682 ************************************************** Subjects for today 1 Re: GCC and EMX : Bill Nicholls 2 Re: GCC and EMX : Dale A Cook" 3 Building tidy - now that I have a working LIBTOOL : Steven Levine" 4 Re: Building tidy - now that I have a working LIBTOOL : Christian Hennecke" 5 Re: GCC and EMX : Christian Hennecke" **= Email 1 ==========================** Date: Thu, 20 Apr 2006 10:39:09 -0700 From: Bill Nicholls Subject: Re: GCC and EMX Are there any plans for building a GCC 4 set of compilers for OS/2 & eCS? Also, has anybody tested the Ada compiler on OS/2? Thanks, BillN **= Email 2 ==========================** Date: Thu, 20 Apr 2006 21:32:56 -0400 From: "Dale A Cook" Subject: Re: GCC and EMX ----- Original Message ----- From: "Bill Nicholls" To: Sent: Thursday, April 20, 2006 1:39 PM Subject: Re: GCC and EMX > Also, has anybody tested the Ada compiler on OS/2? ^^^^^^^^^^^^^ what's this anmal?????????????? **= Email 3 ==========================** Date: Thu, 20 Apr 2006 23:03:21 -0700 From: "Steven Levine" Subject: Building tidy - now that I have a working LIBTOOL This is a MIME encapsulated message. --===_44487B06_== Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi again, After some interesting detours, I can now build tidy almost out of the box. As the diffs show, the patches are minimal. After patching, the following is sufficient to generate a working build export LDFLAGS='-Zomf -Zmap' export LT_OS2_LDFLAGS='-Zomf -Zmap' ../configure -C --prefix='d:/usr' --disable-shared The plan is to submit a set of patches to the tidy maintainers so that tidy will build out of the box with gcc 3.3.x or better. I'm looking for some suggestions on the recommended way to detect a gcc 3.x at compile time. I used #if defined(__OS2__) && __GNUC__ >= 3 // 30 Mar 06 SHL which works, but seems at bit clunky to me. I'd like to eliminate the need for LDFLAGS too, so I need some logic in configure. LT_OS2_LDFLAGS is a feature of Knut's libtool port. I'll see if I can come up with some reasonable patches that will grab the configured values automatically. Thanks, Steven -- ---------------------------------------------------------------------- "Steven Levine" MR2/ICE 2.67 #10183 Warp/eCS/DIY/14.103a_W4 www.scoug.com irc.fyrelizard.com #scoug (Wed 7pm PST) ---------------------------------------------------------------------- --===_44487B06_== Content-Type: text/plain; name="tidy.diff" diff -ur tidy_20051026/console/tidy.c tidy/console/tidy.c --- tidy_20051026/console/tidy.c 2005-10-21 23:58:02.000000000 -0700 +++ tidy/console/tidy.c 2006-04-20 15:02:32.000000000 -0700 at at -886,6 +886,8 at at #ifdef PLATFORM_NAME printf( "HTML Tidy for %s released on %s\n", PLATFORM_NAME, tidyReleaseDate() ); +#define PORTER "Steven H. Levine" + printf( "Built by %s on %s %s\n", PORTER, __DATE__, __TIME__ ); #else printf( "HTML Tidy released on %s\n", tidyReleaseDate() ); #endif diff -ur tidy_20051026/include/platform.h tidy/include/platform.h --- tidy_20051026/include/platform.h 2005-06-15 23:58:04.000000000 -0700 +++ tidy/include/platform.h 2006-03-30 18:51:28.000000000 -0800 at at -498,6 +498,15 at at /* hack for gnu sys/types.h file which defines uint and ulong */ +#if defined(__OS2__) && __GNUC__ >= 3 // 30 Mar 06 SHL + +// GCC 3.x or better +#include +typedef unsigned long ulong; +#define _O_BINARY O_BINARY + +#else // 28 Mar 06 SHL + #if defined(BE_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS) #include #endif at at -508,6 +517,8 at at typedef unsigned long ulong; #endif +#endif // 28 Mar 06 SHL + #ifndef TIDY_EXPORT /* Define it away for most builds */ #define TIDY_EXPORT #endif --===_44487B06_==-- **= Email 4 ==========================** Date: Fri, 21 Apr 2006 13:10:24 +0200 (CEST) From: "Christian Hennecke" Subject: Re: Building tidy - now that I have a working LIBTOOL On Thu, 20 Apr 2006 23:03:21 -0700, Steven Levine wrote: >Hi again, > >After some interesting detours, I can now build tidy almost out of the >box. As the diffs show, the patches are minimal. After patching, the >following is sufficient to generate a working build Great! Does your build use the already existing OS/2-related stuff? >The plan is to submit a set of patches to the tidy maintainers so that >tidy will build out of the box with gcc 3.3.x or better. Good luck. It wasn't easy to get OS/2-related stuff in there in the past and nobody has reacted when I tried to submit binary builds for a long time. Christian Hennecke **= Email 5 ==========================** Date: Fri, 21 Apr 2006 13:16:31 +0200 (CEST) From: "Christian Hennecke" Subject: Re: GCC and EMX On Thu, 20 Apr 2006 21:32:56 -0400, Dale A Cook wrote: >> Also, has anybody tested the Ada compiler on OS/2? > ^^^^^^^^^^^^^ >what's this anmal?????????????? GNAT, the GNU Ada Translator, is able to compile Ada95-compliant code. Ada95 is a pretty good object-oriented language, and looks somewhat like Pascal or Modula. It still has a bad reputation because it originally was developed for the US military. Many developers choose Ada because it makes maintaining large projects easier. Christian Hennecke