Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-18 Thread Hugh McIntyre
C++/C issue maybe? See http://stackoverflow.com/questions/203548/undefined-symbol-gxx-personality-v0-on-link. Or, for example, you could try the one of the following fixes from a related case, depending on whether the code is supposed to be C++ or C:

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-18 Thread Natxo Asenjo
On Tue, Jun 17, 2014 at 8:17 PM, Natxo Asenjo natxo.ase...@gmail.com wrote: hi, following on this saga, with perlbrew I got it installed but: # perl -MDBD::mysql -e 1 Can't load '/opt/perl5//perls/perl-5.20.0/lib/site_perl/5.20.0/i86pc-solaris-thread-multi-64/auto/DBD/mysql/mysql.so' for

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-18 Thread Lauri Tirkkonen
On Wed, Jun 18 2014 22:48:43 +0200, Natxo Asenjo wrote: Is there a 64bit system perl? I do not see it in /usr/bin/amd64/perl like for python2.6. pkg://omnios/runtime/perl-64 -- Lauri Tirkkonen | +358 50 5341376 | lotheac @ IRCnet ___ OmniOS-discuss

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-17 Thread Natxo Asenjo
hi, following on this saga, with perlbrew I got it installed but: # perl -MDBD::mysql -e 1 Can't load '/opt/perl5//perls/perl-5.20.0/lib/site_perl/5.20.0/i86pc-solaris-thread-multi-64/auto/DBD/mysql/mysql.so' for module DBD::mysql: ld.so.1: perl: fatal: relocation error: file

[OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread Natxo Asenjo
hi, I have installed built perl 5.20 using perlbrew and gcc-4.8.1. # perl -v This is perl 5, version 20, subversion 0 (v5.20.0) built for i86pc-solaris-thread-multi- 64int I am using database/mysql-56 from the uulm.mawi repository, which keeps its libraries/include files in

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread John D Groenveld
In message cahbejzxp2e+ubav6forfsdmiuk_f1ahn8bvf9py1qokzdv5...@mail.gmail.com , Natxo Asenjo writes: # perl Makefile.PL --mysql_config=/usr/local/mysql/5.6/bin/mysql_config --cflags=-m32 [snipped] I will use the following settings for compiling and testing: cflags(User's choice) = -m32

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread John D Groenveld
In message CAHBEJzXYkr3cv5oFNLy=yefmcixdu2d6zwxm7-+4knhqjbq...@mail.gmail.com , Natxo Asenjo writes: yes, I thought that at first, but I need that because otherwise I get this: ld: fatal: file dbdimp.o: wrong ELF class: ELFCLASS64 ld: fatal: file processing errors. No output written to

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread Natxo Asenjo
Hi John, On Mon, Jun 16, 2014 at 7:57 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: In message cahbejzxp2e+ubav6forfsdmiuk_f1ahn8bvf9py1qokzdv5...@mail.gmail.com , Natxo Asenjo writes: # perl Makefile.PL --mysql_config=/usr/local/mysql/5.6/bin/mysql_config --cflags=-m32 [snipped]

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread Dan McDonald
On Jun 16, 2014, at 2:10 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: In message CAHBEJzXYkr3cv5oFNLy=yefmcixdu2d6zwxm7-+4knhqjbq...@mail.gmail.com , Natxo Asenjo writes: yes, I thought that at first, but I need that because otherwise I get this: ld: fatal: file dbdimp.o: wrong

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread Natxo Asenjo
Hi Dan, On Mon, Jun 16, 2014 at 7:53 PM, Dan McDonald dan...@omniti.com wrote: On Jun 16, 2014, at 1:39 PM, Natxo Asenjo natxo.ase...@gmail.com wrote: gcc -c -I/opt/perl5/perls/perl-5.20.0/lib/site_perl/5.20.0/i86pc-solaris-thread-multi-64int/auto/DBI -m32 -DDBD_MYSQL_WITH_SSL

Re: [OmniOS-discuss] trouble building DBD::mysql (perl)

2014-06-16 Thread Natxo Asenjo
hi John, On Mon, Jun 16, 2014 at 10:16 PM, John D Groenveld jdg...@elvis.arl.psu.edu wrote: In message cahbejzx7hyzdseofnzpyob9l+e0rh3y37suvtgzd+coyp0o...@mail.gmail.com , Natxo Asenjo writes: bits, so it failed again. So now I tried with the system perl and it worked ;-) RT's make