[MDEV-7561] Cannot compile CONNECT engine in CentOS 6 Created: 2015-02-08  Updated: 2015-02-10  Resolved: 2015-02-10

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.0.16
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Floren Munteanu Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None
Environment:

CentOS 6 x86_64



 Description   

I tried to compile MariaDB 10.0.16 in CentOS and everything is OK except CONNECT plugin refuses to build. Is this related to the missing linux-vdso.so.1 library present in 3.x kernel or a specific ODBC version?

# ldd /usr/lib64/mysql/plugin/ha_connect.so
	linux-vdso.so.1 =>  (0x00007fffeaf62000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7e158e4000)
	libz.so.1 => /lib64/libz.so.1 (0x00007f7e156ce000)
	libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f7e1537b000)
	libodbc.so.2 => /usr/lib64/libodbc.so.2 (0x00007f7e15114000)
	libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f7e14e0e000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f7e14b89000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f7e147f5000)
	/lib64/ld-linux-x86-64.so.2 (0x00000039dd000000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f7e145f1000)
	libltdl.so.7 => /usr/lib64/libltdl.so.7 (0x00007f7e143e7000)
	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f7e141d1000)

All other libraries are present in my build system.

# uname -a
Linux apollo 2.6.32-504.8.1.el6.x86_64 #1 SMP Wed Jan 28 21:11:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q unixODBC-devel
unixODBC-devel-2.2.14-14.el6.x86_64

As a side note, I noticed the /etc//my.cnf.d/oqgraph.cnf file does not exist by default. I had to create it manually during build time.

[mariadb]
plugin-load-add = ha_oqgraph.so



 Comments   
Comment by Elena Stepanova [ 2015-02-08 ]

Please paste the actual error you are getting.
Here is our build log of 10.0.16 on CentOS 6 x86_64, as you can see it built fine, connect engine included.
http://buildbot.askmonty.org/buildbot/builders/kvm-rpm-centos6-amd64/builds/2254/steps/compile/logs/stdio

Comment by Elena Stepanova [ 2015-02-10 ]

Hi,

With -DWITH_MAX=ON which you have among your cmake options, you have CONNECT engine linked statically. If you start the server and check SHOW ENGINES, it should already be there.

Comment by Floren Munteanu [ 2015-02-10 ]

Hi Elena,

Compiling without DWITH_MAX does address the issue, thank you for the fix. However, I miss the related configuration files (i.e. connect.cnf), they are not created by default. In your build, are they created by default? Thank you for helping me solve this issue.

Comment by Elena Stepanova [ 2015-02-10 ]

To have it created, you should run cmake with -DRPM=centos6.

Comment by Floren Munteanu [ 2015-02-10 ]

Thank you for the great support, everything is resolved.

Generated at Thu Feb 08 07:20:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.