This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: apache php4 error: dlopen: Win32 error 193
On this day, 08/04/2003 19:17, Jason Tishler wrote:
Javier,
On Tue, Apr 08, 2003 at 06:40:51PM +0200, Javier J wrote:
$ /usr/sbin/apachectl start
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 193
/usr/sbin/apachectl start: httpd could not be started
I've done some googling and it seems that Win32 error 193 means it's
not a valid W32 image?
The above is correct:
$ fgrep 193L /usr/include/w32api/winerror.h
#define ERROR_BAD_EXE_FORMAT 193L
What version of Windows are you using? If you are using Me, then the
rebase version distributed with mod_php4 has just corrupted some of your
DLLs. You will need to re-install the packages with the corrupted DLLs
to recover from this situation.
I am using Windows 2000. I have followed the advice on rebasing the
system, to no avail
The steps I've followed are:
- Re-download the mod_php4 package (download only, not install).
- Run rebaseall from the prompt. It runs w/o any error messages that I
can see, and then...
cohen at lazarus /usr/lib/apache
$ rebaseall
cohen at lazarus /usr/lib/apache
$ /usr/sbin/apachectl start
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/lib/apache/libphp4.dll into server: dlopen: Win32 error 193
/usr/sbin/apachectl start: httpd could not be started
Don't blame me -- blame the Apache maintainer. I have asked him many
times to repackage mod_php4 with rebase removed.
Let's hope it's solved soon ;)
From what I've seen in the answers to my question, we should be seeing
some changes to the apache + php problem soon (as the maintainer has
said something on that lines ;)
Also, if I comment-out the php-related LoadModule and AddModule
directives, and add the mod_ssl related ones, then I get another
(hopefully, unrelated) error:
cohen at lazarus /etc/postinstall
$ /usr/sbin/apachectl start
C:\cygwin\usr\sbin\httpd.exe: *** unable to remap
C:\cygwin\bin\cygssl.dll to same address as parent(0xB10000)
!= 0xB20000
/usr/sbin/apachectl start: httpd could not be started
Any ideas of _why_ this might be happening?
This problem seems to have gone away after rebasing (rebaseall). At
least, now I can get httpd to start with the
LoadModule ssl_module lib/apache/libssl.dll
and
AddModule mod_ssl.c
lines in httpd.conf.
Now I "only" have to read the mod_ssl docs and see what I need to get a
https server set up and running ;)
Yes, you need to rebase *all* DLLs not just the Apache-related ones.
Install the rebase package, read the README:
http://www.tishler.net/jason/software/rebase/rebase-2.2.README
>
and then rebase your entire system.
Done that, but it seems the problem has not gone away.
Been doing some more digging. I was wondering if the "bad" .dll was
libphp4.dll or one of its depenedencies.
The cygcheck output is:
cohen at lazarus /usr/lib/apache
$ cygcheck -v libphp4.dll
Found: .\libphp4.dll
libphp4.dll - os=4.0 img=1.0 sys=4.0
"cygsapi.dll" v0.0 ts=2002/5/5 19:26
C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
"cygbz21.0.dll" v0.0 ts=2002/1/27 2:07
C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2003/3/18 15:20
C:\WINNT\System32\KERNEL32.dll - os=5.0 img=5.0 sys=4.0
"KERNEL32.dll" v0.0 ts=2002/10/4 22:36
C:\WINNT\System32\ntdll.dll - os=5.0 img=5.0 sys=4.0
"ntdll.dll" v0.0 ts=2003/3/15 5:22
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto.dll" v0.0 ts=2003/3/19 21:35
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\cygwin1.dll (already done)
C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 10:28
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\pq.dll - os=4.0 img=1.0 sys=4.0
"pq.dll" v0.0 ts=2003/2/18 17:08
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
"cygxml2-2.dll" v0.0 ts=2002/7/22 8:29
C:\cygwin\bin\cygwin1.dll (already done)
C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2002/3/12 5:38
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\cygz.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
C:\cygwin\bin\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
"cyghttpd.dll" v0.0 ts=2002/4/27 15:23
C:\cygwin\bin\cygwin1.dll (already done)
C:\WINNT\System32\KERNEL32.dll (already done)
Use -h to see help about each section
And using MS's Dependency walker on libphp4.dll (after adding
c:\cygwin\bin to the lib search path) it says: (see attached file,
depwalk.txt)
^ Module File Time Stamp Link
Time Stamp File Size Attr. Link Checksum Real Checksum
CPU Subsystem Symbols Preferred Base Actual
Base Virtual Size Load Order Fi
c:\cygwin\bin\PQ.DLL No PE signature found. This
file appears to be a 16-bit DOS module.
c:\cygwin\bin\CYGBZ21.0.DLL 04/08/2003 5:40p
04/09/2003 11:45a 54,784 A 0x000184B4 0x0001A872
x86 Win32 console None 0x6FA90000
Unknown 0x00012000 Not Loaded N/
c:\cygwin\bin\CYGCRYPTO.DLL 04/08/2003 5:40p
04/09/2003 11:55a 659,968 A 0x000A6098 0x000A6D24
x86 Win32 console None 0x6EF10000
Unknown 0x000A9000 Not Loaded N/
c:\cygwin\bin\CYGHTTPD.DLL 04/27/2002 3:25p
04/09/2003 11:45a 312,832 A 0x00000000 0x0005614D
x86 Win32 console None 0x6FFA0000
Unknown 0x00050000 Not Loaded N/
c:\cygwin\bin\CYGINTL-1.DLL 04/08/2003 5:40p
04/09/2003 11:55a 22,016 A 0x00005D88 0x0000D925
x86 Win32 console None 0x6F7B0000
Unknown 0x0000A000 Not Loaded N/
c:\cygwin\bin\CYGWIN1.DLL 03/18/2003 4:21p
03/18/2003 4:21p 971,080 A 0x000F4A13 0x000F4A13
x86 Win32 console None 0x61000000
Unknown 0x0013C000 Not Loaded 10
c:\cygwin\bin\CYGXML2-2.DLL 04/08/2003 5:40p
04/09/2003 11:55a 648,365 A 0x0009EA58 0x000A30CA
x86 Win32 console None 0x6F340000
Unknown 0x00090000 Not Loaded N/
c:\cygwin\bin\CYGZ.DLL 04/08/2003 5:40p
04/09/2003 11:55a 50,688 A 0x0000DB7D 0x00017A9C
x86 Win32 console None 0x6CF00000
Unknown 0x00011000 Not Loaded N/
c:\cygwin\lib\apache\LIBPHP4.DLL 05/05/2002 7:44p
04/09/2003 11:59a 1,126,912 A 0x00000000 0x0011AE18
x86 Win32 console None 0x6F150000
Unknown 0x0012B000 Not Loaded N/
c:\winnt\system32\KERNEL32.DLL 11/01/2002 5:33p
11/02/2002 2:33a 708,880 A 0x000B7998 0x000B7998
x86 Win32 console DBG 0x77E80000
Unknown 0x000B1000 Not Loaded 5.
c:\winnt\system32\NTDLL.DLL 03/14/2003 9:23p
03/15/2003 6:23a 476,944 A 0x00083F58 0x00083F58
x86 Win32 console DBG 0x77F80000
Unknown 0x0007A000 Not Loaded 5.
HTH
Javier
Jason
^ Module File Time Stamp Link Time Stamp File Size Attr. Link Checksum Real Checksum CPU Subsystem Symbols Preferred Base Actual Base Virtual Size Load Order Fi
c:\cygwin\bin\PQ.DLL No PE signature found. This file appears to be a 16-bit DOS module.
c:\cygwin\bin\CYGBZ21.0.DLL 04/08/2003 5:40p 04/09/2003 11:45a 54,784 A 0x000184B4 0x0001A872 x86 Win32 console None 0x6FA90000 Unknown 0x00012000 Not Loaded N/
c:\cygwin\bin\CYGCRYPTO.DLL 04/08/2003 5:40p 04/09/2003 11:55a 659,968 A 0x000A6098 0x000A6D24 x86 Win32 console None 0x6EF10000 Unknown 0x000A9000 Not Loaded N/
c:\cygwin\bin\CYGHTTPD.DLL 04/27/2002 3:25p 04/09/2003 11:45a 312,832 A 0x00000000 0x0005614D x86 Win32 console None 0x6FFA0000 Unknown 0x00050000 Not Loaded N/
c:\cygwin\bin\CYGINTL-1.DLL 04/08/2003 5:40p 04/09/2003 11:55a 22,016 A 0x00005D88 0x0000D925 x86 Win32 console None 0x6F7B0000 Unknown 0x0000A000 Not Loaded N/
c:\cygwin\bin\CYGWIN1.DLL 03/18/2003 4:21p 03/18/2003 4:21p 971,080 A 0x000F4A13 0x000F4A13 x86 Win32 console None 0x61000000 Unknown 0x0013C000 Not Loaded 10
c:\cygwin\bin\CYGXML2-2.DLL 04/08/2003 5:40p 04/09/2003 11:55a 648,365 A 0x0009EA58 0x000A30CA x86 Win32 console None 0x6F340000 Unknown 0x00090000 Not Loaded N/
c:\cygwin\bin\CYGZ.DLL 04/08/2003 5:40p 04/09/2003 11:55a 50,688 A 0x0000DB7D 0x00017A9C x86 Win32 console None 0x6CF00000 Unknown 0x00011000 Not Loaded N/
c:\cygwin\lib\apache\LIBPHP4.DLL 05/05/2002 7:44p 04/09/2003 11:59a 1,126,912 A 0x00000000 0x0011AE18 x86 Win32 console None 0x6F150000 Unknown 0x0012B000 Not Loaded N/
c:\winnt\system32\KERNEL32.DLL 11/01/2002 5:33p 11/02/2002 2:33a 708,880 A 0x000B7998 0x000B7998 x86 Win32 console DBG 0x77E80000 Unknown 0x000B1000 Not Loaded 5.
c:\winnt\system32\NTDLL.DLL 03/14/2003 9:23p 03/15/2003 6:23a 476,944 A 0x00083F58 0x00083F58 x86 Win32 console DBG 0x77F80000 Unknown 0x0007A000 Not Loaded 5.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/