Hi!
I have found this bug more than a year ago already, but forgot to
mention it on this list.
Now that rrdtool has gained libdbi-backend support in the latest trunk
version I believe that the need will be higher that this is fixed...
The problem is that when calling dbi_driver_open with a valid driver
(e.g: mysql) it works fine when using the rrdtool binary itself, but
when invoking the same command via the PERL binding for RRDTool it
fails.
The reason is that in this case some symbols cannot get resolved in this
case.
The example output message is:
[EMAIL PROTECTED] SOURCES]# perl rrdtool.test.pl
/usr/lib/dbd/libdbdmysql.so: undefined symbol: _dbd_parse_datetime
libdbi: Failed to load driver: /usr/lib/dbd/libdbdmysql.so
[EMAIL PROTECTED] SOURCES]#
The only solution that seems to help is recompiling the drivers with
export LDFLAGS="-ldbi" before starting configure.
[EMAIL PROTECTED] SPECS]# ldd /usr/lib/dbd/libdbdmysql.so | grep dbi
[EMAIL PROTECTED] SPECS]# rpm -Uhv
../RPMS/i386/libdbi-dbd-mysql-0.8.1a-1.2.2.i386.rpm --force
Preparing... ###########################################
[100%]
1:libdbi-dbd-mysql ###########################################
[100%]
[EMAIL PROTECTED] SPECS]# ldd /usr/lib/dbd/libdbdmysql.so | grep dbi
libdbi.so.0 => /usr/lib/libdbi.so.0 (0x002d2000)
[EMAIL PROTECTED] SPECS]#
[EMAIL PROTECTED] SOURCES]# perl rrdtool.test.pl
[EMAIL PROTECTED] SOURCES]#
So you may want to incorporate this "patch" that libdbi is linked out of
the box with any future releases of libdbi-drivers...
Cheers,
Martin
--
MARTIN SPERL
Manager, System Engineering
Amdocs Qpass Austria GmbH
FN 185962 z, Commercial Court Vienna
Neutorgasse 12/1, 1010 Vienna, Austria
+43.1.5326464.708 (desk)
+43.676.6688634 (mobile)
+43.1.5326464.300 (fax)
AMDOCS > CUSTOMER EXPERIENCE SYSTEMS INNOVATION
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Libdbi-drivers-devel mailing list
Libdbi-drivers-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-drivers-devel