delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/08/13:18:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 08 Apr 2003 13:17:13 -0400
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: apache php4 error: dlopen: Win32 error 193
In-reply-to: <b6uu1n$g45$1@main.gmane.org>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20030408171713.GA1756@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <000b01c2fced$98850ba0$9267bba3 AT fischerpcsrv>
<b6uu1n$g45$1 AT main DOT gmane DOT org>

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.

Don't blame me -- blame the Apache maintainer.  I have asked him many
times to repackage mod_php4 with rebase removed.

> 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?

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.

Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019