problem mit asterisk-addons

wurtzel

Neuer User
Mitglied seit
7 Mrz 2006
Beiträge
49
Punkte für Reaktionen
0
Punkte
0
Hallo
Ich habe folgendes Problem
Auf meinem Rechner kann ich das res_config_mysql mnodule nicht compilieren

Suse 10 mit Mysql 5.0.19 bzw 5.1.7 beta

Code:
./mkdep -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql   `ls *.c`
make -C format_mp3 all
make[1]: Entering directory `/usr/src/asterisk-addons-1.2.2/format_mp3'
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o common.o common.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o dct64_i386.o dct64_i386.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o decode_ntom.o decode_ntom.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o layer3.o layer3.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o tabinit.o tabinit.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o interface.o interface.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64   -c -o format_mp3.o format_mp3.c
gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations   -D_REENTRANT -D_GNU_SOURCE  -O6 -m64 -shared -Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o format_mp3.                                                     o
make[1]: Leaving directory `/usr/src/asterisk-addons-1.2.2/format_mp3'
cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o app_saycountpl.o app_saycountpl.c
cc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o
cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o cdr_addon_mysql.o cdr_addon_mysql.c
cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz   -L/usr/lib/mysql -L/usr/lib64/mysql
/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: *** [cdr_addon_mysql.so] Error 1
rm app_saycountpl.o
 
Zuletzt bearbeitet:
ich würde sagen, da fehlen die mysql-client Development Bibliotheken
 
wenns nur so einfach währe

installierte rpms
MySQL-bench-5.0.19-0.glibc23.x86_64.rpm
MySQL-server-5.0.19-0.glibc23.x86_64.rpm
MySQL-client-5.0.19-0.glibc23.x86_64.rpm
MySQL-shared-5.0.19-0.glibc23.x86_64.rpm
MySQL-Max-5.0.19-0.glibc23.x86_64.rpm
MySQL-devel-5.0.19-0.glibc23.x86_64.rpm
MySQL-shared-compat-5.0.19-0.glibc23.x86_64.rpm
 
Zuletzt bearbeitet:
willst Du denn auf Deinem Asterisk überhaupt mit MySQL Anbindung arbeiten ? Ansonsten kannst Du die Addons einfach weglassen.

Wenn doch - wie gesagt, es handelt sich um MySQL-Client :!:

Wobei ich im Moment nicht sagen kann, ob Asterisk schon mit MySQL 5 arbeiten kann oder besser mit MySQL 4 zurechtkommt.
 
ich will astbill für die konfigeration nutzen das braucht mysql 5
 
Installiere mal das MySQL-devel-5.0.19-0.glibc23.x86_64.rpm und probier dann nochmal
 
ist schon installiert siehe oben
 
sorry - aus Deiner nichtssagenden Liste da oben, war beim besten Willen nicht erkennbar, ob das nun bereits installierte Pakete oder zur Installation verfügbare Pakete sind :rolleyes:
 
ja suse 10 64bit auf atlon64 3000+
 
wurtzel schrieb:
ja suse 10 64bit auf atlon64 3000+

hmmm, die Konstellation funktionierte bei mir auch nicht richtig. Ich habe damals die 32 bit Version genommen (Suse+rpms) und dann hat es funktioniert. Ist zwar keine richtige Lösung, aber so funktionierte es wenigstens.

mg Guard-X
 
Also Asterisk kann mit MySQL 5 das weiss ich mit Sicherheit da ich es so laufen habe. Aber auch auf 32bit, 64 hab ich nicht probiert.
 
finger weg von 64bit - misdn macht auch probleme


hier ist der Hund begraben:
/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

Also in das Makefile und: recompile with -fPIC

viel spass bei der suche...
also solltest du ruhig bei 32bit bleiben - mir hat es einen TAG gekostet - bin wieder zurück zu 32bit
 
so nu ist es die 32bit version auf dem server und es geht
 
Kostenlos!

Statistik des Forums

Themen
248,886
Beiträge
2,303,960
Mitglieder
378,564
Neuestes Mitglied
warumdas