do you recompile mbuni with '-fPIC' too? On Fri, Aug 06, 2010 at 07:24:56AM +0200, Emmanuel CHANSON wrote: > When compiling kannel using : > ./configure --with-mysql --with-cflags=-fPIC > > And then mbuni I got the same errors: > > > */usr/bin/ld: /usr/lib64/kannel/libgwlib.a(gwmem-native.o): relocation > R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared > object; recompile with -fPIC* > /usr/lib64/kannel/libgwlib.a: could not read symbols: Bad value > collect2: ld returned 1 exit status > make[2]: *** [libmmsbox_mm1.la] Erreur 1 > make[2]: quittant le répertoire « > /opt/mediaserver/softs/mbuni/mbuni/extras/mmsbox-mm1 » > make[1]: *** [install-recursive] Erreur 1 > make[1]: quittant le répertoire « /opt/mediaserver/softs/mbuni/mbuni/extras > » > make: *** [install-recursive] Erreur 1 > # > > Emmanuel > > 2010/8/5 Vincent CHAVANIS <v.chava...@telemaque.fr> > > > just read the warnings ;-) > > > > recompile the kannel libs with -fPIC > > > > regards > > > > Vincent. > > > > > > Le 05/08/2010 13:26, Emmanuel CHANSON a écrit : > > > >> Hello, > >> > >> This time I am installing Mbuni on a x86_64 plateform. > >> > >> I got this error trying to compile Mbuni on Fedora 13 x86_64: > >> > >> ./bootstrap > >> > >> ./configure > >> > >> make install > >> ... > >> make[2]: entrant dans le répertoire « > >> /opt/mediaserver/softs/mbuni/mbuni/extras/mmsbox-mm1 » > >> /bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2 > >> -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -O4 -Wall -D_LARGE_FILES= > >> -I/usr/include/kannel -O2 -g -pipe -Wall > >> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector > >> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_XOPEN_SOURCE=600 > >> -D_BSD_SOURCE -D_LARGE_FILES= > >> -I/usr/include/libxml2 -I/usr/include/openssl -I/usr/include/mysql > >> -module -rdynamic -L/usr/lib64/kannel -lgw -lwap -lgwlib -lmysqlclient_r > >> -lssl -lpcreposix > >> -lrt -lresolv -lnsl -lm -lpthread -lxml2 -lz -lm -lpcreposix -lpcre > >> -L/usr/lib64 -lcrypto -lssl -rdynamic -L/usr/lib64/mysql -lmysqlclient_r > >> -lz > >> -lpthread > >> -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -o libmmsbox_mm1.la < > >> http://libmmsbox_mm1.la> -rpath /usr/local/lib mmsbox_mm1.lo -lwap > >> -lgwlib -lpthread -ldl > >> > >> -L/usr/lib64/kannel -lgw -lwap -lgwlib -lmysqlclient_r -lssl -lpcreposix > >> -lrt -lresolv -lnsl -lm -lpthread -lxml2 -lz -lm -lpcreposix -lpcre > >> -L/usr/lib64 > >> -lcrypto -lssl -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread > >> -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lcurl > >> libtool: link: gcc -shared .libs/mmsbox_mm1.o -L/usr/lib64/kannel > >> -L/usr/lib64 -L/usr/lib64/mysql -ldl -lgw -lwap -lgwlib -lrt -lresolv > >> -lxml2 > >> -lpcreposix > >> -lpcre -lmysqlclient_r -lz -lcrypt -lnsl -lm -lpthread -lssl -lcrypto > >> -lcurl -m64 -mtune=generic -Wl,-soname -Wl,libmmsbox_mm1.so.0 -o > >> .libs/libmmsbox_mm1.so.0.0.0 > >> /usr/bin/ld: /usr/lib64/kannel/libgwlib.a(gwmem-native.o): *relocation > >> R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared > >> object; > >> recompile with -fPIC* > >> /usr/lib64/kannel/libgwlib.a: could not read symbols: Bad value > >> collect2: ld returned 1 exit status > >> make[2]: *** [libmmsbox_mm1.la <http://libmmsbox_mm1.la>] Erreur 1 > >> > >> make[2]: quittant le répertoire « > >> /opt/mediaserver/softs/mbuni/mbuni/extras/mmsbox-mm1 » > >> make[1]: *** [install-recursive] Erreur 1 > >> make[1]: quittant le répertoire « > >> /opt/mediaserver/softs/mbuni/mbuni/extras » > >> make: *** [install-recursive] Erreur 1 > >> [r...@mediaserver mbuni]# > >> > >> Any idea how to solve this issue? > >> > >> BR > >> > >> -- > >> Emmanuel > >> > >> > >> > >> > > _______________________________________________ > > Users mailing list > > Users@mbuni.org > > http://lists.mbuni.org/mailman/listinfo/users > > > > > > -- > Emmanuel > > CHANSON Emmanuel > Mobile Nouvelle-Calédonie: +687.77.35.02 > Mobile France: +33 (0) 6.68.03.89.56 > @email : emmanuelchan...@gmail.com
> _______________________________________________ > Users mailing list > Users@mbuni.org > http://lists.mbuni.org/mailman/listinfo/users
pgppOLffSVU3u.pgp
Description: PGP signature
_______________________________________________ Users mailing list Users@mbuni.org http://lists.mbuni.org/mailman/listinfo/users