I can build a mod_perl httpd on OS X using mod_perl 1.26 and apache 1.3.20,
but when I try to start a server that uses both Apache::Cookie and
Apache::Request from Perl's libapreq module distribution, I get a symbol
conflict.

I changed the function name to include my initials ("jcs") and
rebuilt/reinstalled libapreq to make sure I was looking at the right area of
the code.  Here's what happens when I try to start my server:

% apachectl start
dyld: /usr/local/apache/bin/httpd-mp multiple definitions of symbol
_ApacheRequest___jcs_parse
/Library/Perl/darwin/auto/Apache/Request/Request.bundle definition of
_ApacheRequest___jcs_parse
/Library/Perl/darwin/auto/Apache/Cookie/Cookie.bundle definition of
_ApacheRequest___jcs_parse
apachectl start: httpd could not be started

This is a single function in the libapreq C code, so I don't understand how
it can be "conflicting with itself."  And, needless to say, building the
exact same software on another Unix (Solaris, in my case) works and runs
fine.

Does anyone have a mod_perl httpd server running in Mac OS X with both
Apache::Cookie and Apache::Request loaded into memory?

-John

Reply via email to