Re: defining a rpath/unresolved symbols

Jim Turner <[email protected]>
Newsgroups gmane.comp.apache.mod-log-sql
Message-ID <[email protected]>
Chris,

    I was able to get the module to work yesterday... instead of trying
to get the module to remember where the MySQL libraries were at, I
instead compiled apache with the information:

LDFLAGS='-rpath /isp/mysql/lib/mysql' ./configure ...

    Everything worked as expected after that. ( The error I got without
this was "/sbin/loader: Fatal Error: cannot map libmysqlclient.so" )

    Digital Unix (v4.0f, at least ) appears to follow the same
requirements needed by Solaris, so simply adding librt to the module
made it compile without errors.

    As for the warnings, here's the text:

mod_log_sql.c: In function `extract_request_duration':
mod_log_sql.c:292: warning: long int format, different type arg (arg 4)
mod_log_sql.c: In function `extract_request_timestamp':
mod_log_sql.c:497: warning: long int format, different type arg (arg 4)

    Poking around in the code, it looks like the compiler was
complaining that what time() is returning doesn't play nicely with %ld
by default.  I just typecast them as (long)'s and the warnings went away
( not that the module wasn't working correctly without them ).

    The module works very well so far in testing... hasn't dropped a
single log entry yet.  A did have a few more questions, though...

1) What's the likelihood that a main server-level
LogSQLTransferLogFormat will be implemented in the future?  I use the
same format for all of my virtual domains and it would be very
convenient to just use one.

2) LogSQLMassVirtualHosting is very cool... except that it creates
tables I'll never use ( I just need the access log ).  Is there a way to
use the automatic table creation widgets but tell them to only make the
access table?

    Thanks!

____
Jim Turner
Lead System Administrator
netINS, Inc.



On Wed, 19 Mar 2003 15:18:36 -0800
Christopher Powell <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tuesday, March 18, 2003 11:52, Jim Turner wrote:
> >     When I compile the module( shared ), I don't get any errors and only
> > 2 benign warnings.  Installed fine, but when I run an apache configtest,
> > it complains that dlopen can't load the module.  My first thought was
> > that since mysql isn't in a "standard" search path, I would need to add
> > -rpath to the Makefile to get it to remember where mysqlclient.so is at.
> 
> Jim,
> I'd love to offer insight, but I confess that I'm totally unfamiliar with the 
> vagaries of Digital Unix.  That said, perhaps you could post the actual text 
> of your compilation warning messages, as well as verbatim text of other error 
> messages.  They may offer some insight.
> 
> Regards,
> Chris
> 
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (GNU/Linux)
> 
> iD8DBQE+ePrSgUnUXCzWmRsRAlF7AKCqeC6Q7Xt69Z9FBDu7QDKW9J5y0ACfbRdB
> 7rubq6Nu0IkQ/CXHx77GLLE=
> =Tk12
> -----END PGP SIGNATURE-----
> 
> __________________________________________________________________
> Reminder: to unsubscribe, send email to <[email protected]>
> with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
> The module homepage is http://www.grubbybaby.com/mod_log_sql/

__________________________________________________________________
Reminder: to unsubscribe, send email to <[email protected]>
with the words "unsubscribe mod_log_sql" in the body (w/o quotes).
The module homepage is http://www.grubbybaby.com/mod_log_sql/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.