MySQL Forums
Forum List  »  Install & Repo

Error installing php 5 with mysql support on rhel 5
Posted by: cal jedi
Date: October 25, 2007 08:39AM

i have mysql 5 installed on: /usr/local/mysql

to install php 5.2.4, i ran configure as follows:
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config

that goes through fine. but when i run make, i get this error message:

/usr/bin/ld: /usr/local/mysql/lib//mysql/libmysqlclient.a(my_init.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

I recompiled mysql with --with-pic flag, but that did not fix the problem.

i've verified that the /usr/local/mysql/lib//mysql/libmysqlclient.a file is present. also ran:

file /usr/local/mysql/lib//mysql/libmysqlclient.a

which generates this output:
/usr/local/mysql/lib//mysql/libmysqlclient.a: current ar archive

also ran:
objdump -a /usr/local/mysql/lib/mysql/libmysqlclient.a
which generates this output:
In archive /usr/local/mysql/lib/mysql/libmysqlclient.a:

libmysql.o: file format elf64-x86-64
rw-r--r-- 0/0 61544 Oct 25 03:43 2007 libmysql.o


password.o: file format elf64-x86-64
rw-r--r-- 0/0 7440 Oct 25 03:43 2007 password.o


manager.o: file format elf64-x86-64
rw-r--r-- 0/0 5936 Oct 25 03:43 2007 manager.o


get_password.o: file format elf64-x86-64
rw-r--r-- 0/0 1752 Oct 25 03:43 2007 get_password.o


errmsg.o: file format elf64-x86-64
rw-r--r-- 0/0 6608 Oct 25 03:43 2007 errmsg.o


my_init.o: file format elf64-x86-64
rw-r--r-- 0/0 4512 Oct 25 00:22 2007 my_init.o


my_static.o: file format elf64-x86-64
rw-r--r-- 0/0 3192 Oct 25 00:22 2007 my_static.o

my_malloc.o: file format elf64-x86-64
rw-r--r-- 0/0 2928 Oct 25 00:22 2007 my_malloc.o


my_realloc.o: file format elf64-x86-64
rw-r--r-- 0/0 1840 Oct 25 00:22 2007 my_realloc.o


my_create.o: file format elf64-x86-64
rw-r--r-- 0/0 1552 Oct 25 00:22 2007 my_create.o


my_delete.o: file format elf64-x86-64
rw-r--r-- 0/0 1648 Oct 25 00:22 2007 my_delete.o


mf_tempfile.o: file format elf64-x86-64
rw-r--r-- 0/0 2528 Oct 25 00:22 2007 mf_tempfile.o


my_open.o: file format elf64-x86-64
rw-r--r-- 0/0 3240 Oct 25 00:22 2007 my_open.o

my_file.o: file format elf64-x86-64
rw-r--r-- 0/0 2880 Oct 25 00:22 2007 my_file.o

my_read.o: file format elf64-x86-64
rw-r--r-- 0/0 2304 Oct 25 00:22 2007 my_read.o
my_write.o: file format elf64-x86-64
rw-r--r-- 0/0 2064 Oct 25 00:22 2007 my_write.o


errors.o: file format elf64-x86-64
rw-r--r-- 0/0 3920 Oct 25 00:22 2007 errors.o


my_error.o: file format elf64-x86-64
rw-r--r-- 0/0 3744 Oct 25 00:22 2007 my_error.o


my_getwd.o: file format elf64-x86-64
rw-r--r-- 0/0 3152 Oct 25 00:22 2007 my_getwd.o


my_div.o: file format elf64-x86-64
rw-r--r-- 0/0 1640 Oct 25 00:22 2007 my_div.o


mf_pack.o: file format elf64-x86-64
rw-r--r-- 0/0 5704 Oct 25 00:22 2007 mf_pack.o


my_messnc.o: file format elf64-x86-64
rw-r--r-- 0/0 2168 Oct 25 00:22 2007 my_messnc.o


