Apache Server configuration support - problems creating a multi-file module

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > March 2005 > problems creating a multi-file module





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problems creating a multi-file module
wcgallego@gmail.com

2005-03-24, 5:53 pm

hey guys, kind of a newb question here. So I'm trying to write an
Apache 2 module that has separate files (needed because several files
are C++ based and have wrappers). Long story short, it compiles
correctly and the module finds the headers, but I get an "Can't load
<module> into server: <module> undefined symbol:" and the function in
question. Anyone have any experience with such a case? I've tried
messing around with the httpd.conf to read in a library but that was
kind of a shot in the dark. Any help's appreciated

Bill

2005-03-24, 8:48 pm

I may be way off the mark here, but ...have you checked that the (compiled)
function names in your module are what you expect?

C++ uses name mangling so that it can provide overloaded functions. This
means that the function names in the module will not be the same as in your
source code. To switch name mangling off, use extern "C".

Also, with C or C++ compilation, your compiled function names will have a
leading underscore added unless you take steps to prevent it happening.

HTH,
Bill

Also,
<wcgallego@gmail.com> wrote in message
news:1111691780.360908.57720@f14g2000cwb.googlegroups.com...
> hey guys, kind of a newb question here. So I'm trying to write an
> Apache 2 module that has separate files (needed because several files
> are C++ based and have wrappers). Long story short, it compiles
> correctly and the module finds the headers, but I get an "Can't load
> <module> into server: <module> undefined symbol:" and the function in
> question. Anyone have any experience with such a case? I've tried
> messing around with the httpd.conf to read in a library but that was
> kind of a shot in the dark. Any help's appreciated
>




Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com