[Asterisk-Users] asterisk-addons compilation error

Harold Workman hworkman at cytelcom.com
Wed Jun 23 08:02:43 MST 2004


asterisk-users-admin at lists.digium.com wrote:
> Hello,
>     You need to have your versions of asterisk and asterisk-addons
> match, if you are getting a lock error. Download both from the cvs
> and compile. This should fix your error.
> ----- Original Message -----
> From: "Hekuran Doli" <asterisk at ati-kos.com>
> To: <asterisk-users at lists.digium.com>
> Sent: Tuesday, June 22, 2004 3:19 PM
> Subject: Re: [Asterisk-Users] asterisk-addons compilation error
>
>
>> have you install mysql-devel?
>>
>>
>>
>>>>
>>>> I am getting the following error as of today after updating both
>>>> asterisk and asterisk-addons. These are both under /usr/src. ...
>>>
>>>> cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o
>>>> cdr_addon_mysql.o cdr_addon_mysql.c
>>>> cdr_addon_mysql.c:50: warning: parameter names (without types) in
>>>> function declaration cdr_addon_mysql.c:50: warning: data
>>>> definition has no type or storage class
>>> ....
>>>
>>>> cdr_addon_mysql.c:108: error: for each function it appears in.)
>>>> cdr_addon_mysql.c: In function `usecount':
>>>> cdr_addon_mysql.c:420: error: `mysql_lock' undeclared (first use
>>>> in this function) make: *** [cdr_addon_mysql.o] Error 1
>>>
>>>>
>>>
>>> Hi
>>>
>>> I'm having the same problem.
>>> I've tried to solve the problem using the all the tips&tricks from
>>> the mailingslists - But with no luck :-(
>>>
>>> System: RH9, mysql 4.0.20
>>>
>>> NRB
>>>
>>>
>>>
>>> _______________________________________________
>>> Asterisk-Users mailing list
>>> Asterisk-Users at lists.digium.com
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>> To UNSUBSCRIBE or update options visit:
>>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>    http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




I am also working on getting this installed.  I cvs asterisk &
asterisk-addons. Make install asterisk, then make asterisk-addons.  I still
receive the mysql error:
make: *** [cdr_addon_mysql.o] Error 1

I have mysql and devel installed
  package MySQL-3.23.58-1 is already installed
  package MySQL-devel-3.23.58-1 is already installed


When I did the make install from the asterisk folder, it added the
CFLAGS+=-I../asterisk/include into the Makefile.

Im running RH Fedora Core 1.




More information about the asterisk-users mailing list