Date: Wed, 26 Mar 2003 02:39:13 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 116 ************************************************** Tuesday 25 March 2003 Number 116 ************************************************** Subjects for today 1 Re: GDBM : John Poltorak 2 Re: M4 : John Poltorak 3 Re: M4 : sma at sohnen-moe.com 4 Re: Building Apache : sma at sohnen-moe.com 5 Re: Building Apache : John Poltorak 6 Re: Building Apache : John Poltorak 7 Re: Building Apache : John Poltorak 8 Re: Building Apache : Stefan.Neis at t-online.de 9 Re: Building Apache : Stefan.Neis at t-online.de 10 Re: Mozilla : Henry Sobotka 11 Re: Building Apache : John Poltorak 12 Re: Building Apache : Lyn St George" 13 Re: GDBM : Lyn St George" 14 Re: M4 : John Poltorak 15 Mozilla : John Poltorak **= Email 1 ==========================** Date: Wed, 26 Mar 2003 09:15:12 +0000 From: John Poltorak Subject: Re: GDBM On Tue, Mar 25, 2003 at 03:41:10PM -0700, sma at sohnen-moe.com wrote: > > > >ust a question, what exactly *is* GDBM? Gnu Data Base Manager? > > > Yes, exactly. > It is B+-tree type of data manager, it provides indexed access to data > stored in a file. It is nothing like a relational database. > The original dbm was, hmm, a toy. It did not work very well, or scale > at all. gdbm is a robust implementation of dbm. There are at least two > others: BSD and (I think) Sleepycat. AIUI Sleepycat is the name of the company which now maintains BSD DB, and we could do with getting the latest version built on OS/2. It's available here:- http://www.sleepycat.com/update/snapshot/db-4.1.25.NC.tar.gz If you run:- build db it should get you started but then it needs some porting guru to do his bit of magic to make it work... -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 2 ==========================** Date: Wed, 26 Mar 2003 09:58:02 +0000 From: John Poltorak Subject: Re: M4 On Tue, Mar 25, 2003 at 03:47:20PM -0700, sma at sohnen-moe.com wrote: > > > >Can anyone build M4? > > > Your question implies that you cannot. Well it builds but I get errors which I would like to eliminate. > A copy of the error(s) from the > log file might help.... making install in doc make[1]: Entering directory `U:/unixos2/workdir/m4-1.4/doc' cd . && makeinfo m4.texinfo m4.texinfo:282: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:352: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:358: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:363: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:369: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:633: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:655: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:741: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:1574: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:1625: warning: `.' or `,' must follow cross reference, not f. m4.texinfo:2889: warning: `.' or `,' must follow cross reference, not i. /bin/sh ./../mkinstalldirs /usr/local/info cd . && for file in m4.info*; do \ u:/unixos2/bin/install.exe -m 644 $file /usr/local/info/$file; \ done install-info --info-dir=/usr/local/info /usr/local/info/m4.info make[1]: Leaving directory `U:/unixos2/workdir/m4-1.4/doc' making install in lib make[1]: Entering directory `U:/unixos2/workdir/m4-1.4/lib' gcc -c -DHAVE_CONFIG_H -I.. -I. -Zomf -O2 -s -Zmt -D__ST_MT_ERRNO__ getopt.c getopt.c: In function `getopt': getopt.c:669: argument `argv' doesn't match prototype getopt.h:104: prototype declaration make[1]: *** [getopt.obj] Error 1 make[1]: Leaving directory `U:/unixos2/workdir/m4-1.4/lib' make: *** [install] Error 1 In spite of this, m4.exe does get built and runs. Whether it works correctly I'm not sure. AIUI the default build should not use the included regex. I don't know why it ignores the regex library which exists in /usr/lib... -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 3 ==========================** Date: Wed, 26 Mar 2003 10:34:31 -0700 From: sma at sohnen-moe.com Subject: Re: M4 > >making install in doc >make[1]: Entering directory `U:/unixos2/workdir/m4-1.4/doc' cd . && >makeinfo m4.texinfo >m4.texinfo:282: warning: `.' or `,' must follow cross reference, not f. >m4.texinfo:352: warning: `.' or `,' must follow cross reference, not f. > [...] >cd . && for file in m4.info*; do \ > u:/unixos2/bin/install.exe -m 644 $file /usr/local/info/$file; \ done >install-info --info-dir=/usr/local/info /usr/local/info/m4.info > The warnings are for building the documentaion. What version of makeinfo do you have? (Mine is v1.64.) I just tried it again myself. The main portion works for me as well but with a different set of errors: make[1]: Entering directory `/unixos2/workdir/m4-1.4/doc' cd . && makeinfo m4.texinfo Making info file `m4.info' from `m4.texinfo'. /bin/sh ./../mkinstalldirs /usr/local/info cd . && for file in m4.info*; do \ h:/usr/bin/install.exe -m 644 $file /usr/local/info/$file; \ done install-info --info-dir=/usr/local/info /usr/local/info/m4.info make[1]: install-info: Command not found make[1]: Leaving directory `/unixos2/workdir/m4-1.4/doc' make: *** [install] Error 1 "makeinfo" had no problem. "install-info" is missing from my environment. Where can I get it? Since the executable was what I needed, I had ignored the rest. _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 4 ==========================** Date: Wed, 26 Mar 2003 10:53:41 -0700 From: sma at sohnen-moe.com Subject: Re: Building Apache > >I guess I don't have a 'true'. There isn't one in UX2BS so this must be > something you have supplied yourself... > Ah, yes, that's true (har, har). Here is my "true" program (the whole thing, complete): void main () { ; } _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 5 ==========================** Date: Wed, 26 Mar 2003 11:33:00 +0000 From: John Poltorak Subject: Re: Building Apache On Tue, Mar 25, 2003 at 03:55:22PM -0700, sma at sohnen-moe.com wrote: > >> > >>Can I just leave it as is, accepting all the defaults and expect to build > >>something useable? > >> > Yes. After I got my UX2 system correctly updated (sheesh!), httpd > v1.3.27 built without a problem with everything at its default. Hmmm... It doesn't work here. This is my build_apache.cmd:- cd src sh -c Configure make And this is apache.log:- Wed Mar 26 11:12:47 GMT 2003 DIR URL CFLAGS LDFLAGS CFGPARMS MAKEPARM SRC http://apache.org/dist/httpd/apache_1.3.27.tar.gz . URL http://apache.org/dist/httpd/apache_1.3.27.tar.gz CFLAGS LDFLAGS CFGPARMS MAKEPARM SRC . apache_1.3.27.tar.gz already retrieved u:/unixos2/workdir u:/unixos2/workdir/apache_1.3.27 using apache specific Build script [U:\unixos2\workdir\apache_1.3.27]cd src [U:\unixos2\workdir\apache_1.3.27\src]sh -c Configure Using config file: Configuration Creating Makefile + configured for EMX OS/2 platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules + using builtin Expat + checking sizeof various data types + doing sanity check on compiler and options Creating Makefile in support Creating Makefile in regex Creating Makefile in os/os2 Creating Makefile in ap Creating Makefile in main Creating Makefile in lib/expat-lite Creating Makefile in modules/standard [U:\unixos2\workdir\apache_1.3.27\src]make ===> regex sh ./mkh -p regcomp.c >regcomp.ih gcc -I. -I../os/os2 -I../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DPOSIX_MISTAKE -c -o regcomp.o regcomp.c sh ./mkh -p engine.c >engine.ih gcc -I. -I../os/os2 -I../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DPOSIX_MISTAKE -c -o regexec.o regexec.c gcc -I. -I../os/os2 -I../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DPOSIX_MISTAKE -c -o regerror.o regerror.c gcc -I. -I../os/os2 -I../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED -DPOSIX_MISTAKE -c -o regfree.o regfree.c rm -f libregex.a ar cr libregex.a regcomp.o regexec.o regerror.o regfree.o true libregex.a sh: true: No such file or directory make[1]: *** [libregex.a] Error 1 make: *** [subdirs] Error 1 I guess I don't have a 'true'. There isn't one in UX2BS so this must be something you have supplied yourself... I'll dig one out and try again. It seems that true.exe is part of newer versions of the GNU SHELL Utils, so I guess we should try and get that package updated. -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 6 ==========================** Date: Wed, 26 Mar 2003 11:45:12 +0000 From: John Poltorak Subject: Re: Building Apache On Wed, Mar 26, 2003 at 11:33:00AM +0000, John Poltorak wrote: > On Tue, Mar 25, 2003 at 03:55:22PM -0700, sma at sohnen-moe.com wrote: > > >> > > >>Can I just leave it as is, accepting all the defaults and expect to build > > >>something useable? > > >> > > Yes. After I got my UX2 system correctly updated (sheesh!), httpd > > v1.3.27 built without a problem with everything at its default. > > Hmmm... It doesn't work here. This is my build_apache.cmd:- > > cd src > sh -c Configure > make > > > > And this is apache.log:- > > true libregex.a > sh: true: No such file or directory > make[1]: *** [libregex.a] Error 1 > make: *** [subdirs] Error 1 > > > > I guess I don't have a 'true'. There isn't one in UX2BS so this must be > something you have supplied yourself... > > I'll dig one out and try again. Adding true.exe (and false.exe...) from another port of the SHELL utils sorted this out but then I got a number of errors such as:- gcc -c -I../../os/os2 -I../../include -DOS2 -DTCPIPV4 -g -Zmt -DUSE_HSREGEX -DUSE_EXPAT -I../../lib/expat-lite -DNO_DL_NEEDED os-inline.c In file included from ..\..\include\ap_config.h:114, from os-inline.c:24: ..\..\include\os.h:43: warning: `S_ISLNK' redefined u:\posix2\include\sys/stat.h:158: warning: this is the location of the previous definition ..\..\include\os.h:47: warning: `HAVE_ISINF' redefined ..\..\include\ap_config_auto.h:61: warning: this is the location of the previous definition ..\..\include\os.h:48: warning: `HAVE_ISNAN' redefined ..\..\include\ap_config_auto.h:66: warning: this is the location of the previous definition These are due to including Posix/2, so I added apache to p2_exc.lst, and now it works. Yipee! -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 7 ==========================** Date: Wed, 26 Mar 2003 12:18:18 +0000 From: John Poltorak Subject: Re: Building Apache On Wed, Mar 26, 2003 at 01:10:27PM +0100, Stefan.Neis at t-online.de wrote: > Well, that's Apache's OS/2 specific code working around stuff that's missing > in EMX, but available in Posix/2, so when you use Posix/2, you now get > _warnings_ that this stuff is multiply defined (at least in what you quoted, > there is no error, but there might easily be e.g. some linker errors due to > multiple definition of symbols that are missing in EMX). I just quoted part of the logs for brevity. If it's simply a warning as you say, then it doesn't seem to worth doing anything about, 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 > Regards, > Stefan -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 8 ==========================** Date: Wed, 26 Mar 2003 13:10:27 +0100 From: Stefan.Neis at t-online.de Subject: Re: Building Apache Hi, > In file included from ..\..\include\ap_config.h:114, > from os-inline.c:24: > ...\..\include\os.h:43: warning: `S_ISLNK' redefined > u:\posix2\include\sys/stat.h:158: warning: this is the location of the > previous definition > ...\..\include\os.h:47: warning: `HAVE_ISINF' redefined > ...\..\include\ap_config_auto.h:61: warning: this is the location of the > previous definition > ...\..\include\os.h:48: warning: `HAVE_ISNAN' redefined > ...\..\include\ap_config_auto.h:66: warning: this is the location of the > previous definition Well, that's Apache's OS/2 specific code working around stuff that's missing in EMX, but available in Posix/2, so when you use Posix/2, you now get _warnings_ that this stuff is multiply defined (at least in what you quoted, there is no error, but there might easily be e.g. some linker errors due to multiple definition of symbols that are missing in EMX). > These are due to including Posix/2, so I added apache to p2_exc.lst, and > now it works. Yipee! Maybe a specific define in p2-gcc could help to determine whether or not we are using Posix/2, so we could start fixing/removing such code that works around "errors"/missing features in EMX by replacing #ifdef __EMX__ with #if defined(__EMX__) && !defined(__P2__) Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 9 ==========================** Date: Wed, 26 Mar 2003 13:56:41 +0100 From: Stefan.Neis at t-online.de Subject: Re: Building Apache 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... 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 ... Regards, Stefan _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 10 ==========================** Date: Wed, 26 Mar 2003 15:56:26 -0500 From: Henry Sobotka Subject: Re: Mozilla John Poltorak wrote: > > Does anyone know where I can find docs for building Mozilla using gcc? The build docs are in the process of being updated as IBM switches to gcc. The latest version can be found among the attachments to: http://bugzilla.mozilla.org/show_bug.cgi?id=177789 h~ _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 11 ==========================** Date: Wed, 26 Mar 2003 17:33:49 +0000 From: John Poltorak Subject: Re: Building Apache On Tue, Mar 25, 2003 at 10:33:57PM +0000, Lyn St George wrote: > >src\Configuration is a file of 454 lines!!! How do I know what I need to > >change? > > Basically it's only a matter of uncommenting lines for modules that you > want to build in, or adding any that are not listed. Eg if you want to build > with mod_ssl, then you need this (ssl *must* be the last one listed) > > AddModule modules/ssl/libssl.a > > of course you need to have done the first steps for ssl before this. It seems that ssl is required these days, so I would add it in. Are there any other modules you you would suggest should be added? > >Given that I want to create a Unix-like environment are there any specific > >settings that I need to make? Does Apache end up with a number of embedded > >paths determined from this file? > > > >Can I just leave it as is, accepting all the defaults and expect to build > >something useable? > > You can leave it alone and get a working Apache if you want. I always > edit src/include/httpd.h for httpd_root and set it to /usr/apache, but that's > just my personal preference. On Redhat it looks to be /usr/lib/apache. That seems OK to me. Where is installed on *BSD? > I wrote some notes on os2docs.org about > this but haven't updated it for ages .. I had a look and they seemed useful, but as you say, a little out of date... It would be nice to have something current. > - > Cheers > Lyn St George > +--------------------------------------------------------------------------------- > + http://www.zolotek.net .. eCommerce hosting, consulting > + http://www.os2docs.org .. some 'How To' stuff ... > +---------------------------------------------------------------------------------- -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 12 ==========================** Date: Wed, 26 Mar 2003 17:46:13 +0000 From: "Lyn St George" Subject: Re: Building Apache On Wed, 26 Mar 2003 17:33:49 +0000, John Poltorak wrote: > >On Redhat it looks to be /usr/lib/apache. > >That seems OK to me. Where is installed on *BSD? Be careful with RedHat - they use that Package Mangler thing to put things in the wrong place all the time. At least, compared to a tarball installation they are are 'wrong'. httpd.h shows '/usr/local/apache' as the default for all OSs not otherwise specified. > >> I wrote some notes on os2docs.org about >> this but haven't updated it for ages .. > >I had a look and they seemed useful, but as you say, a little out of >date... It would be nice to have something current. Would be even nicer if others would contribute some docs too:) Just something brief and specific, ie, 'howtos' not long articles. - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 13 ==========================** Date: Wed, 26 Mar 2003 17:51:18 +0000 From: "Lyn St George" Subject: Re: GDBM On Wed, 26 Mar 2003 09:15:12 +0000, John Poltorak wrote: > >It's available here:- > >http://www.sleepycat.com/update/snapshot/db-4.1.25.NC.tar.gz As mentioned some time ago, this 4.x version builds out of the box, but the docs state that the API has changed as compared to 3.x, and you would need to change any apps accordingly. As MySQL still insists on using 3.2.9a then it seems to me that this would be the optimal version to look at using for the current standard. However, last time I tried to build it I discovered that my build environment was screwed up (at least I think that was the problem) and it wouldn't build. I still haven't had time to look at fixing this and building BDB, but I will do as and when .... - Cheers Lyn St George +--------------------------------------------------------------------------------- + http://www.zolotek.net .. eCommerce hosting, consulting + http://www.os2docs.org .. some 'How To' stuff ... +---------------------------------------------------------------------------------- _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 14 ==========================** Date: Wed, 26 Mar 2003 18:01:23 +0000 From: John Poltorak Subject: Re: M4 On Wed, Mar 26, 2003 at 10:34:31AM -0700, sma at sohnen-moe.com wrote: > > > >making install in doc > >make[1]: Entering directory `U:/unixos2/workdir/m4-1.4/doc' cd . && > >makeinfo m4.texinfo > >m4.texinfo:282: warning: `.' or `,' must follow cross reference, not f. > >m4.texinfo:352: warning: `.' or `,' must follow cross reference, not f. > > [...] > >cd . && for file in m4.info*; do \ > > u:/unixos2/bin/install.exe -m 644 $file /usr/local/info/$file; \ done > >install-info --info-dir=/usr/local/info /usr/local/info/m4.info > > > The warnings are for building the documentaion. What version of > makeinfo do you have? (Mine is v1.64.) If you have successfully run update_base.cmd as part of the initial install of UX2BS you should have v4.5 - the latest one. > I just tried it again myself. The main portion works for me as well > but with a different set of errors: > > make[1]: Entering directory `/unixos2/workdir/m4-1.4/doc' > cd . && makeinfo m4.texinfo > Making info file `m4.info' from `m4.texinfo'. > /bin/sh ./../mkinstalldirs /usr/local/info > cd . && for file in m4.info*; do \ > h:/usr/bin/install.exe -m 644 $file /usr/local/info/$file; \ done > install-info --info-dir=/usr/local/info /usr/local/info/m4.info make[1]: > install-info: Command not found > make[1]: Leaving directory `/unixos2/workdir/m4-1.4/doc' > make: *** [install] Error 1 > > "makeinfo" had no problem. > "install-info" is missing from my environment. Where can I get it? It's part of texinfo... > Since the executable was what I needed, I had ignored the rest. Make install doesn't run so m4.exe doesn't get installed into the correct location -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs **= Email 15 ==========================** Date: Wed, 26 Mar 2003 19:46:41 +0000 From: John Poltorak Subject: Mozilla Does anyone know where I can find docs for building Mozilla using gcc? It would be nice to be able to run:- build mozilla -- John _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs