bacula and mysql

Frank Schima macsforever2000 at macports.org
Wed Jan 8 15:09:00 PST 2014


Nevermind. cal on IRC gave me the easy solution….

    configure.cppflags-append   -I${prefix}/include/mysql55/mysql


Cheers!
Frank

On Jan 8, 2014, at 3:52 PM, Frank Schima <macsforever2000 at macports.org> wrote:

> I’m attempting to fix the bacula port to build with mysql5 support [1]. I patched the configure file to find mysql5, but later on, it fails to find mysql.h when compiling. Here is the error snippet. 
> 
> :info:build Making libbaccats.la ...
> :info:build /opt/local/var/macports/build/_opt_mports_trunk_dports_sysutils_bacula/bacula/work/bacula-5.2.13/libtool --silent --tag=CXX --mode=link /usr/bin/clang++ -D_BDB_PRIV_INTERFACE_  -arch x86_64 -o libbaccats.la cats_dummy.lo -export-dynamic -rpath /opt/local/lib -release 5.2.13
> :info:build mysql.c:44:10: fatal error: 'mysql.h' file not found
> :info:build #include <mysql.h>
> :info:build          ^
> :info:build 1 error generated.
> :info:build make[1]: *** [mysql.lo] Error 1
> 
> Any suggestions of how to fix this? It completes but then fails when checking for linking errors.
> 
> Could not open /opt/local/lib/libbaccats-5.2.13.dylib: Error opening or reading file (referenced from /opt/local/sbin/bacula-dir)
> 
> 
> Cheers!
> Frank
> 
> [1] <https://trac.macports.org/ticket/42036>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-dev/attachments/20140108/ca253449/attachment.html>


More information about the macports-dev mailing list