Bug#416774: asterisk-chan-capi: Doesn't work with asterisk 1.4 (from experimental)

John Hughes john at calvaedi.com
Fri Mar 30 10:18:20 UTC 2007


Package: asterisk-chan-capi
Version: 1.0.0-1
Severity: important


[Mar 30 11:05:52] WARNING[7414]: loader.c:375 load_dynamic_module: Module 'chan_capi.so' did not register 
itself during load
[Mar 30 11:05:52] WARNING[7414]: loader.c:614 load_resource: Module 'chan_capi.so' could not be loaded.

Trying to compile from source gets:

$ dpkg-buildpackage -rfakeroot
[...]
/usr/bin/make
make[1]: Entering directory `/usr/local/src/asterisk-chan-capi-1.0.0'
./create_config.sh "/usr/include"
Checking Asterisk version... 1.4.2
 * found stringfield in ast_channel
 * found 'indicate' with data
 * found extended ast_channel_alloc
 * found send_digit_end with duration
 * without generic jitter-buffer patch
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT 
-D_GNU_SOURCE  -O2 -fPIC   -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO `if grep -q AST_JB 
config.h; then echo -DAST_JB; fi`   -c -o chan_capi.o chan_capi.c
chan_capi.c:161: warning: data definition has no type or storage class
chan_capi.c:161: warning: type defaults to 'int' in declaration of 'STANDARD_LOCAL_USER'
chan_capi.c:162: warning: data definition has no type or storage class
chan_capi.c:162: warning: type defaults to 'int' in declaration of 'LOCAL_USER_DECL'
chan_capi.c: In function 'pbx_capi_read':
chan_capi.c:1717: warning: format '%d' expects type 'int', but argument 7 has type 'long unsigned int'
chan_capi.c: In function 'capi_new':
chan_capi.c:2143: error: 'struct ast_channel' has no member named 'type'
chan_capi.c: In function 'pbx_capicommand_exec':
chan_capi.c:4822: warning: implicit declaration of function 'LOCAL_USER_ADD'
chan_capi.c:4841: warning: implicit declaration of function 'LOCAL_USER_REMOVE'
chan_capi.c: At top level:
chan_capi.c:5525: error: unknown field 'send_digit' specified in initializer
chan_capi.c:5525: warning: initialization from incompatible pointer type
make[1]: *** [chan_capi.o] Error 1
make[1]: Leaving directory `/usr/local/src/asterisk-chan-capi-1.0.0'
make: *** [build-stamp] Error 2

Looking at /usr/include/asterisk/version.h I see:

/*
 * version.h
 * Automatically generated
 */
#define ASTERISK_VERSION "1.4.2"
#define ASTERISK_VERSION_NUM 10402

And create_config.sh has:

if grep -q "ASTERISK_VERSION_NUM 0104" $INCLUDEDIR/version.h; then
        echo "#define CC_AST_HAS_VERSION_1_4" >>$CONFIGFILE
        echo " * found Asterisk version 1.4"
        VER=1_4
else
        if grep -q "ASTERISK_VERSION_NUM 99999" $INCLUDEDIR/version.h; then
                echo "#define CC_AST_HAS_VERSION_1_4" >>$CONFIGFILE
                echo " * assuming Asterisk version 1.4"
                VER=1_4
        else
                echo "#undef CC_AST_HAS_VERSION_1_4" >>$CONFIGFILE
        fi
fi

Prettty dodgy looking.

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot set LC_ALL to default locale: No such file or directory
UTF-8)

Versions of packages asterisk-chan-capi depends on:
ii  adduser              3.102               Add and remove users and groups
ii  libc6                2.3.6.ds1-13        GNU C Library: Shared libraries
ii  libcapi20-3          1:3.9.20060704-3+b1 libraries for CAPI support

Versions of packages asterisk-chan-capi recommends:
ii  asterisk                  1:1.4.2~dfsg-4 Open Source Private Branch Exchang

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_TIME = "en_GB.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_ALL to default locale: No such file or directory




More information about the Pkg-voip-maintainers mailing list