httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sindhi Sindhi <sindhi....@gmail.com>
Subject Re: Apache fails to start when Xerces library is used in a C++ module
Date Sun, 31 Mar 2013 12:26:49 GMT
Thankyou very much, after providing the Xerces DLL location in LoadFile I'm
able to parse the XML :-)
Thanks once again!

On Sun, Mar 31, 2013 at 5:25 PM, Rainer Jung <rainer.jung@kippdata.de>wrote:

> On 31.03.2013 13:09, Sindhi Sindhi wrote:
> > Hello Sorin,
> >
> > Thanks for your reply.
> >
> > I tried the below two -
> >
> > 1. I had earlier downloaded Xerces from
> >
> http://xml.apache.org/dist/xerces-c/3/binaries/xerces-c-3.1.1-x86_64-windows-vc-10.0.zip
> > It had xerces-c_3.lib and xerces-c_static_3.lib. The file names indicated
> > that these are 64-bit binaries.
> >
> > I added the below in httpd.conf file -
> > LoadFile
> >
> e:/xerces-c-3.1.1-x86_64-windows-vc-10.0/xerces-c-3.1.1-x86_64-windows-vc-10.0/lib/xerces-c_3.lib
> >
> > Tried to start httpd.exe and got the below error -
> > e:\httpd-2.4.4-win64\Apache24\bin>httpd.exe
> > httpd.exe: Syntax error on line 173 of
> > E:/httpd-2.4.4-win64/Apache24/conf/httpd.conf: Cannot load
> >
> E:/xerces-c-3.1.1-x86_64-windows-vc-10.0/xerces-c-3.1.1-x86_64-windows-vc-10.0/lib/xerces-c_3.lib
> > into server: %1 is not a valid Win32 application.
> >
> > If I try to load xerces-c_static_3.lib also I get the same error.
> >
> > 2. I downloaded the Xerces source code from
> > http://xml.apache.org/dist/xerces-c/3/sources/xerces-c-3.1.1.zip and
> built
> > it using Visual Studio 2010 as a 64-bit target. This generated
> > xerces-c_3D.lib.
> >
> > Changed httpd.conf file,
> > LoadFile
> > E:/xerces-c-3.1.1/xerces-c-3.1.1/Build/Win64/VC10/Debug/xerces-c_3D.lib
> >
> > Tried to start httpd.exe and got the same error.
> > httpd.exe: Syntax error on line 173 of
> > E:/httpd-2.4.4-win64/Apache24/conf/httpd.conf: Cannot load
> > E:/xerces-c-3.1.1/xerces-c-3.1.1/Build/Win64/VC10/Debug/xerces-c_3D.lib
> > into server: %1 is not a valid Win32 application.
> >
> > Kindly advice.
>
> I'd expect you need to LoadFile the Xerces DLLs not the lib files.
>
> Regards,
>
> Rainer
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message