mf_dirname.o: file format elf64-x86-64
rw-r--r-- 0/0 1832 Oct 25 00:22 2007 mf_dirname.o
mf_fn_ext.o: file format elf64-x86-64
rw-r--r-- 0/0 1544 Oct 25 00:22 2007 mf_fn_ext.o

mf_wcomp.o: file format elf64-x86-64
rw-r--r-- 0/0 2056 Oct 25 00:22 2007 mf_wcomp.o

typelib.o: file format elf64-x86-64
rw-r--r-- 0/0 4304 Oct 25 00:22 2007 typelib.o

safemalloc.o: file format elf64-x86-64
rw-r--r-- 0/0 9608 Oct 25 00:22 2007 safemalloc.o


my_alloc.o: file format elf64-x86-64
rw-r--r-- 0/0 5496 Oct 25 00:22 2007 my_alloc.o

mf_format.o: file format elf64-x86-64
rw-r--r-- 0/0 3336 Oct 25 00:22 2007 mf_format.o

mf_path.o: file format elf64-x86-64
rw-r--r-- 0/0 3056 Oct 25 00:22 2007 mf_path.o

mf_unixpath.o: file format elf64-x86-64
rw-r--r-- 0/0 1232 Oct 25 00:22 2007 mf_unixpath.o
my_fopen.o: file format elf64-x86-64
rw-r--r-- 0/0 3840 Oct 25 00:22 2007 my_fopen.o

my_symlink.o: file format elf64-x86-64
rw-r--r-- 0/0 2696 Oct 25 00:22 2007 my_symlink.o

my_fstream.o: file format elf64-x86-64
rw-r--r-- 0/0 3152 Oct 25 00:22 2007 my_fstream.o

mf_loadpath.o: file format elf64-x86-64
rw-r--r-- 0/0 2136 Oct 25 00:22 2007 mf_loadpath.o

my_pthread.o: file format elf64-x86-64
rw-r--r-- 0/0 942 Oct 25 00:22 2007 my_pthread.o

my_thr_init.o: file format elf64-x86-64
rw-r--r-- 0/0 943 Oct 25 00:22 2007 my_thr_init.o

thr_mutex.o: file format elf64-x86-64
rw-r--r-- 0/0 941 Oct 25 00:22 2007 thr_mutex.o

mulalloc.o: file format elf64-x86-64
rw-r--r-- 0/0 1704 Oct 25 00:22 2007 mulalloc.o

string.o: file format elf64-x86-64
rw-r--r-- 0/0 4640 Oct 25 00:22 2007 string.o

default.o: file format elf64-x86-64
rw-r--r-- 0/0 15864 Oct 25 00:22 2007 default.o

default_modify.o: file format elf64-x86-64
rw-r--r-- 0/0 3952 Oct 25 00:22 2007 default_modify.o

my_compress.o: file format elf64-x86-64
rw-r--r-- 0/0 4024 Oct 25 00:22 2007 my_compress.o

array.o: file format elf64-x86-64
rw-r--r-- 0/0 4080 Oct 25 00:22 2007 array.o

my_once.o: file format elf64-x86-64
rw-r--r-- 0/0 2776 Oct 25 00:22 2007 my_once.o

list.o: file format elf64-x86-64
rw-r--r-- 0/0 2384 Oct 25 00:22 2007 list.o
my_net.o: file format elf64-x86-64
rw-r--r-- 0/0 1416 Oct 25 00:22 2007 my_net.o

charset.o: file format elf64-x86-64
rw-r--r-- 0/0 12064 Oct 25 00:22 2007 charset.o

charset-def.o: file format elf64-x86-64
rw-r--r-- 0/0 4376 Oct 25 00:22 2007 charset-def.o

hash.o: file format elf64-x86-64
rw-r--r-- 0/0 7408 Oct 25 00:22 2007 hash.o

mf_iocache.o: file format elf64-x86-64
rw-r--r-- 0/0 8384 Oct 25 00:22 2007 mf_iocache.o

mf_iocache2.o: file format elf64-x86-64
rw-r--r-- 0/0 5864 Oct 25 00:22 2007 mf_iocache2.o

