<div dir="ltr">Hi Dan,<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 16, 2014 at 7:53 PM, Dan McDonald <span dir="ltr"><<a href="mailto:danmcd@omniti.com" target="_blank">danmcd@omniti.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br>
On Jun 16, 2014, at 1:39 PM, Natxo Asenjo <<a href="mailto:natxo.asenjo@gmail.com" target="_blank">natxo.asenjo@gmail.com</a>> wrote:<br>
<br>
><br>
> 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 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -DPTR_IS_LONG -fno-stack-protector -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -O   -DVERSION=\"4.027\" -DXS_VERSION=\"4.027\" -fPIC "-I/opt/perl5/perls/perl-5.20.0/lib/5.20.0/i86pc-solaris-thread-multi-64int/CORE"   dbdimp.c<br>


> In file included from dbdimp.c:20:0:<br>
> dbdimp.h:21:49: fatal error: mysql.h: No such file or directory<br>
>  #include <mysql.h>  /* Comes with MySQL-devel */<br>
<br>
</div>I don't see a -I in this gcc path that would point you at where mysql.h lives.  You said earlier:<br>
<div><br>
> I am using database/mysql-56 from the uulm.mawi repository, which keeps its libraries/include files in /usr/local/mysql/5.6/{lib/include} .<br>
<br>
</div>I don't see -I /usr/local/mysql/5.6/include in your gcc arguments above.<br>
<span></span></blockquote><div><br></div><div>absolutely right. For what it's worth, I could set the include path in the --cflags like this<br><br></div><div>perl Makefile.PL --cflags="-I/usr/local/mysql/5.6/include  -m32  -fPIC -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing" <br>
<br></div><div>but then one of  the shared libraries of the mysql package was only 64 bits, so it failed again. So now I tried with the system perl and it worked ;-)<br><br></div><div>Thanks for the inputs.<br><br></div><div>
-- <br></div><div>regards,<br></div><div>natxo<br></div></div></div></div>