httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcus Leon <>
Subject Why would the "-Wl" option cause problems?
Date Tue, 06 Aug 2002 19:56:49 GMT
We've isolated the code in the linking command that causes our Apache 2 C++
modules from loading correctly.  

Bad: gcc -shared -Wl,-soname -Wl, -o .libs/
Good: gcc -shared -o .libs/ mod_enforcer.o

Why does the -Wl option cause problems?

Why is everything OK with .c files but not with .cpp files?

Is anyone able to build C++ modules using the Apache 2 tools?

The -Wl option is in libtool.  For various reasons we do not want to edit
this script.  It appears that this option is hard coded in libtool and there
are no switches that can remove it.


-----Original Message-----
From: Marcus Leon 
Sent: Tuesday, July 30, 2002 6:55 PM
To: ''
Subject: Problems building C++ modules for Apache 2.0

Hello, we modified our apxs to build C++ modules but we get an error when we
start Apache.  The peculiar thing is that this file builds and runs fine
when you give it a .c extension.  It's only the c++ file that causes
troubles.  Does anyone have any suggestions?

The error is:
Syntax error on line 232 of /home/mleon/apache2/conf/httpd.conf:
Can't locate API module structure `enforcer_module' in file
/home/mleon/apache2/lib/ undefined symbol: enforcer_module


The information contained in this message is confidential and is intended
for the addressee(s) only.  If you have received this message in error or
there are any problems please notify the originator immediately.  The 
unauthorised use, disclosure, copying or alteration of this message is 
strictly forbidden. Baltimore Technologies plc will not be liable for
direct, special, indirect or consequential damages arising from alteration of the
contents of this message by a third party or as a result of any virus being 
passed on.
This footnote confirms that this email message has been swept for Content Security threats,
computer viruses.

This footnote confirms that this email message has been swept by 
Baltimore MIMEsweeper for Content Security threats, including
computer viruses.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message