Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 65462
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: CAPTTOFU [...] cpan.org
Requestors: jwhansen [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



From jwhansen [...] gmail.com Fri Feb 4 17: 20:28 2011
MIME-Version: 1.0 (Apple Message framework v1082)
X-Spam-Status: No, score=-6.21 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
X-Mailer: Apple Mail (2.1082)
X-Spam-Flag: NO
Message-ID: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
content-type: text/plain; charset="utf-8"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.21
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E0A0424151A for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Fri, 4 Feb 2011 17:20:27 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 92gEG90kVbaC for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Fri, 4 Feb 2011 17:20:24 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 6AF00241519 for <bug-DBD-mysql [...] rt.cpan.org>; Fri, 4 Feb 2011 17:20:24 -0500 (EST)
Received: (qmail 9286 invoked by uid 103); 4 Feb 2011 22:20:23 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 4 Feb 2011 22:20:23 -0000
Received: from mail-yw0-f50.google.com (HELO mail-yw0-f50.google.com) (209.85.213.50) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 04 Feb 2011 14:20:21 -0800
Received: by ywc21 with SMTP id 21so1124167ywc.9 for <bug-DBD-mysql [...] rt.cpan.org>; Fri, 04 Feb 2011 14:20:19 -0800 (PST)
Received: by 10.100.141.11 with SMTP id o11mr7971945and.45.1296858018966; Fri, 04 Feb 2011 14:20:18 -0800 (PST)
Received: from [192.168.0.101] (h69-130-144-86.nlsnga.dsl.dynamic.tds.net [69.130.144.86]) by mx.google.com with ESMTPS id c39sm1389774anc.7.2011.02.04.14.20.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 14:20:18 -0800 (PST)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=jwhansen [...] gmail.com
Delivered-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
Subject: Compiling DBD:mysql on Mac OS X 10.6.6 fails
Return-Path: <jwhansen [...] gmail.com>
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=bbsYlfgT6vu2Jp+vX7RmVT02YLiUNH2nuY4mbIFLj5DYS3Uawguw3H6FTyiw50eQR4 v/fCt79yF6fDxhlLYFUkNRKqLVTq6r7/k9mgVOC7SFcyUlWvCENDjplfIP0leSP/RFkP 8Zxiy4BnHagW6Ekf4fcGnCnRtXFV3dfdz7gZg=
X-RT-Mail-Extension: dbd-mysql
X-Original-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:content-type:content-transfer-encoding :subject:date:message-id:to:mime-version:x-mailer; bh=UgJ36MUrZYXMcI7R679NiG4P6CnkCRkM2+8X6UKjvDA=; b=se+Doq2dUv6ZmUERGk/I7BfWfpFociJ+9oDb9uPAyLssejH7HButjyL34inaHNNrt4 cdnxqIe0fXQw4VDq+m1rxlXsfkxOeuSwlzJBRjOn3tZUt6g0wYXx4VQe9N0ZtkZXQ6Sr oYYfHKrgZ/CZUEkmhNzuwgUof1xA3OXSgN7yY=
Date: Fri, 4 Feb 2011 17:20:17 -0500
X-Spam-Level:
To: bug-DBD-mysql [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: John Hansen <jwhansen [...] gmail.com>
X-RT-Original-Encoding: us-ascii
Content-Length: 1876
Download (untitled) / with headers
text/plain 1.8k
Gents, While attempting to install DBD:mysql on Mac OS X 10.6.6 it fails the 'make test'. Below is the data you may need. ** Perl version *** perl -v This is perl 5, version 12, subversion 2 (v5.12.2) built for darwin-thread-multi-2level (with 8 registered patches, see perl -V for more detail Binary build 1203 [294165] provided by ActiveState http://www.ActiveState.com Built Dec 9 2010 04:11:19 ** DBD Bundle ** DBD:mysql bundle: CAPTTOFU/DBD-mysql-4.018.tar.gz ** System OS ** Mac OS X 10.6.6 (10J567) on Macbook Air Darwin macbook 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 ** Problem ** compiling and performing 'make test' results in error: macbook:DBD-mysql-4.018-9F3Dsr root# make test PERL_DL_NONLAZY=1 /usr/local/ActivePerl-5.12/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.t .................. 1/6 # Failed test 'use DBD::mysql;' # at t/00base.t line 21. Bailout called. Further testing stopped: Unable to load DBD::mysql # Tried to use 'DBD::mysql'. # Error: Can't load '/private/var/root/.cpan/build/DBD-mysql-4.018-9F3Dsr/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/private/var/root/.cpan/build/DBD-mysql-4.018-9F3Dsr/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _is_prefix # Referenced from: /private/var/root/.cpan/build/DBD-mysql-4.018-9F3Dsr/blib/arch/auto/DBD/mysql/mysql.bundle # Expected in: dynamic lookup # at (eval 9) line 2 # Compilation failed in require at (eval 9) line 2. # BEGIN failed--compilation aborted at (eval 9) line 2. FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 255 ---------------------------- I would be happy to send any additional info to assist you. Thank you, John Hansen jwhansen@gmail.com
From jwhansen [...] gmail.com Mon Feb 7 14: 25:47 2011
MIME-Version: 1.0 (Apple Message framework v1082)
X-Spam-Status: No, score=-6.21 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_NEUTRAL=0.779, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-17550-1296858029-1731.65462-3-0 [...] rt.cpan.org>
X-Mailer: Apple Mail (2.1082)
X-Spam-Flag: NO
References: <RT-Ticket-65462 [...] rt.cpan.org> <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com> <rt-3.8.HEAD-17550-1296858029-1731.65462-3-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
Message-ID: <D56D8754-8AF3-4F54-B64D-BD11FF7AE045 [...] gmail.com>
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.21
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=jwhansen [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id B81752414FB for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Mon, 7 Feb 2011 14:25:47 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HUDrss8k06aG for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Mon, 7 Feb 2011 14:25:46 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3AC4B241449 for <bug-DBD-mysql [...] rt.cpan.org>; Mon, 7 Feb 2011 14:25:44 -0500 (EST)
Received: (qmail 25793 invoked by uid 103); 7 Feb 2011 19:25:44 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 7 Feb 2011 19:25:44 -0000
Received: from mail-gy0-f178.google.com (HELO mail-gy0-f178.google.com) (209.85.160.178) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 07 Feb 2011 11:25:42 -0800
Received: by gyh4 with SMTP id 4so1882816gyh.9 for <bug-DBD-mysql [...] rt.cpan.org>; Mon, 07 Feb 2011 11:25:40 -0800 (PST)
Received: by 10.151.143.12 with SMTP id v12mr8319093ybn.310.1297106739643; Mon, 07 Feb 2011 11:25:39 -0800 (PST)
Received: from [192.168.0.101] (h69-130-144-86.nlsnga.dsl.dynamic.tds.net [69.130.144.86]) by mx.google.com with ESMTPS id v8sm1425003yba.14.2011.02.07.11.25.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Feb 2011 11:25:37 -0800 (PST)
Delivered-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #65462] AutoReply: Compiling DBD:mysql on Mac OS X 10.6.6 fails
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=j5+lXq/JtLCt0rp5y51LXag+5IM1o8RNGMOQLmdesHinMUGaIZg/0wqo4dUu1y4YJQ iVjdKlzFerP7/YCDfshzVPFeN//rKHBHshaSSmB0047O5tfMeGcDSwlzkR2QxcQ7TjWN HsNLXFVmwAYAfjYMxIu/XLv7mJhmK+wLdmnEE=
Return-Path: <jwhansen [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=lHsWv+WuDH5iBAzbodIT4jeFjrjc4LMEEvwDFnFJvew=; b=VaRFbtxmAyyGBR20HNOWdabh0DIHZXBbhd72D6AYJR0zYILnj5gff41M03x/k2s99t nAZVVi+6107wx3/jMUvrPCOLT05hI6DF1wKV8KtWAoFmeZ7bx+KTEbIIc8v1PhIr0//Y u5tnzSzMcoKfevNlcxSxhOdTxPqQBgSmTxn0I=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
X-RT-Mail-Extension: dbd-mysql
Date: Mon, 7 Feb 2011 14:25:35 -0500
X-Spam-Level:
To: bug-DBD-mysql [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: John Hansen <jwhansen [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-19313-1297106748-878.65462-0-0 [...] rt.cpan.org>
Content-Length: 697
Download (untitled) / with headers
text/plain 697b
update - 1. I removed 5.5.8 and installed Mysql 5.1.49. 2. I did a clean install of Mysql 5.1.49 3. I removed Activestate Perl and used the default version of perl that came with the Macbook Air under OS X 10.6.6 perl -V Summary of my perl5 (revision 5 version 10 subversion 0) configuration: Platform: osname=darwin, osvers=10.0, archname=darwin-thread-multi-2level uname='darwin scream.apple.com 10.0 darwin kernel version 10.0.0: fri jul 31 22:46:25 pdt 2009; root:xnu-1456.1.25~1release_x86_64 x86_64 ' Under this environment the 'make test' finished correctly and the 'make install' correctly installed. Tested the access to a table and it worked. John Hansen jwhansen@gmail.com
MIME-Version: 1.0
In-Reply-To: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-26838-1300236671-1136.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 24
Looking into this issue.
MIME-Version: 1.0
In-Reply-To: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2467-1301415535-1055.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 217
Download (untitled) / with headers
text/plain 217b
Can someone please set me up with a OS X 10.6.6 environment? I don't yet have access to one. I really want to fix this and have been slammed, but if someone can help me out with a test env, that would be a HUGE help.
MIME-Version: 1.0
In-Reply-To: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18806-1306216851-1016.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: francois1+bitcard [...] gmail.com
X-RT-Original-Encoding: utf-8
Content-Length: 2717
Download (untitled) / with headers
text/plain 2.6k
There are potentially two issues: - the (infamous) "Xcode4 breaks CPAN" problem: http://deflatermouse.livejournal.com/149721.html for which the easiest fix until Apple fixes this is, for the user, to modify /System/Library/Perl/5.10.0/darwin-thread-multi- 2level/Config_heavy.pl to remove the -arch ppc from $ENV{ARCHFLAGS}. - the bug report above is because the libraries flags are wrong during compilation, and can manifest itself slightly differently. Here's what I get: iMac:DBD-mysql-4.019-FNGA1g francois$ sudo make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.t .................. 1/6 # Failed test 'use DBD::mysql;' # at t/00base.t line 21. Bailout called. Further testing stopped: Unable to load DBD::mysql # Tried to use 'DBD::mysql'. # Error: Can't load '/Users/francois/.cpan/DBD-mysql-4.019- FNGA1g/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/francois/.cpan/DBD-mysql-4.019- FNGA1g/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Library not loaded: libmysqlclient.18.dylib # Referenced from: /Users/francois/.cpan/DBD-mysql-4.019- FNGA1g/blib/arch/auto/DBD/mysql/mysql.bundle # Reason: image not found at /System/Library/Perl/5.10.0/darwin-thread-multi- 2level/DynaLoader.pm line 207. # at (eval 7) line 2 # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 255 Now, look at the defaults generated by perl Makefile.pl, it finds the proper location of the MySQL client library (which is /usr/local/mysql/lib for binaries installed from dev.mysql.com): I will use the following settings for compiling and testing: cflags (mysql_config) = -I/usr/local/mysql/include -Os -g -fno-common -fno-strict- aliasing -arch x86_64 embedded (mysql_config) = libs (mysql_config) = -L/usr/local/mysql/lib -lmysqlclient -lpthread mysql_config (guessed ) = mysql_config nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testsocket (default ) = testuser (guessed ) = francois BUT, if you look at the generated Makefile, you will see this instead: LDDLFLAGS = -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib LDFLAGS = -arch x86_64 -L/usr/local/lib In those two lines, replacing /usr/local/lib by /usr/local/mysql/lib will fix it, and tests will pass (tested with mysql-5.5.12-osx10.6-x86_64.dmg).
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18806-1306216851-1016.65462-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com> <rt-3.8.HEAD-18806-1306216851-1016.65462-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18810-1306218538-181.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: francois1+bitcard [...] gmail.com
X-RT-Original-Encoding: utf-8
Content-Length: 263
Download (untitled) / with headers
text/plain 263b
Ah, actually there is one catch with my test above, make test will run on my machine only if I have set this environment variable: DYLD_LIBRARY_PATH=/usr/local/mysql/lib Which in practice isn't working outside my shell session. So no, it's not solved yet :(.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18810-1306218538-181.65462-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com> <rt-3.8.HEAD-18806-1306216851-1016.65462-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-18810-1306218538-181.65462-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18808-1307811750-1436.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 884
Download (untitled) / with headers
text/plain 884b
This command will resolve the lib issue, however it would need to be executed outside of the build process most likely. sudo ln -s /usr/local/mysql/lib/*.dylib . Making that change, removing ALL references to i386 and ppc arch in the Makefile, and correcting the paths as outlined by other responders, allowed it to compile correctly against 64bit version of Perl and MySQL 5.5. All tests passed. This does appear to be a possible issue with XCode4 wanting to allow the build for all arch types. Researching appropriate flags to avoid this issue. On Tue May 24 02:28:59 2011, ubiquitic wrote: Show quoted text
> Ah, actually there is one catch with my test above, make test will run > on my machine only if I > have set this environment variable: > > DYLD_LIBRARY_PATH=/usr/local/mysql/lib > > Which in practice isn't working outside my shell session. > > So no, it's not solved yet :(.
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-18808-1307811750-1436.65462-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com> <rt-3.8.HEAD-18806-1306216851-1016.65462-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-18810-1306218538-181.65462-0-0 [...] rt.cpan.org> <rt-3.8.HEAD-18808-1307811750-1436.65462-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-18811-1307812035-116.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1109
Might help if I post which directory to cd into before running ln cd /usr/local/lib sudo ln -s /usr/local/mysql/lib/*.dylib . On Sat Jun 11 13:02:30 2011, AARONJJ wrote: Show quoted text
> This command will resolve the lib issue, however it would need to be > executed outside of the > build process most likely. > > sudo ln -s /usr/local/mysql/lib/*.dylib . > > Making that change, removing ALL references to i386 and ppc arch in > the Makefile, and > correcting the paths as outlined by other responders, allowed it to > compile correctly against > 64bit version of Perl and MySQL 5.5. All tests passed. > > This does appear to be a possible issue with XCode4 wanting to allow > the build for all arch > types. Researching appropriate flags to avoid this issue. > > On Tue May 24 02:28:59 2011, ubiquitic wrote:
> > Ah, actually there is one catch with my test above, make test will
> run
> > on my machine only if I > > have set this environment variable: > > > > DYLD_LIBRARY_PATH=/usr/local/mysql/lib > > > > Which in practice isn't working outside my shell session. > > > > So no, it's not solved yet :(.
> >
MIME-Version: 1.0
In-Reply-To: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-12654-1325757701-433.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
From: thierryv [...] mac.com
X-RT-Original-Encoding: utf-8
Content-Length: 2087
Got into the same issue with DBD-mysql-4.020 and MacOSX 2.6.8 The issue is in the linking of mysql.bundle with the MySQL dylib file. The path is NOT SET explicitly (- install_name) by the linker. The problem is in the Makefile. Show quoted text
># otool -L blib/arch/auto/DBD/mysql/mysql.bundle
blib/arch/auto/DBD/mysql/mysql.bundle: libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) Even if mysql_config reports the right lib path, that path is not set at the link step. I'm not an expert in Makefiles so I can't propose a definitive fix. However, to "correctly" solve the problem while waiting for a fix in the Makefile.PL WITHOUT resorting into using DYLD_LIBRARY_PATH which can cause trouble elsewhere, you must manually fix the installed shared library names using the install_name_tool utility. It's very simple. After doing the make, and before make test and make install, fix mysql.bundle using install_name_tool and the lib path provided by the mysql_config of your MySQL engine. In my case it's the Sun provided build. Don't use DYLD_LIBRARY_PATH, nor ln -s to fix this problem. It's all within the mysql.bundle file that is not correctly linked. Show quoted text
># mysql_config --libs
-L/usr/local/mysql/lib -lmysqlclient -lpthread #> make Show quoted text
># otool -L blib/arch/auto/DBD/mysql/mysql.bundle
blib/arch/auto/DBD/mysql/mysql.bundle: libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) #> install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib blib/arch/auto/DBD/mysql/mysql.bundle Show quoted text
># otool -L blib/arch/auto/DBD/mysql/mysql.bundle
blib/arch/auto/DBD/mysql/mysql.bundle: /usr/local/mysql/lib/libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11) #> make test ... Result: PASS
MIME-Version: 1.0
In-Reply-To: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <7DEBDAA0-D907-4D74-8983-CE26B50A3882 [...] gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-13622-1484813110-1218.65462-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 54
This is no longer a problem on modern OS X (or macOS).


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.