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
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
Download patchfile
application/octet-stream 258b

Message body not shown because it is not plain text.

RT-Send-CC: CAPTTOFU [...] cpan.org
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.
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.
Subject: Re: [rt.cpan.org #102717] "undefined symbol" error on solaris
Date: Tue, 24 Mar 2015 11:29:20 +0100 (MET)
To: bug-DBD-mysql [...] rt.cpan.org
From: Friedrich Haubensak <hsk [...] fli-leibniz.de>
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/
RT-Send-CC: pali [...] cpan.org
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