[Asterisk-Users] Compile Error - MySql addon

Michael Welter mike at introspect.com
Tue May 17 11:23:07 MST 2005


Steve Beaumont wrote:
> When compiling asterisk-addons I get the following error. Anyone got any 
> idea's ?, any help would be appreciated.
> 
> make[1]: Leaving directory `/usr/src/asterisk-addons/format_mp3'
> 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
> /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: 
> cannot find -lz
> collect2: ld returned 1 exit status
> make: *** [cdr_addon_mysql.so] Error 1
> 
> 
Don't know if this applies to you, but would one of the developers 
please patch the addons Makefile to look in /usr/lib64 as well as /usr/lib.

Thank you.



More information about the asterisk-users mailing list