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

Dan McDonald danmcd at omniti.com
Mon Jun 16 18:17:08 UTC 2014


On Jun 16, 2014, at 2:10 PM, John D Groenveld <jdg117 at elvis.arl.psu.edu> wrote:

> In message <CAHBEJzXYkr3cv5oFNLy=YeFmCixdU2d6zWXM7-+4KnHQjBqkHw at 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
>> blib/arch/auto/DBD/mysql/mysql.so
>> 
>> because:
>> 
>> # /usr/local/mysql/5.6/bin/mysql_config --cflags
>> -I/usr/local/mysql/5.6/include  -m64  -fPIC -g -fabi-version=2
>> -fno-omit-frame-pointer -fno-strict-aliasing
> 
> Rebuild your custom Perl with -m64 or install a set of 32-bit
> MySQL libraries to which you can link your 32-bit DBD::mysql.

The resultant perl will be "built for i86pc-solaris-thread-multi-64".  We do both for the 5.16.1 we ship with stock OmniOS, BTW.

Dan



More information about the OmniOS-discuss mailing list