Date: Thu, 20 Nov 2003 02:55:06 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 232 ************************************************** Wednesday 19 November 2003 Number 232 ************************************************** Subjects for today 1 Re: GOCR : Lyn St George" 2 Re: GOCR : John Poltorak 3 Re: GOCR : John Poltorak 4 Re: GOCR : John Poltorak **= Email 1 ==========================** Date: Thu, 20 Nov 2003 00:46:10 +0000 From: "Lyn St George" Subject: Re: GOCR On Wed, 19 Nov 2003 20:23:30 +0000, John Poltorak wrote: >On Wed, Nov 19, 2003 at 11:12:33AM -0800, Dave and Natalie wrote: >> On Wed, 19 Nov 2003 19:03:20 +0000, John Poltorak wrote: >> >> >I added ld.exe from gcc v3.0.3 but that breaks configure:- >> > >> >checking for gcc... gcc >> >checking for C compiler default output file name... configure: error: C >> >compiler cannot create executables >> >> Try passing -Zexe in your CFLAGS On my system I get that error if -Zomf is in the LDFLAGS. >I wouldn't like to try doing that since I may have to change 100 apps or >more... > >However I have found a different ld.exe which seems to do the trick, but >am unsure of its origin. > >6-05-99 9:43p 36278 0 ld.exe > >Anyone recognise this? > >It isn't one from EMX/GCC. This is from pgcc 2.95.2 >> Dave > > >-- >John > > > > >_______________________________________________ >UX2BS mailing list >UX2BS at os2ports.com >http://os2ports.com/mailman/listinfo/ux2bs > - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting +---------------------------------------------------------------------------------- _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Thu, 20 Nov 2003 09:49:02 +0000 From: John Poltorak Subject: Re: GOCR On Wed, Nov 19, 2003 at 02:23:59PM -0700, James Moe wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wed, 19 Nov 2003 19:03:20 +0000, John Poltorak wrote: > > > > >But there isn't anything which will resolve ${EXEEXT}. It is usually > >configure.in which sets up this variable. > > > /sbin/ux2_config.cmd sets these vars. > This may be another case sensitivity problem and autoconf is looking for $exeext, not > $EXEEXT. > > > > >I probably need to add AC_EXEEXT to configure.in. > > > That might work. > Also, adding to the idea Dave mentioned about CFLAGS, add "-Zexe" to LDFLAGS. I think this approach is wrong. There are plenty of apps which work fine straight out of the box using autoconf, configure and make. They do not require any special variables or *FLAGS being set and work fine with the standard ld from gcc v2.8.1. The design goal behind UX2BS is to get apps to build using a default build sequence which follows the Unix method are closely as possible. It shouldn't tackle every app as an exception to that default method. What we need to work out is how GOCR differs from those apps which follow the default sequence. For example an old app such as M4 can be built without too much trouble by the addition of AC_EXEEXT to configure.in so it must be possible to do the same thing with GOCR, but the actual mechanics of doing this escapes me for the time being... > - -- > jimoe at sohnen-moe dot com > pgp/gpg public key: http://www.keyserver.net/en/ -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Thu, 20 Nov 2003 11:04:07 +0000 From: John Poltorak Subject: Re: GOCR On Wed, Nov 19, 2003 at 04:17:36PM +0000, John Poltorak wrote: > You also need to copy src\libPgm2asc.a src\Pgm2asc.a, because the link > step does not recognise the library name. Is there any option available to > overcome this? It turns out that this name libPgm2asc.a is generated from Makefile.in:- PGMASCLIB = Pgm2asc LIBPGMASCLIB = lib$(PGMASCLIB).a So patching Makefile.in means I don't need to change anything in the build infrastrucure. I wonder if there is any equivalent to Autoconf's macro equivalent of EXEEXT but for LIB prefixes so that such a patch - adding $(LIBPFX) would make it cross-platform... -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Thu, 20 Nov 2003 19:00:54 +0000 From: John Poltorak Subject: Re: GOCR On Wed, Nov 19, 2003 at 11:12:33AM -0800, Dave and Natalie wrote: > On Wed, 19 Nov 2003 19:03:20 +0000, John Poltorak wrote: > > >I added ld.exe from gcc v3.0.3 but that breaks configure:- > > > >checking for gcc... gcc > >checking for C compiler default output file name... configure: error: C > >compiler cannot create executables > > Try passing -Zexe in your CFLAGS I've managed to fix things with a couple of small changes to configure.in and Makefile.in leaving everything else as it was, although I'm still fairly hesitant to change those files for fear of them doing something really weird. > Dave -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs