Markus Engelbrecht
2004-Aug-16 13:13 UTC
[Asterisk-Users] Problems compiling chan_capi-0.3.5
Hello, I already searched on the mailing list, but I didn't found a solution to my problem. I can't install chan_capi anymore. It has been running very well but then I run into trouble. so I decided to update to the latest CVS version of asterisk and of chan_capi. But now I can't compile chan_capi anymore. I'm running SuSE 9.0 and I think the problem is caused by an update that was automatically installed. Any ideas? By the way, I tried as well an older version that I compiled successfully before but it now Here the log of the make command: deskpro:/usr/src/asterisk/chan_capi-0.3.5 # make gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c chan_capi.c:23:31: asterisk/features.h: No such file or directory In file included from chan_capi.c:24: /usr/include/asterisk/utils.h:22: error: redefinition of `struct ast_hostent' In file included from /usr/include/linux/kernelcapi.h:13, from /usr/include/linux/capi.h:18, from chan_capi.c:35: /usr/include/linux/list.h:563:2: warning: #warning "don't include kernel headers in userspace" chan_capi.c:62: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:62: warning: parameter names (without types) in function declaration chan_capi.c:62: warning: data definition has no type or storage class chan_capi.c:63: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:63: warning: parameter names (without types) in function declaration chan_capi.c:63: warning: data definition has no type or storage class chan_capi.c:64: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:64: warning: parameter names (without types) in function declaration chan_capi.c:64: warning: data definition has no type or storage class chan_capi.c:65: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:65: warning: parameter names (without types) in function declaration chan_capi.c:65: warning: data definition has no type or storage class chan_capi.c:66: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:66: warning: parameter names (without types) in function declaration chan_capi.c:66: warning: data definition has no type or storage class chan_capi.c:67: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:67: warning: parameter names (without types) in function declaration chan_capi.c:67: warning: data definition has no type or storage class chan_capi.c:68: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:68: warning: parameter names (without types) in function declaration chan_capi.c:68: warning: data definition has no type or storage class chan_capi.c: In function `_capi_put_cmsg': chan_capi.c:106: error: `capi_put_lock' undeclared (first use in this function) chan_capi.c:106: error: (Each undeclared identifier is reported only once chan_capi.c:106: error: for each function it appears in.) chan_capi.c: In function `capi_echo_canceller': chan_capi.c:181: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `capi_detect_dtmf': chan_capi.c:231: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `capi_send_digit': chan_capi.c:309: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `remove_pipe': chan_capi.c:481: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `capi_hangup': chan_capi.c:613: error: `usecnt_lock' undeclared (first use in this function) chan_capi.c: In function `capi_call': chan_capi.c:685: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `capi_read': chan_capi.c:826: error: structure has no member named `delivery' chan_capi.c:827: error: structure has no member named `delivery' chan_capi.c: In function `capi_write': chan_capi.c:899: error: `capi_send_buffer_lock' undeclared (first use in this function) chan_capi.c: In function `capi_new': chan_capi.c:1022: error: structure has no member named `delivery' chan_capi.c:1023: error: structure has no member named `delivery' chan_capi.c:1078: error: `usecnt_lock' undeclared (first use in this function) chan_capi.c: In function `capi_request': chan_capi.c:1130: error: `iflock' undeclared (first use in this function) chan_capi.c:1146: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `find_pipe': chan_capi.c:1181: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `pipe_frame': chan_capi.c:1214: error: too few arguments to function `ast_dsp_process' chan_capi.c: In function `pipe_msg': chan_capi.c:1347: error: `contrlock' undeclared (first use in this function) chan_capi.c:1499: error: structure has no member named `delivery' chan_capi.c:1500: error: structure has no member named `delivery' chan_capi.c: In function `capi_handle_msg': chan_capi.c:1974: error: `iflock' undeclared (first use in this function) chan_capi.c:2064: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `restart_monitor': chan_capi.c:2267: error: `monlock' undeclared (first use in this function) chan_capi.c:2278: warning: implicit declaration of function `ast_pthread_create' chan_capi.c: In function `capi_info': chan_capi.c:2527: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `load_module': chan_capi.c:2607: error: `iflock' undeclared (first use in this function) chan_capi.c: In function `usecount': chan_capi.c:2820: error: `usecnt_lock' undeclared (first use in this function) make: *** [chan_capi.o] Error 1 deskpro:/usr/src/asterisk/chan_capi-0.3.5 # Best Regards, Markus -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040816/bff6e6d4/attachment.htm
On Mon, 2004-08-16 at 22:13, Markus Engelbrecht wrote:> Hello, > > so I decided to update to the latest CVS version of asterisk and of > chan_capi.[snip]> > chan_capi.c:23:31: asterisk/features.h: No such file or directory > In file included from chan_capi.c:24:[snip] I think you need to remove your asterisk src and do a fresh checkout. So not update but really remove the src and get a fresh version. Iirc the problem is related to .depend in the asterisk src dir still referring to old files related to parkedcalls which have been replaced with features. Removing .depend in the asterisk src dir *might* do the trick too. Once your asterisk src is properly checked out (or updated), try to compile again. Regards, Patrick
On Tue, 17 Aug 2004 01:16:21 +0200, Patrick <asterisk@puzzled.xs4all.nl> wrote:> On Mon, 2004-08-16 at 22:13, Markus Engelbrecht wrote: > > Hello, > > > > so I decided to update to the latest CVS version of asterisk and of > > chan_capi.You are compiling the wrong version of chan_capi to get chan_capi to work with latest CVS-HEAD you need to uncomment the line in the Makefile as this # if you want to compile against latest (non-stable) asterisk cvs CFLAGS+=-DUNSTABLE_CVS
Markus Engelbrecht
2004-Aug-18 10:10 UTC
AW: [Asterisk-Users] Problems compiling chan_capi-0.3.5
Hello Jason, No, in this case I only needed to remove the old source code completely and make a new checkout. After that compiling works fine without changing the make file. Thanks, Markus> -----Urspr?ngliche Nachricht----- > Von: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] Im Auftrag von > Jason Williams > Gesendet: Mittwoch, 18. August 2004 13:16 > An: asterisk-users@lists.digium.com > Betreff: Re: [Asterisk-Users] Problems compiling chan_capi-0.3.5 > > On Tue, 17 Aug 2004 01:16:21 +0200, Patrick > <asterisk@puzzled.xs4all.nl> wrote: > > On Mon, 2004-08-16 at 22:13, Markus Engelbrecht wrote: > > > Hello, > > > > > > so I decided to update to the latest CVS version of > asterisk and of > > > chan_capi. > > You are compiling the wrong version of chan_capi to get > chan_capi to work with latest CVS-HEAD you need to uncomment > the line in the Makefile > > as this > > > # if you want to compile against latest (non-stable) asterisk cvs > CFLAGS+=-DUNSTABLE_CVS > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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 >