my_seek.o: file format elf64-x86-64
rw-r--r-- 0/0 1712 Oct 25 00:22 2007 my_seek.o

my_sleep.o: file format elf64-x86-64
rw-r--r-- 0/0 1400 Oct 25 00:22 2007 my_sleep.o
my_pread.o: file format elf64-x86-64
rw-r--r-- 0/0 2640 Oct 25 00:22 2007 my_pread.o

mf_cache.o: file format elf64-x86-64
rw-r--r-- 0/0 2424 Oct 25 00:22 2007 mf_cache.o

md5.o: file format elf64-x86-64
rw-r--r-- 0/0 4600 Oct 25 00:22 2007 md5.o

sha1.o: file format elf64-x86-64
rw-r--r-- 0/0 5456 Oct 25 00:22 2007 sha1.o

my_getopt.o: file format elf64-x86-64
rw-r--r-- 0/0 20200 Oct 25 00:22 2007 my_getopt.o

my_gethostbyname.o: file format elf64-x86-64
rw-r--r-- 0/0 1400 Oct 25 00:22 2007 my_gethostbyname.o

my_port.o: file format elf64-x86-64
rw-r--r-- 0/0 939 Oct 25 00:22 2007 my_port.o

my_rename.o: file format elf64-x86-64
rw-r--r-- 0/0 1648 Oct 25 00:22 2007 my_rename.o
my_chsize.o: file format elf64-x86-64
rw-r--r-- 0/0 2080 Oct 25 00:22 2007 my_chsize.o

my_getsystime.o: file format elf64-x86-64
rw-r--r-- 0/0 2464 Oct 25 00:22 2007 my_getsystime.o

my_lib.o: file format elf64-x86-64
rw-r--r-- 0/0 4800 Oct 25 00:22 2007 my_lib.o

strmov.o: file format elf64-x86-64
rw-r--r-- 0/0 938 Oct 25 00:22 2007 strmov.o

strxmov.o: file format elf64-x86-64
rw-r--r-- 0/0 1360 Oct 25 00:22 2007 strxmov.o

strxnmov.o: file format elf64-x86-64
rw-r--r-- 0/0 1400 Oct 25 00:22 2007 strxnmov.o

strnmov.o: file format elf64-x86-64
rw-r--r-- 0/0 1256 Oct 25 00:22 2007 strnmov.o

strmake.o: file format elf64-x86-64
rw-r--r-- 0/0 1264 Oct 25 00:22 2007 strmake.o

strend.o: file format elf64-x86-64
rw-r--r-- 0/0 1232 Oct 25 00:22 2007 strend.o

strtod.o: file format elf64-x86-64
rw-r--r-- 0/0 5824 Oct 25 00:22 2007 strtod.o

strnlen.o: file format elf64-x86-64
rw-r--r-- 0/0 939 Oct 25 00:22 2007 strnlen.o

strfill.o: file format elf64-x86-64
rw-r--r-- 0/0 1256 Oct 25 00:22 2007 strfill.o

is_prefix.o: file format elf64-x86-64
rw-r--r-- 0/0 1256 Oct 25 00:22 2007 is_prefix.o

int2str.o: file format elf64-x86-64
rw-r--r-- 0/0 1976 Oct 25 00:22 2007 int2str.o

str2int.o: file format elf64-x86-64
rw-r--r-- 0/0 2032 Oct 25 00:22 2007 str2int.o
strinstr.o: file format elf64-x86-64
rw-r--r-- 0/0 1288 Oct 25 00:22 2007 strinstr.o

strcont.o: file format elf64-x86-64
rw-r--r-- 0/0 1272 Oct 25 00:22 2007 strcont.o

strcend.o: file format elf64-x86-64
rw-r--r-- 0/0 1248 Oct 25 00:22 2007 strcend.o

bcmp.o: file format elf64-x86-64
rw-r--r-- 0/0 936 Oct 25 00:22 2007 bcmp.o

ctype-latin1.o: file format elf64-x86-64
rw-r--r-- 0/0 13696 Oct 25 00:22 2007 ctype-latin1.o

