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

Natxo Asenjo natxo.asenjo at gmail.com
Mon Jun 16 18:06:28 UTC 2014


Hi John,

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

> In message <
> CAHBEJzXP2E+uBAv6forfSdmiuK_F1ahn8bvF9pY1QOKZdv5v-w at 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
>
> My WAG is that your --cflags is overriding "mysql_config --cflags".
> Remove yours.
>
>
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


> Happy hacking,
>

I try to ;-)

Thanks,

-- 
groet,
natxo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://omniosce.org/ml-archive/attachments/20140616/8cacefc5/attachment.html>


More information about the OmniOS-discuss mailing list