that works for me:

For kannel:

# CFLAGS=-fPIC ./configure --prefix=/usr/local/mbuni
# make && make install
# echo /usr/local/mbuni/lib >> /etc/ld.so.conf
# ldconfig

For mbuni:

# CFLAGS=-fPIC ./configure --prefix=/usr/local/mbuni
  --with-kannel-dir=/usr/local/mbuni
# make



On Fri, Aug 06, 2010 at 09:35:39PM +1100, Emmanuel CHANSON wrote:
> Same errors :(
> 
> 2010/8/6 Vincent CHAVANIS <v.chava...@telemaque.fr>
> 
> >
> > just configure kannel --with-cflags='-rdynamic -fPIC'
> >
> > Vincent.
> >
> >
> > Le 06/08/2010 10:12, Emmanuel CHANSON a écrit :
> >
> >> Same errors:
> >>
> >> Note I am using Fedora 13 (x86_64)
> >>
> >> # make clean
> >> # make distclean
> >>
> >> for both kannel and mbuni before compiling
> >>
> >> I don't run ./bootstrap for each (is it necessary ?)
> >>
> >> Then for Kannel:
> >> # CFLAGS=-fPIC ./configure --with-mysql
> >> Ok
> >>
> >> # make rpm
> >> Ok
> >>
> >> For Mbuni:
> >> # CFLAGS=-fPIC ./configure
> >> --with-kannel-dir=/root/rpmbuild/BUILD/kannel-svn
> >> Ok
> >>
> >> # make
> >> ...
> >>
> >> /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[3]: *** [libmmsbox_mm1.la <http://libmmsbox_mm1.la>] Erreur 1
> >>
> >> make[3]: quittant le répertoire «
> >> /opt/mediaserver/softs/mbuni/mbuni/extras/mmsbox-mm1 »
> >> make[2]: *** [all-recursive] Erreur 1
> >> make[2]: quittant le répertoire «
> >> /opt/mediaserver/softs/mbuni/mbuni/extras »
> >> make[1]: *** [all-recursive] Erreur 1
> >> make[1]: quittant le répertoire « /opt/mediaserver/softs/mbuni/mbuni »
> >> make: *** [all] Erreur 2
> >> #
> >>
> >> Strange
> >>
> >> Emmanuel
> >>
> >> 2010/8/6 Piotr Isajew <p...@ex.com.pl <mailto:p...@ex.com.pl>>
> >>
> >>
> >>    I know I have had this problem on x86_64, I'm also sure, that it's
> >>    solvable somehow (however I don't remember the actual solution). Maybe
> >>    try:
> >>
> >>    CFLAGS=-fPIC ./configure
> >>
> >>    for both projects instead of --with-cflags option.
> >>
> >>    On Fri, Aug 06, 2010 at 06:34:20PM +1100, Emmanuel CHANSON wrote:
> >>     > Yes I tried using:
> >>     >
> >>     > For Kannel:
> >>     > # ./configure --with-mysql --with-cflags=-fPIC
> >>     > ...
> >>     > # make rpm
> >>     >
> >>     > For Mbuni
> >>     > # ./configure --with-kannel-dir=/root/rpmbuild/BUILD/kannel-svn/
> >>     > --with-cflags=-fPIC
> >>     >
> >>     > # make
> >>     >
> >>     > but same error
> >>     >
> >>     > BR,
> >>     >
> >>     > Emmanuel
> >>     >
> >>     > 2010/8/6 Piotr Isajew <p...@ex.com.pl <mailto:p...@ex.com.pl>>
> >>
> >>     >
> >>     > > 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 <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
> >>     > > > #
> >>     > > >
> >>     > > > Emmanuel
> >>     > > >
> >>     > > > 2010/8/5 Vincent CHAVANIS <v.chava...@telemaque.fr <mailto:
> >> 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> <
> >>     > > > >> 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> <
> >> 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 <mailto: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 <mailto:
> >> emmanuelchan...@gmail.com>
> >>     > >
> >>     > > > _______________________________________________
> >>     > > > Users mailing list
> >>     > > > Users@mbuni.org <mailto:Users@mbuni.org>
> >>
> >>     > > > http://lists.mbuni.org/mailman/listinfo/users
> >>     > >
> >>     > >
> >>     > > _______________________________________________
> >>     > > Users mailing list
> >>     > > Users@mbuni.org <mailto:Users@mbuni.org>
> >>
> >>     > > http://lists.mbuni.org/mailman/listinfo/users
> >>     > >
> >>
> >
> > _______________________________________________
> > 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

Attachment: pgpGQGEsfwALh.pgp
Description: PGP signature

_______________________________________________
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users

Reply via email to