it works, almost

Comment on Asterisk addon asterisk-addons
devi-o
Joined: Fri 08 of Apr, 2005

Re: it works, almost

Posted:Fri 08 of Apr, 2005 (07:08 UTC)
oh well, i got it using the following (modified) statements:
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

thanx so much ! great community (:mrgreen:)(:mrgreen:)
devi-o
Joined: Fri 08 of Apr, 2005

it works, almost

Posted:Fri 08 of Apr, 2005 (06:55 UTC)
you will need to get the mysql source archive: mysql-4.0.24.tar.gz and copy the header-files into a directory where the compiler may find it. (:mrgreen:)

i have trouble with compiling the app_addon_sq_mysql.c too, running just make in the addons dir does`nt work it and gcc-ing it complains about an undeclared function in the lock.h , my sources are fresh from the cvs, maybe it gets fixed tommorrow, or am i doing horribly wrong ?! (:rolleyes:)