Date: Tue, 13 Dec 2005 00:04:48 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 667 ************************************************** Monday 12 December 2005 Number 667 ************************************************** Subjects for today 1 Re: Posix/2 stdlib.h problem? : John Poltorak 2 OpenSSL v0.9.7 revisited : John Poltorak 3 Re: Typo3 : Christian Hennecke" 4 Re: OpenSSL v0.9.7 revisited : Dave Yeo" 5 Re: OpenSSL v0.9.7 revisited : Stefan.Neis at t-online.de 6 Re: Posix/2 stdlib.h problem? : Paul Smedley 7 Re: Posix/2 stdlib.h problem? : John Poltorak 8 Re: OpenSSL v0.9.7 revisited : John Poltorak **= Email 1 ==========================** Date: Sun, 11 Dec 2005 13:43:53 +0000 From: John Poltorak Subject: Re: Posix/2 stdlib.h problem? On Sun, Dec 11, 2005 at 11:44:11AM +0000, John Poltorak wrote: > On Sun, Dec 11, 2005 at 12:13:13PM +0100, Stefan.Neis at t-online.de wrote: > > Hi, > > > > > > srclib\apr\include\arch\os2\apr_arch_file_io.h has #undef HAVE_MKSTEMP > > > > which is why it's not used.... > > > > > > Does that suggestion that this line in apr_arch_file_io.h > > > > > > #undef HAVE_MKSTEMP > > > > > > is the cause of the problem? > > > > Yes. OTOH, simply removing it might break the compile for plain EMX since > > that probably hasn't got the mkstemp function. > > Are you suggesting that I have introduced a problem by using Posix/2 > instead of the standard EMX headers? Just as an update, I tried building Apache2 v2.2.0 with EMX/GCC without the Posix/2 headers and got a little further in the build - it actually produced aplibtool.exe before ending at this point: gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I./include -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include/arch/os2 -I./include/arch/unix -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include -o shmem/os2/shm.obj -c shmem/os2/shm.c -Zomf /ux2bs/workdir/httpd-2.2.0/srclib/apr/build/aplibtool --mode=compile gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I./include -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include/arch/os2 -I./include/arch/unix -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include -o support/unix/waitio.lo -c support/unix/waitio.c && touch support/unix/waitio.lo support/unix/waitio.c: In function `apr_wait_for_io_or_timeout': support/unix/waitio.c:80: structure has no member named `pollset' support/unix/waitio.c:82: structure has no member named `pollset' support/unix/waitio.c:86: structure has no member named `pollset' gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I./include -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include/arch/os2 -I./include/arch/unix -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include -o support/unix/waitio.obj -c support/unix/waitio.c -Zomf make[3]: *** [support/unix/waitio.lo] Error 1 make[3]: Leaving directory `G:/ux2bs/workdir/httpd-2.2.0/srclib/apr' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `G:/ux2bs/workdir/httpd-2.2.0/srclib/apr' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `G:/ux2bs/workdir/httpd-2.2.0/srclib' make: *** [all-recursive] Error 1 Any ideas, anyone? > > Regards, > > Stefan > > > > -- John **= Email 2 ==========================** Date: Sun, 11 Dec 2005 19:18:25 +0000 From: John Poltorak Subject: OpenSSL v0.9.7 revisited I've been looking back at which version of OpenSSL would build out of the box without any changes and found that v0.9.7 built OK but only with EMX/GCC. If I included the Posix/2 headers I got the following errors:- gcc -o tmp_dll\c_all.obj -Ioutinc -Itmp_dll -DL_ENDIAN -O3 -fomit-frame-pointer -m486 -Zmtd -Wall -Zomf -DOPENSSL_NO_KRB5 -D_DLL -Zdll -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\evp\c_all.c ..\crypto\evp\c_all.c: In function `OPENSSL_add_all_algorithms_noconf': ..\crypto\evp\c_all.c:77: warning: implicit declaration of function `ENGINE_setup_openbsd' .... tmp_dll\c_all.obj(c_all.obj) : error L2029: 'ENGINE_setup_openbsd' : unresolved external There was 1 error detected make: *** [out_dll\crypto.dll] Error 1 Does this error look familiar? And does it really matter if I use the Posix/2 headers and library or not? -- John **= Email 3 ==========================** Date: Sun, 11 Dec 2005 20:22:41 +0100 (CET) From: "Christian Hennecke" Subject: Re: Typo3 On Sat, 10 Dec 2005 14:03:00 +0000, John Poltorak wrote: >> > I've just tried contacting Roland, so hopefully he will get back to me. In >> > the meantime I've got a little further with the TYPO3 3.8.0 Install Tool, >> > but get an error when creating a new database. Is there any place I can >> > look to see what the nature of this error is? >> >> Create the new database with the MySQL console and >> select it afterwards in Typo3. >> >> Use the Warpstock Europe Presentation as guide. > >A plone site - I see - excellent! Is this on OS/2? Yes. >> http://warpstock.allegronet.de/Presentations/Presentations/INT03_Typo3_Installation.pdf > >I seem to have got it partly working now. > > >BTW the Warpstock presentations listed sounded impressive. I wish I could >get up to speed with all the programs mentioned. > >Are any of the presentations viewable? You mean if they are available as videos? To my knowledge, only Adrian Gschwend's session about future Netlabs plans has been recorded. Christian Hennecke **= Email 4 ==========================** Date: Sun, 11 Dec 2005 12:22:48 -0800 From: "Dave Yeo" Subject: Re: OpenSSL v0.9.7 revisited On Sun, 11 Dec 2005 19:18:25 +0000, John Poltorak wrote: >And does it really matter if I use the Posix/2 headers and library or not? Personally I would try to build everything first without the Posix/2 headers and library and then if the build fails try it with posix/2. Simpler is usually better Dave **= Email 5 ==========================** Date: Sun, 11 Dec 2005 21:26:17 +0100 From: Stefan.Neis at t-online.de Subject: Re: OpenSSL v0.9.7 revisited Hi, > ..\crypto\evp\c_all.c: In function `OPENSSL_add_all_algorithms_noconf': > ..\crypto\evp\c_all.c:77: warning: implicit declaration of function > `ENGINE_setup_openbsd' Yes, that's because with Posix/2 headers, some #ifdefs within OpenSSL configuration misdetect OS/2 as "OpenBSD", while the makefiles (of course) don't compile the OpenBSD specific stuff. > And does it really matter if I use the Posix/2 headers and library or not? I don't think so, no. Using plain EMX should be just fine... Regards, Stefan **= Email 6 ==========================** Date: Mon, 12 Dec 2005 07:16:03 +1030 From: Paul Smedley Subject: Re: Posix/2 stdlib.h problem? John, John Poltorak wrote: > On Sun, Dec 11, 2005 at 11:44:11AM +0000, John Poltorak wrote: >> On Sun, Dec 11, 2005 at 12:13:13PM +0100, Stefan.Neis at t-online.de wrote: >>> Hi, >>> >>>>> srclib\apr\include\arch\os2\apr_arch_file_io.h has #undef HAVE_MKSTEMP >>>>> which is why it's not used.... >>>> >>>> Does that suggestion that this line in apr_arch_file_io.h >>>> >>>> #undef HAVE_MKSTEMP >>>> >>>> is the cause of the problem? >>> Yes. OTOH, simply removing it might break the compile for plain EMX since >>> that probably hasn't got the mkstemp function. >> Are you suggesting that I have introduced a problem by using Posix/2 >> instead of the standard EMX headers? > > Just as an update, I tried building Apache2 v2.2.0 with EMX/GCC without > the Posix/2 headers and got a little further in the build - it actually > produced aplibtool.exe before ending at this point: aplibtool.exe is generated by configure afair > > gcc -Zmt -DHAVE_CONFIG_H -DOS2 -I./include > -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include/arch/os2 > -I./include/arch/unix -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include -o > shmem/os2/shm.obj -c shmem/os2/shm.c -Zomf > /ux2bs/workdir/httpd-2.2.0/srclib/apr/build/aplibtool --mode=compile gcc > -Zmt -DHAVE_CONFIG_H -DOS2 -I./include > -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include/arch/os2 > -I./include/arch/unix -I/ux2bs/workdir/httpd-2.2.0/srclib/apr/include -o > support/unix/waitio.lo -c support/unix/waitio.c && touch > support/unix/waitio.lo > support/unix/waitio.c: In function `apr_wait_for_io_or_timeout': > support/unix/waitio.c:80: structure has no member named `pollset' > support/unix/waitio.c:82: structure has no member named `pollset' > support/unix/waitio.c:86: structure has no member named `pollset' In srclib\apr\include\arch\os2\apr_arch_file_io.h you need to add: #ifndef WAITIO_USES_POLL /* if there is a timeout set, then this pollset is used */ apr_pollset_t *pollset; #endif into the struct apr_file_t Cheers, Paul. **= Email 7 ==========================** Date: Sun, 11 Dec 2005 21:37:22 +0000 From: John Poltorak Subject: Re: Posix/2 stdlib.h problem? On Mon, Dec 12, 2005 at 07:16:03AM +1030, Paul Smedley wrote: > In srclib\apr\include\arch\os2\apr_arch_file_io.h you need to add: > #ifndef WAITIO_USES_POLL > /* if there is a timeout set, then this pollset is used */ > apr_pollset_t *pollset; > #endif > > into the struct apr_file_t Do you mean like this? struct apr_file_t { apr_pool_t *pool; HFILE filedes; char * fname; int isopen; int buffered; int eof_hit; apr_int32_t flags; int timeout; int pipe; HEV pipeSem; enum { BLK_UNKNOWN, BLK_OFF, BLK_ON } blocking; /* Stuff for buffered mode */ char *buffer; int bufpos; // Read/Write position in buffer unsigned long dataRead; // amount of valid data read into buffer int direction; // buffer being used for 0 = read, 1 = write unsigned long filePtr; // position in file of handle apr_thread_mutex_t *mutex;// mutex semaphore, must be owned to access the above fields #ifndef WAITIO_USES_POLL /* if there is a timeout set, then this pollset is used */ apr_pollset_t *pollset; #endif }; > Cheers, > > Paul. > -- John **= Email 8 ==========================** Date: Sun, 11 Dec 2005 21:56:33 +0000 From: John Poltorak Subject: Re: OpenSSL v0.9.7 revisited On Sun, Dec 11, 2005 at 09:26:17PM +0100, Stefan.Neis at t-online.de wrote: > Hi, > > And does it really matter if I use the Posix/2 headers and library or not? > > I don't think so, no. Using plain EMX should be just fine... OK - I'll forget about Posix/2 for OpenSSL. v0.9.7i appears to build out of the box too. Guess I'll try the latest 0.9.8x version next. > Regards, > Stefan > > -- John