bchange.o: file format elf64-x86-64
rw-r--r-- 0/0 1560 Oct 25 00:22 2007 bchange.o

bmove.o: file format elf64-x86-64
rw-r--r-- 0/0 937 Oct 25 00:22 2007 bmove.o

bmove_upp.o: file format elf64-x86-64
rw-r--r-- 0/0 1256 Oct 25 00:22 2007 bmove_upp.o
longlong2str.o: file format elf64-x86-64
rw-r--r-- 0/0 944 Oct 25 00:22 2007 longlong2str.o

strtoull.o: file format elf64-x86-64
rw-r--r-- 0/0 940 Oct 25 00:22 2007 strtoull.o

strtoll.o: file format elf64-x86-64
rw-r--r-- 0/0 939 Oct 25 00:22 2007 strtoll.o

llstr.o: file format elf64-x86-64
rw-r--r-- 0/0 1360 Oct 25 00:22 2007 llstr.o

my_vsnprintf.o: file format elf64-x86-64
rw-r--r-- 0/0 3488 Oct 25 00:22 2007 my_vsnprintf.o

ctype.o: file format elf64-x86-64
rw-r--r-- 0/0 9568 Oct 25 00:22 2007 ctype.o

ctype-simple.o: file format elf64-x86-64
rw-r--r-- 0/0 14400 Oct 25 00:22 2007 ctype-simple.o

ctype-bin.o: file format elf64-x86-64
rw-r--r-- 0/0 8608 Oct 25 00:22 2007 ctype-bin.o
ctype-mb.o: file format elf64-x86-64
rw-r--r-- 0/0 17616 Oct 25 00:22 2007 ctype-mb.o

ctype-big5.o: file format elf64-x86-64
rw-r--r-- 0/0 942 Oct 25 00:22 2007 ctype-big5.o

ctype-czech.o: file format elf64-x86-64
rw-r--r-- 0/0 943 Oct 25 00:22 2007 ctype-czech.o

ctype-cp932.o: file format elf64-x86-64
rw-r--r-- 0/0 943 Oct 25 00:22 2007 ctype-cp932.o

ctype-eucjpms.o: file format elf64-x86-64
rw-r--r-- 0/0 945 Oct 25 00:22 2007 ctype-eucjpms.o

ctype-euc_kr.o: file format elf64-x86-64
rw-r--r-- 0/0 944 Oct 25 00:22 2007 ctype-euc_kr.o

ctype-win1250ch.o: file format elf64-x86-64
rw-r--r-- 0/0 947 Oct 25 00:22 2007 ctype-win1250ch.o

ctype-utf8.o: file format elf64-x86-64
rw-r--r-- 0/0 79552 Oct 25 00:22 2007 ctype-utf8.o

ctype-extra.o: file format elf64-x86-64
rw-r--r-- 0/0 12944 Oct 25 00:22 2007 ctype-extra.o

ctype-ucs2.o: file format elf64-x86-64
rw-r--r-- 0/0 942 Oct 25 00:22 2007 ctype-ucs2.o

ctype-gb2312.o: file format elf64-x86-64
rw-r--r-- 0/0 944 Oct 25 00:22 2007 ctype-gb2312.o

ctype-gbk.o: file format elf64-x86-64
rw-r--r-- 0/0 941 Oct 25 00:22 2007 ctype-gbk.o

ctype-sjis.o: file format elf64-x86-64
rw-r--r-- 0/0 942 Oct 25 00:22 2007 ctype-sjis.o

ctype-tis620.o: file format elf64-x86-64
rw-r--r-- 0/0 944 Oct 25 00:22 2007 ctype-tis620.o

ctype-ujis.o: file format elf64-x86-64
rw-r--r-- 0/0 942 Oct 25 00:22 2007 ctype-ujis.o
ctype-uca.o: file format elf64-x86-64
rw-r--r-- 0/0 129760 Oct 25 00:22 2007 ctype-uca.o

xml.o: file format elf64-x86-64
rw-r--r-- 0/0 18312 Oct 25 00:22 2007 xml.o

