Date: Tue, 18 Mar 2003 02:38:47 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [Ux2bs_Archive] No. 109 ************************************************** Monday 17 March 2003 Number 109 ************************************************** Subjects for today 1 Re: In search of crypt(), Building Apache2 : Hannes Hromadka **= Email 1 ==========================** Date: Tue, 18 Mar 2003 09:34:08 +0100 From: Hannes Hromadka Subject: Re: In search of crypt(), Building Apache2 On Mon, Mar 17, 2003 at 03:51:34PM +0000, John Poltorak wrote: > Could you provide a complete list of apps you needed to build in order to > have any chance of having success with Apache? I will try > I anticipate having something like:- > apache;crypt;zlib;gif;png;tif; etc.... I agree, I just listed what I did. Since I have only a 300Mhz PC each configure run last very long and I needed the grafic libs for another "compilation advanture game" Here is a list what I think is needed and a good way to get a working apache2. As a starting point follow instructions from http://silk.apana.org.au/apache/building.html. Once Apache 1.3.27 SSL compiles using the makefile from the source package http://silk.apana.org.au/pub/apache/apache_1.3.27-ssl-os2.zip you can start with apache2 required ======== crypt: I used gnuufc: ftp://ftp.leo.org/pub/comp/os/os2/leo/crypt/gnuufc.zip zlib: I used that one from ux2 build zlib, then I renamed libz.* to z.* recomended ========== dlfcn: There are more than one: I used the one from Klaus Gebhardt You can get it at: http://www.os2site.com/sw/xfree86/gimp/libs/dlfcn.zip gdbm: I used http://silk.apana.org.au/pub/apache/gdbm-1.7.3-os2.zip It compiles fine on ux2 and htdbm to manage userids and password apache has in the support directory works openssl: 0.9.7a builds fine on ux2 optional: expat: I compiled the source from http://prdownloads.sourceforge.net/expat/expat-1.95.6.tar.gz It seems to work. If no expat is installed Apache uses its own. As for shm: The package I had is just a dummy package, so I removed it from my system. not needed. start with: sh ./configure --enable-modules=most --enable-mods-shared=most --enable-ssl=shared --with-ssl=/usr --prefix=/apps/apache2 2>&1 | tee 0-conf.log Note: I used /apps/apache2 to make it easier to compare created files like config_vars.mk and rules.mk with that one in the binary package of apache2 Pitfalls: The problem with "test -x" not working (at least on my system) There is this in configure if test "$ac_cv_emxos2" = "yes"; then # Scripts don't pass test -x on OS/2 TEST_X="test -f" else TEST_X="test -x" fi But not all test -x are treated this way, so manual changes are necessary at least at the place where openssl is checked for existance. And finally it needs some changes in the generated build/config_vars.mk Compare yours with the one from the original Apache2 build for OS/2. Finally a make should create a hopefully working Apache. After make install correct httpd.conf to have the .dll files listed with corrected 8.3 names. My check if Apache is ok: I installed php4.3.0 as a module. set ETC to something outside the /usr/ tree. activate the mysql modules in php.ini If a phpinfo() does not show your php.ini and mysql module is not working then something with httpd.dll is wrong !!! Apache runs and seems to work ok, but there is something wrong with the CC and/or Linker flags. Ciao, Hannes -- Johannes Hromadka | Email Office: HromadkaJ at gmx.at | Home : Johannes.Hromadka at gmx.net Vienna/Austria/Europe | OECC: http://www.oecc.org/ >>> Rust never sleeps (borrowed from Neil YOUNG) <<< _______________________________________________ UX2BS mailing list UX2BS at os2ports.com http://os2ports.com/mailman/listinfo/ux2bs