Date: Thu, 27 Mar 2003 02:39:17 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 117 ************************************************** Wednesday 26 March 2003 Number 117 ************************************************** Subjects for today 1 Re: Building Apache : John Poltorak 2 Re: Building Apache : John Poltorak 3 Re: Building Apache : Stefan.Neis at t-online.de 4 Re: Building Apache : Stefan.Neis at t-online.de 5 Re: Autoconf error...? : Sohnen-Moe Associates, Inc" 6 Autoconf error...? : John Poltorak **= Email 1 ==========================** Date: Thu, 27 Mar 2003 11:00:07 +0000 From: John Poltorak Subject: Re: Building Apache On Wed, Mar 26, 2003 at 01:56:41PM +0100, Stefan.Neis at t-online.de wrote: > Hi, > > > but this > > looks like a definite error:- > > > > In file included from ap_snprintf.c:75: > > u:\posix2\include\math.h:269: parse error before `!' > > make[1]: *** [ap_snprintf.o] Error 1 > > make: *** [subdirs] Error 1 > > Hm, line 269 seems to be > extern int isinf(double); > so my best guess is that Apache assumes that isinf is missing > and adds some define along the lines of > #define isinf(a) !whatever_they_are_using(a) > which then causes problems... Is this what you mean:- ? /* OS/2 doesn't have symlinks so S_ISLNK is always false */ #define S_ISLNK(m) 0 #define lstat(x, y) stat(x, y) #define isinf(n) (!isfinite(n)) #define HAVE_ISINF #define HAVE_ISNAN > By removing that EMX-specific define from Apache source code, > _that_ error should go away (possible other errors won't, though), > but then it would no longer compile with plain EMX ... The code above is in src\os\os2\os.h of Apache v1.3.27. If this is what is at fault, how should it be changed? > > Regards, > Stefan -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Thu, 27 Mar 2003 11:47:01 +0000 From: John Poltorak Subject: Re: Building Apache On Thu, Mar 27, 2003 at 12:29:13PM +0100, Stefan.Neis at t-online.de wrote: > John Poltorak schrieb: > > Is this what you mean:- ? > > > > /* OS/2 doesn't have symlinks so S_ISLNK is always false > > */ > > #define S_ISLNK(m) 0 > > #define lstat(x, y) stat(x, y) > > > > #define isinf(n) (!isfinite(n) > > Exactly. Just delete those 5 lines and it should > work (better) with Posix/2, Now it gets as far as:- gcc -c -I../os/os2 -I../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED http_log.c http_log.c: In function `error_log_child': http_log.c:187: `P_NOWAIT' undeclared (first use in this function) http_log.c:187: (Each undeclared identifier is reported only once http_log.c:187: for each function it appears in.) make[1]: *** [http_log.o] Error 1 make: *** [subdirs] Error 1 > but no longer with plain EMX... I guess I need a build script which appplies a patch depending on whether Posix/2 is in the build environment... > Regards, > Stefan -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Thu, 27 Mar 2003 12:29:13 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: Building Apache John Poltorak schrieb: > Is this what you mean:- ? > > /* OS/2 doesn't have symlinks so S_ISLNK is always false > */ > #define S_ISLNK(m) 0 > #define lstat(x, y) stat(x, y) > > #define isinf(n) (!isfinite(n) Exactly. Just delete those 5 lines and it should work (better) with Posix/2, but no longer with plain EMX... Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Thu, 27 Mar 2003 14:25:16 +0100 (CET) From: Stefan.Neis at t-online.de Subject: Re: Building Apache John Poltorak schrieb: > http_log.c: In function `error_log_child': > http_log.c:187: `P_NOWAIT' undeclared (first use in this > function) > http_log.c:187: (Each undeclared identifier is reported > only once > http_log.c:187: for each function it appears in.) Sounds likes some Posix/2 header file is missing some of stuff that is included in the EMX header file with the same name. I'll have a look at that during the weekend; thanks for finding & reporting... Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 5 ==========================** Date: Thu, 27 Mar 2003 20:08:23 -0700 (MST) From: "Sohnen-Moe Associates, Inc" Subject: Re: Autoconf error...? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 27 Mar 2003 21:22:56 +0000, John Poltorak wrote: >./configure[12809]: syntax error: `done' unexpected > >This was a configure script created by running Autoconf (v2.57) > I have seen this, too, while trying to build GnuPG v1.2.x. If I done the line with the spurious "done", I get another error later on which is clearly a bungled output from autoconf: incomplete code. I haven't had time to work on this yet. Maybe this weekend I'll try a different version of autoconf. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0 OS/2 for non-commercial use Comment: PGP 5.0 for OS/2 Charset: cp850 wj8DBQE+g7yn5z5shEq8TYMRApQzAJ9B/Zg1sITDa+37O00pTs4Esthf3ACg2Q1Q l4J8Z1g3k6hOxnQ7JPrnjOA= =cx+/ -----END PGP SIGNATURE----- _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 6 ==========================** Date: Thu, 27 Mar 2003 21:22:56 +0000 From: John Poltorak Subject: Autoconf error...? When attempting to build Python (v2.2.2), I got the following error whilst running configure:- checking for uname... yes checking for unsetenv... yes checking for waitpid... yes checking for _getpty... no checking for getpriority... yes ./configure[12809]: syntax error: `done' unexpected This was a configure script created by running Autoconf (v2.57) When I ran the configure script provided, I didn't have any problems, which leads me to believe there must be a bug in Autoconf... I have had similar errors with a number of different apps. -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs