You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Peter Princz <pr...@gmail.com> on 2007/02/21 16:00:09 UTC

[users@httpd] subject: Apache2.2 for win32 can't load module libapreq2 I just built

Hello world,

Background: My goal is to get rid of project mgmt software and produce
my progress reports from my good-old structured text maintained in vi.
A few weeks ago I found a wonderful extension, basically an XHTML
parser to Apache2 on one of the outliner mailing lists. A sample
outline file parsed with it can be seen here:
http://www.martini.nu/sample.otl

I'm on windows xp pro as corporate standard, Apache2 also has to run here.

The XHTML parser has a lot of dependencies, I could resolve them all
except for libapreq2. I tried to build libapreq2 and I think I
succeeded with that.

Note: I'm a developer, but this is my very first Apache build on
windows platform with tools I just downloaded for this purpose. I'm
also not experienced with Apache.

I could find Visual C++ 2005 Express Edition for download only, not
VC6++ or 2003 ed., as they are mentioned in some places in the
documentation.

I only think the build itself succeeded, because finally both
libapreq2.dll and mod_apreq2.so are created (and disappear with nmake
clean :), although the build scripts bail out when creating the test
scripts for them and even the compiler is complaining in the meantime
about unknown command-line options, which I find alarming. I suspect
something is wrong in the tool-chain also, it is not backward
compatible with VC++6. Seems the makefile genrated by the perl script
is for earlier versions of microsoft development environment.

Anyway, I have libapreq2 built. However, I can't load it into Apache
for some reason. I copied the .dll under the lib and the .so under the
modules of the Apache installation tree from the build tree, hope this
approach is correct, I don't like to build straight into the
production tree.

This is the tail of my httpd.conf, now both lines are commented out
for Apache to be able to start.

"...
#LoadFile lib/libapreq2.dll
#LoadModule apreq2_module modules/mod_apreq2.so
..."

When I try to start Apache2 with any or both of the lines commented
out, I get an error dialog saying: "... The requested operation has
failed.!..." and we are bailing out from startup. Nothing in the
server log, since it couldn't even start.

An example error message logged into Event viewer:
"...
Event Type: Error
Event Source: Apache Service
...
Description:
The Apache service named  reported the following error:
>>> httpd.exe: Syntax error on line 488 of
D:/bin/asf/Apache2.2/conf/httpd.conf: Cannot load lib/libapreq2.dll
into server: The specified module could not be found.
..."

But as I wrote earlier, the files are actually there.
Do you have any hints what I'm doing wrong? Why an existing file can
not be loaded into the server? Or the error message is misleading and
it actually tries to load the file, and that is malformed? Can
debug/retail setting play any role here?
Btw, which file needs to be loaded? The .dll, the .so or both?

A lot of questions, seems I'm lost on one of the final steps to put
the thing together.

Have a nice day,
  Peter

---
hundred-and-one symptoms of being an internet addict:
198. You read all the quotes at Netaholics Anonymous and keep thinking
     "What's wrong with that?"

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] subject: Apache2.2 for win32 can't load module libapreq2 I just built

Posted by Peter Princz <pr...@gmail.com>.
Eric,

On 21/02/07, Eric Covener <co...@gmail.com> wrote:
>
> This utility, or a sysinternals workalike might show you a missing DLL
> dependency for  libapreq2.dll:
>
> http://www.dependencywalker.com/
>
> --
> Eric Covener
> covener@gmail.com
>

thank you for your help, I feel I'm on track now. The dependency chain
of the built dll is definitely broken, I haven't thought about that.

I'm about to resolve the dependency issues now, and then try to load
the dll into the server.

Will be back with progress report.

Thank you!

Have a nice day,
  Peter


---
hundred-and-one symptoms of being an internet addict:
199. You read this entire list of symptoms, looking for something
     that doesn't describe you.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] subject: Apache2.2 for win32 can't load module libapreq2 I just built

Posted by Eric Covener <co...@gmail.com>.
On 2/21/07, Peter Princz <pr...@gmail.com> wrote:
> The Apache service named  reported the following error:
> >>> httpd.exe: Syntax error on line 488 of
> D:/bin/asf/Apache2.2/conf/httpd.conf: Cannot load lib/libapreq2.dll
> into server: The specified module could not be found.

This utility, or a sysinternals workalike might show you a missing DLL
dependency for  libapreq2.dll:

http://www.dependencywalker.com/

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org