You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marcus Leon <Ma...@baltimore.com> on 2002/08/06 21:56:49 UTC

Why would the "-Wl" option cause problems?

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,mod_enforcer.so -o .libs/mod_enforcer.so
Good: gcc -shared -o .libs/mod_enforcer.so 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.

Thanks


-----Original Message-----
From: Marcus Leon 
Sent: Tuesday, July 30, 2002 6:55 PM
To: 'users@httpd.apache.org'
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/modules/mod_enforcer.so:
/home/mleon/apache2/lib/libapr.so.0: undefined symbol: enforcer_module

Thanks


-----------------------------------------------------------------------------------------------------------------
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, including
computer viruses.

http://www.baltimore.com

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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org