You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jens Meyer <jm...@jensmeyer.de> on 2007/01/15 09:02:18 UTC

Problem: "undefined symbol: apr_get_username"

Hello!

Sorry for my newbie-question - but I am new to "APR" and I can't find 
any solutions for my problem with Google.
It would be great if anybody could give me a short tip.

I tried to add a new module. The module was compiled without problems.
But when including the module and restarting Apache I get the following 
error-message:

-->
Cannot load /usr/lib/httpd/modules/mod_watch.so into server: 
/usr/lib/httpd/modules/mod_watch.so: undefined symbol: apr_get_username
<--

The following RPMs are installed:
-->
apr-util-devel-1.2.8-1.fc6
apr-util-1.2.8-1.fc6
apr-1.2.7-10
apr-devel-1.2.7-10
<--

Is it necessary to include the apr-functions manually to Apache or is 
this a general error with the module?

Kind regards,

        Jens

Re: Problem: "undefined symbol: apr_get_username"

Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
On 1/15/07, Jens Meyer <jm...@jensmeyer.de> wrote:
> I tried to add a new module. The module was compiled without problems.
> But when including the module and restarting Apache I get the following
> error-message:
>
> -->
> Cannot load /usr/lib/httpd/modules/mod_watch.so into server:
> /usr/lib/httpd/modules/mod_watch.so: undefined symbol: apr_get_username
> <--

apr 1.x renamed apr_get_username to apr_uid_name_get.  So, this sounds
like your mod_watch module is expecting an APR 0.9.x interface while
you have APR 1.x available.  Hence, I'd recommend recompiling with
httpd 2.2+ with APR 1.2+ - or you'd need to use httpd 2.0.x and APR
0.9.x instead.

It seems that the author of mod_watch has yanked the code, so I can't
find it easily to tell you how easy it'd be to make mod_watch work
with httpd 2.2+ and APR 1.2+.

HTH.  -- justin