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 Best Regards Steve Beaumont
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.
> cannot find -lz > collect2: ld returned 1 exit status > make: *** [cdr_addon_mysql.so] Error 1What is amazing is that people are able to read directions for downloading from CVS, but can't read the error message generated by the complier. The compiler said that it cannot find -lz. (what is -lz you ask? google has the answer to that.) What is even more amazing is that you were able to compile mysql without -lz because I believe -lz is a requirement of mysql. -lz is your zlib library. zlib should be in /usr/lib/ -Matthew