my_strtoll10.o: file format elf64-x86-64
rw-r--r-- 0/0 2480 Oct 25 00:22 2007 my_strtoll10.o

str_alloc.o: file format elf64-x86-64
rw-r--r-- 0/0 1808 Oct 25 00:22 2007 str_alloc.o

dbug.o: file format elf64-x86-64
rw-r--r-- 0/0 1232 Oct 25 00:22 2007 dbug.o

pack.o: file format elf64-x86-64
rw-r--r-- 0/0 1904 Oct 25 00:22 2007 pack.o

client.o: file format elf64-x86-64
rw-r--r-- 0/0 41096 Oct 25 00:22 2007 client.o

my_time.o: file format elf64-x86-64
rw-r--r-- 0/0 12848 Oct 25 00:22 2007 my_time.o
vio.o: file format elf64-x86-64
rw-r--r-- 0/0 4312 Oct 25 00:22 2007 vio.o

viosocket.o: file format elf64-x86-64
rw-r--r-- 0/0 4920 Oct 25 00:22 2007 viosocket.o

viossl.o: file format elf64-x86-64
rw-r--r-- 0/0 938 Oct 25 00:22 2007 viossl.o

viosslfactories.o: file format elf64-x86-64
rw-r--r-- 0/0 947 Oct 25 00:22 2007 viosslfactories.o

net.o: file format elf64-x86-64
rw-r--r-- 0/0 7288 Oct 25 00:22 2007 net.o

inffast.o: file format elf64-x86-64
rw-r--r-- 0/0 3048 Oct 25 03:43 2007 inffast.o

zutil.o: file format elf64-x86-64
rw-r--r-- 0/0 2696 Oct 25 03:43 2007 zutil.o

inflate.o: file format elf64-x86-64
rw-r--r-- 0/0 17632 Oct 25 03:43 2007 inflate.o
infback.o: file format elf64-x86-64
rw-r--r-- 0/0 10864 Oct 25 03:43 2007 infback.o

deflate.o: file format elf64-x86-64
rw-r--r-- 0/0 17456 Oct 25 03:43 2007 deflate.o

adler32.o: file format elf64-x86-64
rw-r--r-- 0/0 2776 Oct 25 03:43 2007 adler32.o

gzio.o: file format elf64-x86-64
rw-r--r-- 0/0 16968 Oct 25 03:43 2007 gzio.o

uncompr.o: file format elf64-x86-64
rw-r--r-- 0/0 1936 Oct 25 03:43 2007 uncompr.o

trees.o: file format elf64-x86-64
rw-r--r-- 0/0 15728 Oct 25 03:43 2007 trees.o

inftrees.o: file format elf64-x86-64
rw-r--r-- 0/0 4312 Oct 25 03:43 2007 inftrees.o

compress.o: file format elf64-x86-64
deflate.o: file format elf64-x86-64
rw-r--r-- 0/0 17456 Oct 25 03:43 2007 deflate.o

adler32.o: file format elf64-x86-64
rw-r--r-- 0/0 2776 Oct 25 03:43 2007 adler32.o

gzio.o: file format elf64-x86-64
rw-r--r-- 0/0 16968 Oct 25 03:43 2007 gzio.o

uncompr.o: file format elf64-x86-64
rw-r--r-- 0/0 1936 Oct 25 03:43 2007 uncompr.o

trees.o: file format elf64-x86-64
rw-r--r-- 0/0 15728 Oct 25 03:43 2007 trees.o

inftrees.o: file format elf64-x86-64
rw-r--r-- 0/0 4312 Oct 25 03:43 2007 inftrees.o

compress.o: file format elf64-x86-64
rw-r--r-- 0/0 2160 Oct 25 03:43 2007 compress.o

crc32.o: file format elf64-x86-64
rw-r--r-- 0/0 20008 Oct 25 03:43 2007 crc32.o

I've been at this since 10 hours now; please help !

Options: ReplyQuote


Subject
Written By
Posted
Error installing php 5 with mysql support on rhel 5
October 25, 2007 08:39AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.