Skip Menu |
 

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

Report information
The Basics
Id: 103927
Status: rejected
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: arthur [...] acm.org
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-2.698 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="001a113dde921c312605146fe226"
Message-ID: <CAGnkfw1PE_OuOMDmeekJpnwodJQp2U4czwQ1HiwpCgW7b=dSgw [...] mail.gmail.com>
Reply-To: arthur [...] acm.org
X-Received: by 10.202.191.6 with SMTP id p6mr1463214oif.109.1429845650975; Thu, 23 Apr 2015 20:20:50 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.698
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id BA73824048A for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Thu, 23 Apr 2015 23:21:02 -0400 (EDT)
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 9iaaoxMxiKv6 for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Thu, 23 Apr 2015 23:21:00 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 9C01B24047C for <bug-DBD-mysql [...] rt.cpan.org>; Thu, 23 Apr 2015 23:21:00 -0400 (EDT)
Received: (qmail 29879 invoked by alias); 24 Apr 2015 03:20:59 -0000
Received: from mail-oi0-f41.google.com (HELO mail-oi0-f41.google.com) (209.85.218.41) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 23 Apr 2015 20:20:54 -0700
Received: by oign205 with SMTP id n205so30791177oig.2 for <bug-DBD-mysql [...] rt.cpan.org>; Thu, 23 Apr 2015 20:20:51 -0700 (PDT)
Received: by 10.202.231.65 with HTTP; Thu, 23 Apr 2015 20:20:50 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
Subject: Error in compiling DBD::mysql
Return-Path: <arthur.goldstein [...] gmail.com>
X-RT-Mail-Extension: dbd-mysql
X-Original-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=r79l2b2cxA8vZWxTwQtfHt8zg31mY6/m3MWApC98iNY=; b=O5087/Ulx5aGqlbyeEar7bCDYuE7CoQbx9WezOCQbDctFvN7NyXEyFqsyLH1lvzTBb pdz/Moo5Anf81h3yGOaTToxx3RomzEBWfROPhorlDsEMPCrSsmTEiw+X3NZD3SH/SSNl V+s/TLh6zV8oAzqGXMkZ+1PiTFeRH7mjT24NU04EHt7pTMApz6RXJGGRxcfD0JeP3KWM kYIcjLOVk3RD235zx2lWM9An1bWBtJOZay35VCBweakeuiIRecXbWjCbknv9MAeXIlUB /FD6niQOI8f80MqZXkKPEmxJk2ZDxrIDu8mtsAvoxP+RjHID3TYKDCiTpITutC5mF1h3 ej0A==
Date: Thu, 23 Apr 2015 23:20:50 -0400
X-Spam-Level:
To: bug-DBD-mysql [...] rt.cpan.org
From: Arthur Goldstein <arthur.goldstein [...] gmail.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1273
Download (untitled) / with headers
text/plain 1.2k
Please let me know how I can install DBD::mysql. I get an error, relevant cpan output at end of message, when trying to install DBD::mysql version 4.031 on my mac (OS X Yosemite Version 10.10.3). Some research suggests that this is because of a gcc flag option that does not apply to Apple's c compiler. There was a work around for similar errors that may no longer work, setting the environment variable ARCHFLAGS=Wno-error=unused-command-line-argument-hard-error-in-future easy_install ( http://bruteforce.gr/bypassing-clang-error-unknown-argument.html ) Thanks, Arthur Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs cc -c -I/Applications/AMPPS/perl/lib/site_perl/5.20.1/darwin-2level/auto/DBI -I/Applications/AMPPS/mysql/include -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3 -DVERSION=\"4.031\" -DXS_VERSION=\"4.031\" "-I/Applications/AMPPS/perl/lib/5.20.1/darwin-2level/CORE" dbdimp.c clang: error: unknown argument: '-fabi-version=2' make: *** [dbdimp.o] Error 1 CAPTTOFU/DBD-mysql-4.031.tar.gz make -- NOT OK Failed during this command: CAPTTOFU/DBD-mysql-4.031.tar.gz : make NO
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1605
MIME-Version: 1.0
X-Spam-Status: No, score=-2.597 tagged_above=-99.9 required=10 tests=[AC_DIV_BONANZA=0.001, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
X-RT-Interface: API
X-Virus-Checked: Checked
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Received: by 10.202.191.6 with SMTP id p6mr23844917oif.109.1430886810192; Tue, 05 May 2015 21:33:30 -0700 (PDT)
Message-ID: <CAGnkfw3GAAZn5TRThriVNSgQ6gU89MbZfNq+oxi8HLtkTTTdhQ [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary="001a113dde92093da60515624c31"
X-Spam-Score: -2.597
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 66DAA2403C8 for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Wed, 6 May 2015 00:33:47 -0400 (EDT)
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 BQ6NIAQXHKcT for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Wed, 6 May 2015 00:33:45 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 72F322400A7 for <bug-DBD-mysql [...] rt.cpan.org>; Wed, 6 May 2015 00:33:45 -0400 (EDT)
Received: (qmail 23522 invoked by alias); 6 May 2015 04:33:44 -0000
Received: from mail-ob0-f176.google.com (HELO mail-ob0-f176.google.com) (209.85.214.176) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 05 May 2015 21:33:41 -0700
Received: by obfe9 with SMTP id e9so154652648obf.1 for <bug-DBD-mysql [...] rt.cpan.org>; Tue, 05 May 2015 21:33:30 -0700 (PDT)
Received: by 10.202.96.134 with HTTP; Tue, 5 May 2015 21:33:30 -0700 (PDT)
Delivered-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #103927] AutoReply: Error in compiling DBD::mysql
Return-Path: <arthur.goldstein [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=hz4RP/CAc+oKHbW5izUQmiuXy7AVWQohCFkVVKV+CEA=; b=uSpPqwjXeiDzmUz0g1cI6nNoP9iPZfHn7x8TvFNB5knOdTLzdimlVnXYk0K5COgJeK 4Vh+VlWIXhqTh+ipxqGG/3wMHrzPSRaNnIjqsGzk3vctjZRoDJAhPbhFRcgtVOYrHM0g cmBPHPlbpDj0OcKYzb0yj79iZkzJ1yivwCEwLIrWjUeJojHGevwRxXmBujeUUiNZxyPC 6j3lt2wOTxzN/4f5CMDllAYhVNDSFfv7YWuen6SW6Rb55NJeYN7US2wTx6WrhwZ9KbtC IDBpD5a8GYY4nuouBxJyqAsz1mgVE5Gu1YJaNAfoL5mbdY3CCfOCg6cuojdmmutuKn+v t30g==
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
X-RT-Mail-Extension: dbd-mysql
X-Google-Sender-Auth: K8GMYlsFCg6wxlMORrwUQVSCoD8
Sender: arthur.goldstein [...] gmail.com
Date: Wed, 6 May 2015 00:33:30 -0400
X-Spam-Level:
To: bug-DBD-mysql [...] rt.cpan.org
From: Arthur Goldstein <arthur [...] acm.org>
RT-Message-ID: <rt-4.0.18-2850-1430886828-1296.103927-0-0 [...] rt.cpan.org>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 2960
Download (untitled) / with headers
text/plain 2.8k
I resolved this. The problem was that the AMPPS (http://www.ampps.com/) comes with a pre-compiled mysql which is not compatible with the "new" Apple C compiler. More specifically: AMPPS apparently was compiled with gcc on mysql . AMPSS does not include DBD::mysql in its distribution however. When DBD::mysql is installed, part needs to be compiled and the process checks the "mysql_config --ccflags" to determine which flags to pass to the c compiler, these were set when AMPSS was compiled with gcc presumably. Mac OS X Yosemite uses the xcode c compiler which does not take the same flags as the gcc compiler. My workaround was to not use AMPSS and install mysql and DBD::mysql myself. I will report this on the AMPSS website. Thanks, Arthur On Thu, Apr 23, 2015 at 11:21 PM, Bugs in DBD-mysql via RT < bug-DBD-mysql@rt.cpan.org> wrote: Show quoted text
> > Greetings, > > This message has been automatically generated in response to the > creation of a trouble ticket regarding: > "Error in compiling DBD::mysql", > a summary of which appears below. > > There is no need to reply to this message right now. Your ticket has been > assigned an ID of [rt.cpan.org #103927]. Your ticket is accessible > on the web at: > > https://rt.cpan.org/Ticket/Display.html?id=103927 > > Please include the string: > > [rt.cpan.org #103927] > > in the subject line of all future correspondence about this issue. To do > so, > you may reply to this message. > > Thank you, > bug-DBD-mysql@rt.cpan.org > > ------------------------------------------------------------------------- > Please let me know how I can install DBD::mysql. I get an error, relevant > cpan output at end of message, when trying to install DBD::mysql version > 4.031 on my mac (OS X Yosemite Version 10.10.3). > > Some research suggests that this is because of a gcc flag option that does > not apply to Apple's c compiler. There was a work around for similar > errors that may no longer work, setting the environment variable > ARCHFLAGS=Wno-error=unused-command-line-argument-hard-error-in-future > easy_install ( > http://bruteforce.gr/bypassing-clang-error-unknown-argument.html ) > > Thanks, > Arthur > > > Running Mkbootstrap for DBD::mysql () > chmod 644 mysql.bs > cc -c > -I/Applications/AMPPS/perl/lib/site_perl/5.20.1/darwin-2level/auto/DBI > -I/Applications/AMPPS/mysql/include -g -fabi-version=2 > -fno-omit-frame-pointer -fno-strict-aliasing -DDBD_MYSQL_INSERT_ID_IS_GOOD > -g -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector > -I/usr/local/include -O3 -DVERSION=\"4.031\" -DXS_VERSION=\"4.031\" > "-I/Applications/AMPPS/perl/lib/5.20.1/darwin-2level/CORE" dbdimp.c > clang: error: unknown argument: '-fabi-version=2' > make: *** [dbdimp.o] Error 1 > CAPTTOFU/DBD-mysql-4.031.tar.gz > make -- NOT OK > Failed during this command: > CAPTTOFU/DBD-mysql-4.031.tar.gz : make NO >
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 4191
MIME-Version: 1.0
In-Reply-To: <CAGnkfw1PE_OuOMDmeekJpnwodJQp2U4czwQ1HiwpCgW7b=dSgw [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CAGnkfw1PE_OuOMDmeekJpnwodJQp2U4czwQ1HiwpCgW7b=dSgw [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-20562-1430897752-1990.103927-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: 37
Thanks for your feedback! -- Michiel


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.