[MXS-694] Build failure on FreeBSD Created: 2016-04-26  Updated: 2017-07-27  Resolved: 2016-06-01

Status: Closed
Project: MariaDB MaxScale
Component/s: build
Affects Version/s: 1.4.1
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Erik Cederstrand Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: freebsd
Environment:

FreeBSD 10.3-RELEASE #0 r297264


Issue Links:
Relates
relates to MXS-1334 Build on FreeBSD 11 looks for libdl -... Closed

 Description   

I'm trying to build and install MaxScale on FreeBSD. I have pkg installed

cmake bison flex pcre2 linux_base-f10

and copied over libaio libraries from a Linux system (MariaDB on FreeBSD gets around this somehow). I have configured using

$ cmake -DHAVE_LIBAIO=/compat/linux/usr/lib -DHAVE_LIBDL=/compat/linux/usr/lib -DWITH_SCRIPTS=NO ..

which completed successfully. But when I try to build, I get this build failure in query_classifier:

$ make
[  4%] Built target connector-c
[  5%] Building CXX object query_classifier/qc_mysqlembedded/CMakeFiles/qc_mysqlembedded.dir/qc_mysqlembedded.cc.o
/home/erik/MaxScale/query_classifier/qc_mysqlembedded/qc_mysqlembedded.cc:38:10: fatal error: 'my_base.h' file not found
#include <my_base.h>
         ^
1 error generated.
*** Error code 1
 
Stop.
make[2]: stopped in /usr/home/erik/MaxScale/build
*** Error code 1
 
Stop.
make[1]: stopped in /usr/home/erik/MaxScale/build
*** Error code 1
 
Stop.
make: stopped in /usr/home/erik/MaxScale/build

What am I doing wrong?



 Comments   
Comment by markus makela [ 2016-04-26 ]

You don't seem to have the MariaDB development packages installed. If you can build the MariaDB server and the embedded library component, you should be able to use the files and libraries generated by it. I'd recommend reading the building from source document on the KB.

Comment by markus makela [ 2016-06-01 ]

FreeBSD is not a supported platform and the build failure is not related to MaxScale.

Comment by Roland Giesler [ 2017-07-26 ]

Is there any update on this matter? We run FreeBSD based servers at a small community bank (that wishes to grow of course) and MariaDB is part of the base services. However, we are loathe to install MaxScale on a Linux platform, so we're trying to compile this on FreeBSD. FreeBSD with ZFS really hold a lot of advantages for us, among others being security, stability and the advanced features of ZFS, so even if MariaDB corporation doesn't support FreeBSD officially, some pointers and assistance would be great!

Comment by markus makela [ 2017-07-27 ]

With the work that has gone into MaxScale 2.0 and the newer versions, I believe this will be easier to achieve. The 2.0 version no longer uses the embedded MariaDB server to parse the queries but we have not tester whether it works. I would suggest that you try to compile MaxScale from the 2.1 branch and see if it works. If not, you can open bug reports and/or pull requests to fix these issues.

Generated at Thu Feb 08 04:01:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.