6 messages in com.mysql.lists.perlRe: RH9 multi-thread perl unresolved ...| From | Sent On | Attachments |
|---|---|---|
| Matthew A. R. Sherian | 26 Jan 2004 08:16 | |
| Jochen Wiedmann | 26 Jan 2004 13:04 | |
| Matthew A. R. Sherian | 26 Jan 2004 13:11 | |
| Matthew A. R. Sherian | 27 Jan 2004 16:25 | |
| Rudy Lippan | 27 Jan 2004 20:15 | |
| Matthew A. R. Sherian | 28 Jan 2004 07:59 |
| Subject: | Re: RH9 multi-thread perl unresolved symbol problem?![]() |
|---|---|
| From: | Matthew A. R. Sherian (ma...@mars-tmc.hq.themunicenter.com) |
| Date: | 01/27/2004 04:25:46 PM |
| List: | com.mysql.lists.perl |
Well I ended up not finding my solution via google. I ended up figuring it out though. It seems that --libs doesn't actually pass the arguments to the Makefile.
LDDFLAGS=-L/usr/local/lib was all that was set in the Makefile. I modified that to contain all of the options that were passed on the command line, and I built perfectly.
However I still have this problem:
Can't call method "rows" without a package or object reference at....
where at is
$dbh = DBI->connect("DBI:mysql:database=$db;host=$host","$user", "$pw", {'RaiseError' => 1}) or die "Unable to connect:$DBI::errstr\n";
$query = "SELECT longdescs.bug_id bug_id,longdescs.thetext thetext, bugs.short_desc short_desc FROM bugs, longdescs where bugs.bug_id = longdescs.bug_id and bugs.target_milestone = '$target' order by longdescs.bug_id;";
$sth = $dbh->prepare( $query ) or die "SQL Failure: On prepare of\n\t$DBI::errstr\n"; $sth = $sth->execute() or die "SQL Failure: On execute of\n\t$DBI::errstr\n"; $return = $sth->rows;
On Mon, 2004-01-26 at 16:11, Matthew A. R. Sherian wrote:
Thanks for the hint, I had done a much more specific search earlier that didn't return any results.
On Mon, 2004-01-26 at 16:04, Jochen Wiedmann wrote:
Matthew A. R. Sherian wrote:
I have upgraded to DBI-1.40 and DBD-MySQL-2.9 and am now receiving the following error after compiling with the below compile options.
Can't load
'/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql:
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so:
undefined symbol: net_buffer_length at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
Most probably the linker is unable to locate the dynamic libraries. Try a google search for "net_buffer_length DBD mysql", it will emit a lot of results and associated hints.
Jochen




