[CONC-30] Compilation issue with Maria DB Client Library on CentOS 3.9 Created: 2013-05-31  Updated: 2013-06-12  Resolved: 2013-06-12

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Sandhya Sriraj Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

CentOS release 3.9 (Final)



 Description   

MariaDB C Client Revision: 62
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-59)
Kernel version - 2.4.21-50.ELsmp
Commands:
>cmake .
>make

Getting this error when I use make command:

[ 45%] Building C object libmariadb/CMakeFiles/libmariadb.dir/ma_secure.c.o
Linking C shared library libmariadb.so
/usr/bin/ld: /usr/local/lib/libz.a(compress.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libmariadb/libmariadb.so.1] Error 1
make[1]: *** [libmariadb/CMakeFiles/libmariadb.dir/all] Error 2
make: *** [all] Error 2

Yes, CentOS 3.9 is a very very old box. This version is important for us as we support our application running on older kernel versions.

Any thoughts to resolve the issue?



 Comments   
Comment by Sandhya Sriraj [ 2013-06-05 ]

Was it possible that replying to this question could be prioritized? We are stuck with this.

Comment by Georg Richter [ 2013-06-12 ]

Fixed in revision 65

Generated at Thu Feb 08 03:02:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.