[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] mod_auth_mysql as DSO



Should be a simple fix.  Apxs doesn't append a leading / onto the path names of

module locations when it writes the LoadModule abc/def/etc line so apache takes

it onto itself to append what it thinks the root path is when it attempts to
load them.

Unfortunately, it is wrong.  In fact, this error occurs with all DSO modules
made
with apxs.  Ah well, I still like the apxs functionality.

Just edit httpd.conf and try changing line 34 so that the path reads
 /usr/lib/apache/mod_auth_mysql.so and the problem should disappear when you
restart your server.  If not, let me know.


Hope this helps -

Michael Lampkin
Business Dev. Engr
Cobalt Networks, Inc.


Ben Rothe wrote:

> Hi folks:
>
> I'm having trouble compiling mod_auth_mysql-2.20 as a DSO using
> the /usr/sbin/apxs tool on a RaQ3i. Here is a brief summary of
> what I have tried and the error that is being returned.
>
> The RaQ3i is just out-of-the-box and the only other things I have
> installed is:
>    MySQL-client-3.22.30-1.i386.rpm
>    MySQL-devel-3.22.30-1.i386.rpm
> I am using the version of Apache 1.3.6 that Cobalt supplied
> with this machine.
>
> The error I get at run-time is:
>
> Syntax error on line 34 of /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/lib/apache/mod_auth_mysql.so into server:
> /etc/httpd/lib/apache/mod_auth_mysql.so: undefined symbol: __ucmpdi2
>
> Basically, I followed these steps to compile it.
>
> # ./configure --with-mysql=/usr --with-apxs=/usr/sbin
> # apxs -c mod_auth_mysql.c (which outputs the following)
>
> cc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DNO_DBM_REWRITEMAP -DMOD_SSL=20
> 2108 -DMOD_PERL -DUSE_PERL_SSI -Dbool=char -DHAS_BOOL -I/usr/include/mysql -
> I/usr/local/include -DEAPI -DBIG_SECURITY_HOLE -DCOBALT_RAQ_LED -fpic -DSHAR
> ED_MODULE -I/usr/include/apache  -c mod_auth_mysql.c
> ld -Bshareable -o mod_auth_mysql.so mod_auth_mysql.o
>
> # /usr/sbin/apxs -i -a -n auth_mysql mod_auth_mysql.so
> # cp mod_auth_mysql.so /usr/lib/apache/mod_auth_mysql.so
>
> I then added the necessary lines to the httpd.conf file and
> restarted the server, but I always get the error above.
>
> Has anyone else had similar problems? Anyone had any success?
> I would really like to get this module working with my httpd
> (without recompiling httpd if possible). Any help or pointers
> would be appreciated.
>
> - Ben Rothe
> ben@xxxxxxxxxxxxxxx
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers