Skip Menu |
 

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

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

People
Owner: CAPTTOFU [...] cpan.org
Requestors: hsk [...] fli-leibniz.de
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 4.031
Fixed in: 4.032_03



Subject: "undefined symbol" error on solaris
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
X-RT-Interface: Web
Message-ID: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1426158358-27792-6"
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
Content-Length: 496
Download (untitled) / with headers
text/plain 496b
compiling and linking DBD-mysql-4.031 on solaris10 using sunstudio12 cc and perl-5.20.2 / mysql-5.5.42 succeeds, but loading that module fails with error "undefined symbol: MIN" DBD-mysql-4.029 worked commit dadca83 on jan 25, 2015, introduced two calls of MIN(....) in dbdimp.c the "#ifdef WIN32", regarding MIN, that was added lateron, somehow should be extended. please consider the attached patch that worked for me, i.e. test suite (with patch as suggested in github pull #35) succeded.
Subject: patchfile
MIME-Version: 1.0
Content-Type: application/octet-stream; name="patchfile"
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline; filename="patchfile"
Content-Transfer-Encoding: base64
Content-Length: 258
Download patchfile
application/octet-stream 258b

Message body not shown because it is not plain text.

MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-30928-1426192612-1418.102717-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: CAPTTOFU [...] cpan.org
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 632
Download (untitled) / with headers
text/plain 632b
Hi Patrick, Can you please take a look? -- Michiel On Thu Mar 12 07:05:58 2015, hsk@fli-leibniz.de wrote: Show quoted text
> compiling and linking DBD-mysql-4.031 on solaris10 using sunstudio12 > cc and perl-5.20.2 / mysql-5.5.42 succeeds, but loading that module > fails with error "undefined symbol: MIN" > > DBD-mysql-4.029 worked > > commit dadca83 on jan 25, 2015, introduced two calls of MIN(....) in > dbdimp.c > > the "#ifdef WIN32", regarding MIN, that was added lateron, somehow > should be extended. please consider the attached patch that worked > for me, i.e. test suite (with patch as suggested in github pull #35) > succeded.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-20234-1427121520-1754.102717-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: 867
Download (untitled) / with headers
text/plain 867b
Hi there! So, I spent this weekend trying to get a working Solaris setup to test this. What kind of setup do you have? Is this sparc or intel? I might ask you how to reproduce your environment for my own testing and if you know of a good vmware image for solaris 10. Regards, Patrick On Thu Mar 12 07:05:58 2015, hsk@fli-leibniz.de wrote: Show quoted text
> compiling and linking DBD-mysql-4.031 on solaris10 using sunstudio12 > cc and perl-5.20.2 / mysql-5.5.42 succeeds, but loading that module > fails with error "undefined symbol: MIN" > > DBD-mysql-4.029 worked > > commit dadca83 on jan 25, 2015, introduced two calls of MIN(....) in > dbdimp.c > > the "#ifdef WIN32", regarding MIN, that was added lateron, somehow > should be extended. please consider the attached patch that worked > for me, i.e. test suite (with patch as suggested in github pull #35) > succeded.
MIME-Version: 1.0
X-Spam-Status: No, score=-1.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9] autolearn=ham
In-Reply-To: <rt-4.0.18-20234-1427121520-695.102717-6-0 [...] rt.cpan.org>
X-Mailer: ELM [version 2.5 PL8]
X-Spam-Flag: NO
X-RT-Interface: API
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <201503241029.t2OATK5j5812347 [...] tanguy.imb-jena.de>
Reply-To: hsk [...] fli-leibniz.de
content-type: text/plain; charset="utf-8"
Return-Receipt-To: hsk [...] fli-leibniz.de
X-RT-Original-Encoding: utf-8
X-Spam-Score: -1.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 0B3402402C3 for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Tue, 24 Mar 2015 06:29:33 -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 tkHTsoE2jW-8 for <cpan-bug+DBD-mysql [...] hipster.bestpractical.com>; Tue, 24 Mar 2015 06:29:30 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 7D3A9240067 for <bug-DBD-mysql [...] rt.cpan.org>; Tue, 24 Mar 2015 06:29:29 -0400 (EDT)
Received: (qmail 16763 invoked by alias); 24 Mar 2015 10:29:28 -0000
Received: from tanguy.imb-jena.de (HELO tanguy.imb-jena.de) (192.124.248.32) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 24 Mar 2015 03:29:25 -0700
Received: from tanguy.imb-jena.de (localhost [127.0.0.1]) by tanguy.imb-jena.de (SGI-8.12.11.20060308/8.12.11) with ESMTP id t2OATKkZ5825061 for <bug-DBD-mysql [...] rt.cpan.org>; Tue, 24 Mar 2015 11:29:20 +0100 (MET)
Received: (from hsk [...] localhost) by tanguy.imb-jena.de (SGI-8.12.11.20060308/8.12.11/Submit) id t2OATK5j5812347 for bug-DBD-mysql [...] rt.cpan.org; Tue, 24 Mar 2015 11:29:20 +0100 (MET)
Delivered-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #102717] "undefined symbol" error on solaris
Return-Path: <hsk [...] fli-leibniz.de>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: cpan-bug+DBD-mysql [...] hipster.bestpractical.com
X-RT-Mail-Extension: dbd-mysql
Date: Tue, 24 Mar 2015 11:29:20 +0100 (MET)
X-Spam-Level:
To: bug-DBD-mysql [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Friedrich Haubensak <hsk [...] fli-leibniz.de>
RT-Message-ID: <rt-4.0.18-3493-1427192974-1827.102717-0-0 [...] rt.cpan.org>
Content-Length: 1826
Download (untitled) / with headers
text/plain 1.7k
dear patrick, thanks for your respnse. Patrick Galbraith via RT thus spoketh: Show quoted text
> So, I spent this weekend trying to get a working Solaris setup to test > this. What kind of setup do you have? Is this sparc or intel? I might > ask you how to reproduce your environment for my own testing and if you > know of a good vmware image for solaris 10.
they are sparc systems running solaris 10 and using the sun compilers ("sun studio", formerly sunpro or spro, now "oracle solaris studio" :-) at version 12.1. (i did not bother for an upgrade to 12.4, as my 12.1 installation is reasonably patched, and i have no longer access to patches - that might be necessary to get 12.4 run properly.) if you want to set up a virtual machine for this, you may have to go for intel sparc - but this should behave reasonably same as far as it does not get into the intracacies of hardware access. sorry, i can't give hints for an image. you can download the software from www.oracle.com/us/products/servers-storage/solaris/solaris10/ and www.oracle.com/us/products/servers-storage/solaris/studio/, after having registered, and use it "for developing your applications". i'm ready for further questions :-) kind regards, fritz ps. for the case in question, you could stick to, e.g., harbison / steele, C - a reference manual, 5th ed., which documents c99 and it's standard library, and where MIN() is not mentioned (nor is min()), and so something like #ifndef MIN / #define MIN ... / #endif should be in the code anyway. -- Friedrich Haubensak hsk@fli-leibniz.de | Science is true! Leibniz Institute for Age Research | Don't be mislead by facts. - Fritz Lipmann Institute - +----------------------------- Beutenbergstrasse 11, D-07745 Jena phone +49-3641-65-6202 | fax -6210 | http://www.fli-leibniz.de/
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-27792-1426158358-1835.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-15109-1479645808-1437.102717-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: pali [...] cpan.org
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 686
Download (untitled) / with headers
text/plain 686b
On Štv mar 12 07:05:58 2015, hsk@fli-leibniz.de wrote: Show quoted text
> compiling and linking DBD-mysql-4.031 on solaris10 using sunstudio12 > cc and perl-5.20.2 / mysql-5.5.42 succeeds, but loading that module > fails with error "undefined symbol: MIN" > > DBD-mysql-4.029 worked > > commit dadca83 on jan 25, 2015, introduced two calls of MIN(....) in > dbdimp.c > > the "#ifdef WIN32", regarding MIN, that was added lateron, somehow > should be extended. please consider the attached patch that worked > for me, i.e. test suite (with patch as suggested in github pull #35) > succeded.
It is already fixed: https://github.com/perl5-dbi/DBD-mysql/commit/f1e6168136af44a06f0c10cc95a0cf3b6ffbd58f


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.