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
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: