Compile warnings (Suse 10, cpp 4.0.2, *1.2.1, chan_cap_cm 0.6.1)

loek

Neuer User
Mitglied seit
1 Jan 2006
Beiträge
2
Punkte für Reaktionen
0
Punkte
0
L.S.

Pleas forgive me for asking this question in English, in highschool I allways had a 3 for German (in Holland the scale goes from 1 to 10 with a 10 for perfect...)
But please feel free to answer in (Hoch)Deutsch.

After compiling with this shipload of warnings chan_capi.so is created, using it withing asterisk will give the error "no capi found" as mentioned in earlier postings. I wonder if these two are related? Anyway, i like to know where these warnings come from.
BTW: compiling the Junghanns version gives the same warnings..

TIA,
Loek


---- compile dump
asterisk:/usr/src/chan_capi-cm-0.6.1 # make
./create_config.sh "/usr/include"
Checking Asterisk version...
* found 'struct ast_channel_tech'
* found 'ast_bridged_channel'
* found 'ast_bridge_result'
* ast_dsp_process() without 'needlock'
* found 'struct ast_callerid'
* found 'struct timeval delivery'
* found 'transfercapability'
* found 'ast_config_load'
* found 'AST_CONTROL_HOLD'
* found 'struct ast_custom_function'
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -pg -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
chan_capi.c: In function âcapi_echo_cancellerâ:
chan_capi.c:421: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_detect_dtmfâ:
chan_capi.c:464: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_send_info_digitsâ:
chan_capi.c:512: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_send_digitâ:
chan_capi.c:581: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_activehangupâ:
chan_capi.c:677: warning: assignment discards qualifiers from pointer target type
chan_capi.c: In function âcapi_callâ:
chan_capi.c:921: warning: assignment discards qualifiers from pointer target type
chan_capi.c:933: warning: assignment discards qualifiers from pointer target type
chan_capi.c:939: warning: assignment discards qualifiers from pointer target type
chan_capi.c:962: warning: pointer targets in assignment differ in signedness
chan_capi.c:963: warning: pointer targets in assignment differ in signedness
chan_capi.c:986: warning: pointer targets in assignment differ in signedness
chan_capi.c:987: warning: pointer targets in assignment differ in signedness
chan_capi.c:996: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_send_answerâ:
chan_capi.c:1030: warning: assignment discards qualifiers from pointer target type
chan_capi.c:1044: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âline_interconnectâ:
chan_capi.c:1324: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_retrieveâ:
chan_capi.c:3581: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_ectâ:
chan_capi.c:3606: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3673: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_holdâ:
chan_capi.c:3724: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âcapi_maliciousâ:
chan_capi.c:3767: warning: pointer targets in assignment differ in signedness
chan_capi.c: In function âsupported_sservicesâ:
chan_capi.c:4247: warning: pointer targets in assignment differ in signedness
chan_capi.c: At top level:
chan_capi.c:4416: warning: initialization from incompatible pointer type
chan_capi.c: In function âcc_init_capiâ:
chan_capi.c:4454: warning: pointer targets in passing argument 2 of âcapi20_get_profileâ differ in signedness
chan_capi.c:4477: warning: pointer targets in passing argument 2 of âcapi20_get_profileâ differ in signedness
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -pg -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o c20msg.o c20msg.c
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o c20msg.o -lcapi20
 
I had the same problem once. I tried to update to a CVS-Version after *1.2.1 had been released. Please try the CVS-Version of chan_capi (or 0.6.2). Pver here it now works fine.
 
This is not related. The warnings come from a buggy compiler I think.
Do you have CAPI installed? Which modules? Which card? Firmware loaded (if necessary)?

Armin

BTW: chan_capi-cm CVS HEAD already contains changes for development. The latest version is chan_capi-cm-0.6.2 and fixes will be in CVS branch V0_6
 
This is just an information.
I have the same warning messages but everything is working fine.
I use:
gcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc
Thread model: posix
gcc version 4.0.2
 
Problem solved: buggy usb connection!

Hi,

You sometimes have those things that one time it works and the next time it doesn't. This time it turned out that the USB cable to the Fritzcard-USB seemed to have a bad contact.
So I checked lsmod, capiinfo etc and it was looking good, and a moment later I checked in *-console and no capi was found. Then you start changing all kind of variables in which process you break all kind of dependencies, and get further from home...

Those compiler warnings indeed have no impact. It is plain vanilla Suse10, so I don't dare to call it a buggy compiler.

If one needs my help on a setup with Suse10/Fritzcard-USB/Asterisk the he/she can call me at +31152568536. It works now :-)

Thanks for all the info,
Loek
 
Okay, it's not really a buggy compiler, but I think warning about a difference in signedness of pointer types of gcc 4 is not necessary. There has been another compiler used by another SuSE version which is known for a buggy warning.

Anyway, I will clean up the code to remove the warnings (some already done in CVS).

Armin
 
Kostenlos!

Statistik des Forums

Themen
249,052
Beiträge
2,309,535
Mitglieder
378,850
Neuestes Mitglied
IchBinEsDoch