From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Thu, 11 Jul 2002 04:31:53 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 269 ************************************************** Wednesday 10 July 2002 Number 269 ************************************************** Subjects for today 1 Re: db.lib : John Poltorak 2 Re: emxomfar: Record too long : Henry Sobotka 3 Re: emxomfar: Record too long : Henry Sobotka 4 Re: yacc or byacc : Thomas E. Dickey" 5 Re: emxomfar: Record too long : Henry Sobotka 6 emxomfar: Record too long : John Poltorak 7 Perl 5.8.0 : John Poltorak 8 Re: emxomfar: Record too long : csaba.raduly at sophos.com 9 yacc or byacc : John Poltorak 10 Re: emxomfar: Record too long : John Poltorak 11 Re: yacc or byacc : John Poltorak 12 Re: emxomfar: Record too long : John Poltorak 13 PHP and filenames : John Poltorak **= Email 1 ==========================** Date: Thu, 11 Jul 2002 10:06:01 +0100 From: John Poltorak Subject: Re: db.lib On Wed, Jul 10, 2002 at 06:37:40PM +0000, Lyn St George wrote: > On Wed, 10 Jul 2002 14:25:07 +0100, John Poltorak wrote: > > > > >Thanks. I grabbed your configure, but got the same errors as above. > > > >Can you give me details of the gcc.a file you have? Mine is the one from > >EMX 0.9d. > > Currently from pgcc-2.95, gcc.a is 77140 bytes, dated 31.12.1999 I found a slightly different one, 73108 bytes, dated 10.03.99 which got past the previous errors but stopped with this: checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes configure[3213]: AC_GCC_CONFIG1: not found configure[3214]: AC_GCC_CONFIG2: not found configure[3221]: AC_PROG_LIBTOOL: not found checking SOSUFFIX from libtool... configure[3492]: syntax error: `if' unmatched I guess, I need to have libtool installed... > - > Cheers > Lyn St George > +--------------------------------------------------------------------------------- > + http://www.zolotek.net .. eCommerce hosting, consulting > + http://www.os2docs.org .. some 'How To' stuff ... > +---------------------------------------------------------------------------------- -- John **= Email 2 ==========================** Date: Thu, 11 Jul 2002 10:26:41 -0400 From: Henry Sobotka Subject: Re: emxomfar: Record too long John Poltorak wrote: > > Whilst trying to build FLEX I get this error:- > > bison -y -d ./parse.y > gcc -c -I. -I. -g -O2 parse.c > gcc -c -I. -I. -g -O2 scan.c > gcc -c -I. -I. -g -O2 skel.c > gcc -c -I. -I. -g -O2 sym.c > gcc -c -I. -I. -g -O2 tblcmp.c > gcc -c -I. -I. -g -O2 yylex.c > gcc -c -I. -I. -g -O2 libmain.c > gcc -c -I. -I. -g -O2 libyywrap.c > emxomfar cru libfl.a libmain.o libyywrap.o > emxomfar: libfl.a(libmain.o): Record too long > make: *** [libfl.a] Error 2 > > Anyone know what this means and what is causing it? > > It is probably related to *FLAGS or the parameter used for Make. > > How can I tell whether libfl.a has the correct format Add -Zomf to your flags or use ar. h~ **= Email 3 ==========================** Date: Thu, 11 Jul 2002 12:23:23 -0400 From: Henry Sobotka Subject: Re: emxomfar: Record too long John Poltorak wrote: > > When/where should I use AR? When you use -Zomf, you have to use emxomfar to create a static lib because the object files are OMF. Otherwise, they're in aout format, so you use ar. h~ **= Email 4 ==========================** Date: Thu, 11 Jul 2002 12:25:54 -0400 (EDT) From: "Thomas E. Dickey" Subject: Re: yacc or byacc On Thu, 11 Jul 2002, John Poltorak wrote: > > Should Berkeley YACC be called YACC or BYACC? I almost always use the latter, but appear to be in a minority. -- T.E.Dickey http://invisible-island.net ftp://invisible-island.net **= Email 5 ==========================** Date: Thu, 11 Jul 2002 12:29:05 -0400 From: Henry Sobotka Subject: Re: emxomfar: Record too long John Poltorak wrote: > > When/where should I use AR? Just realized I may not have quite answered your question. Make will invoke AR to create a static library. With -Zomf, set it to emxomfar; otherwise to ar. If I'm not mistaken, the flags they use are identical. h~ **= Email 6 ==========================** Date: Thu, 11 Jul 2002 14:57:46 +0100 From: John Poltorak Subject: emxomfar: Record too long Whilst trying to build FLEX I get this error:- bison -y -d ./parse.y gcc -c -I. -I. -g -O2 parse.c gcc -c -I. -I. -g -O2 scan.c gcc -c -I. -I. -g -O2 skel.c gcc -c -I. -I. -g -O2 sym.c gcc -c -I. -I. -g -O2 tblcmp.c gcc -c -I. -I. -g -O2 yylex.c gcc -c -I. -I. -g -O2 libmain.c gcc -c -I. -I. -g -O2 libyywrap.c emxomfar cru libfl.a libmain.o libyywrap.o emxomfar: libfl.a(libmain.o): Record too long make: *** [libfl.a] Error 2 Anyone know what this means and what is causing it? It is probably related to *FLAGS or the parameter used for Make. How can I tell whether libfl.a has the correct format -- John **= Email 7 ==========================** Date: Thu, 11 Jul 2002 15:03:00 +0100 From: John Poltorak Subject: Perl 5.8.0 Has anyone made any progress with Perl 5.8.0 and the related malloc problems? -- John **= Email 8 ==========================** Date: Thu, 11 Jul 2002 15:15:04 +0100 From: csaba.raduly at sophos.com Subject: Re: emxomfar: Record too long On 11/07/2002 14:57:46 owner-os2-unix wrote: >Whilst trying to build FLEX I get this error:- > >bison -y -d ./parse.y >gcc -c -I. -I. -g -O2 parse.c >gcc -c -I. -I. -g -O2 scan.c >gcc -c -I. -I. -g -O2 skel.c >gcc -c -I. -I. -g -O2 sym.c >gcc -c -I. -I. -g -O2 tblcmp.c >gcc -c -I. -I. -g -O2 yylex.c >gcc -c -I. -I. -g -O2 libmain.c >gcc -c -I. -I. -g -O2 libyywrap.c >emxomfar cru libfl.a libmain.o libyywrap.o >emxomfar: libfl.a(libmain.o): Record too long >make: *** [libfl.a] Error 2 > > There's something wrong. There seems to be no -Zomf in the compiler commands, yet emxomfar is used to create the library. OMF and a.out don't mix. Ordinary ar should be used for a.out objects. -- Csaba Ráduly, Software Engineer Sophos Anti-Virus email: csaba.raduly at sophos.com http://www.sophos.com US Support: +1 888 SOPHOS 9 UK Support: +44 1235 559933 **= Email 9 ==========================** Date: Thu, 11 Jul 2002 16:49:53 +0100 From: John Poltorak Subject: yacc or byacc Should Berkeley YACC be called YACC or BYACC? -- John **= Email 10 ==========================** Date: Thu, 11 Jul 2002 17:01:28 +0100 From: John Poltorak Subject: Re: emxomfar: Record too long On Thu, Jul 11, 2002 at 10:26:41AM -0400, Henry Sobotka wrote: > John Poltorak wrote: > > > > Whilst trying to build FLEX I get this error:- > > > > bison -y -d ./parse.y > > gcc -c -I. -I. -g -O2 parse.c > > gcc -c -I. -I. -g -O2 scan.c > > gcc -c -I. -I. -g -O2 skel.c > > gcc -c -I. -I. -g -O2 sym.c > > gcc -c -I. -I. -g -O2 tblcmp.c > > gcc -c -I. -I. -g -O2 yylex.c > > gcc -c -I. -I. -g -O2 libmain.c > > gcc -c -I. -I. -g -O2 libyywrap.c > > emxomfar cru libfl.a libmain.o libyywrap.o > > emxomfar: libfl.a(libmain.o): Record too long > > make: *** [libfl.a] Error 2 > > > > Anyone know what this means and what is causing it? > > > > It is probably related to *FLAGS or the parameter used for Make. > > > > How can I tell whether libfl.a has the correct format > > Add -Zomf to your flags or use ar. When/where should I use AR? > h~ -- John **= Email 11 ==========================** Date: Thu, 11 Jul 2002 17:43:52 +0100 From: John Poltorak Subject: Re: yacc or byacc On Thu, Jul 11, 2002 at 12:25:54PM -0400, Thomas E. Dickey wrote: > On Thu, 11 Jul 2002, John Poltorak wrote: > > > > > Should Berkeley YACC be called YACC or BYACC? > > I almost always use the latter, but appear to be in a minority. I have noticed some configure scripts which say:- checking for byacc... but never yacc, so IMV byacc is expected. Unless anyone objects, I'll rename yacc.exe as byacc.exe in the baseline build. > -- > T.E.Dickey > http://invisible-island.net > ftp://invisible-island.net -- John **= Email 12 ==========================** Date: Thu, 11 Jul 2002 19:36:29 +0100 From: John Poltorak Subject: Re: emxomfar: Record too long On Thu, Jul 11, 2002 at 12:29:05PM -0400, Henry Sobotka wrote: > John Poltorak wrote: > > > > When/where should I use AR? > > Just realized I may not have quite answered your question. Make will > invoke AR to create a static library. With -Zomf, set it to emxomfar; > otherwise to ar. If I'm not mistaken, the flags they use are identical. Thanks for the explanation, although I am still a little unclear about what is required. Perhaps I should explain what I'm trying to do... I'm building up a table of parameters required for building specific apps. These include CFLAGS, LDFLAGS and parameters for use with MAKE. The normal build process consists of exporting CFLAGS and LDFLAGS, then running AUTOCONF, then CONFIGURE and MAKE with any make parameters. I did find that FLEX would build without any *FLAGS, as long as I used the following command line with Make:- make CFLAGS="-O2" LDFLAGS="-s -Zmt -Zcrtdll -Zsysv-signals -Zbin-files -Zexe" ie CFLAGS and LDFLAGS are not set during configure and it uses the defaults. In this case I get a flex.exe which seems to be OK along with a zero length flex file. Unfortunately, I can get my build script to parse the above parameter from the table, and hoped there was some other way of specifying it. If I use make AR=ar, I get a flex file which FILE describes as:- flex: Linux/i386 demand-paged executable (ZMAGIC) I guess this can be converted to flex.exe with an extra step. > h~ -- John **= Email 13 ==========================** Date: Thu, 11 Jul 2002 20:15:00 +0100 From: John Poltorak Subject: PHP and filenames When I run use this PHP function:- I get the filename in an OS/2 format. This seems to cause a problem which disappears if I hardcode the filename using '/' when using PHORUM. Is there any way to configure PHP to use Unix format pathnames? -- John