[Users] Errors compiling against MySQL 5.0.18

Edson 4lists at gmail.com
Fri Feb 24 23:07:14 CET 2006


Hi, list...

We are migrating from SER 0.9.2 to OpenSER 1.0.0

The machine is a x86_64 Xeon 3.0GHz Dell, with ! GB RAM and LVM over a 70
SCSI HD. We are using OpenSUSE 10.0-OSS, with minimun packet selection, just
added with OpenSER pre-reqs and nGrep. I run two versions of MySQL: the
OpenSUSE stock 4.1.13, and 5.0.18, downloaded from MySQL site and compiled
with 'rpmbuild'. GCC version please, see below on <0>.

OpenSER compilations where all made with the command lines showed on <1>:

I find many problems, not only during the compilation process, some are:
1- 'hiding' comments for RADIUS support on ACC (thanks Daniel for the help);
2- Makefile.defs:544: You are using an old and unsupported gcc version 
   (4.0), compile at your own risk! (openser-1.0.0.-tls.tar.gz - stable)
3- '-mtune' value had to be changed from 'x68_64' to 'x86-64' on 
   Makefile.defs (CVS-snapshot) to compile;
4- an 'ld' message that I thing is a MySQL problem when using MySQL 5.0.18
   libs (message, please see below on <2>)

Radius is still given me some work, but I whant to use MySQL 5.x series. So,
any one with a successful story in using CVS-head (or stable) with MySQL
5.0.x? 

Edson.


*<0>*********************************************************************
#gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,f95,java,ada --disable-checking
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk
--disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib
--enable-shared --enable-__cxa_atexit --without-system-libunwind
--host=x86_64-suse-linux
Thread model: posix
gcc version 4.0.2 20050901 (prerelease) (SUSE Linux)
#

*<1>*********************************************************************
# make cfg-target=/etc/openser/ prefix=/usr cfg-prefix=
# make cfg-target=/etc/openser/ prefix=/usr exclude_modules="postgres" \
> modules cfg-prefix=
# make cfg-target=/etc/openser/ prefix=/usr exclude_modules="postgres" \
> install cfg-prefix=

*<2>*********************************************************************
/usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-linux/bin/ld:
/usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/lib64/mysql/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [mysql.so] Error 1
make[1]: Leaving directory `/home/download/openser-1.0.0-tls/modules/mysql'






More information about the sr-users mailing list