atefsaeed2010 / asterisk-chan-dongle-01

Automatically exported from code.google.com/p/asterisk-chan-dongle
Other
0 stars 1 forks source link

asterisk-11.10.2 & asterisk-chan-dongle rev35 won't compile on gentoo RaspberryPy #177

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm try to use a Huawei e1550 on my RaspberryPi Asterisk server, but, this 
module won't compile, my machine:

RaspberryPi Model B
Kernel: 
Linux version 3.12.23+ (dc4@dc4-Latitude-E6510) (gcc version 4.8.3 20140303 
(prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #692 
PREEMPT Thu Jun 26 20:15:50 BST 2014

Gcc:
armv6j-hardfloat-linux-gnueabi-4.7.3 

Asterisk Version:
asterisk 11.10.2

asterisk-chan-dongle: Rev35

Compile error:
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
-fvisibility=hidden -fPIC -Wall -Wextra -MD -MT app.o -MF .app.o.d -MP  -o 
app.o -c app.c
In file included from app.c:21:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include 
'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
app.c: In function 'app_register':
app.c:162:3: warning: passing argument 2 of 'ast_register_application2' from 
incompatible pointer type [enabled by default]
In file included from app.c:20:0:
/usr/include/asterisk/module.h:458:5: note: expected 'int (*)(struct 
ast_channel *, const char *)' but argument is of type 'int (*)(struct 
ast_channel *, void *)'
make: *** [app.o] Errore 1

Original issue reported on code.google.com by tommas...@gmail.com on 14 Jul 2014 at 8:26

GoogleCodeExporter commented 9 years ago
I have seen now that chan-dongle works only with 1.6.2 and 1.8 here: 
http://wiki.e1550.mobi/doku.php?id=installation , i'm trying to use 1.8.29.0 
right now, just the time of compiling it on rasp.

Original comment by tommas...@gmail.com on 14 Jul 2014 at 9:12

GoogleCodeExporter commented 9 years ago
Conpiled OK on 1.8.29.0

Only one warning:
pdu.c: In function 'pdu_parse_number':
pdu.c:466:5: warning: comparison is always false due to limited range of data 
type [-Wtype-limits]

Original comment by tommas...@gmail.com on 14 Jul 2014 at 11:32

GoogleCodeExporter commented 9 years ago
yes, official chan_donle not ready for asterisk 10 11 12
Also you want build for not x86 i64 hardware

Original comment by bg_...@mail.ru on 23 Jul 2014 at 7:27

GoogleCodeExporter commented 9 years ago
> pdu.c:466:5: warning: comparison is always false due to limited range of data 
type [-Wtype-limits]

You compile with char is unsigned option.

Original comment by bg_...@mail.ru on 23 Jul 2014 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by bg_...@mail.ru on 31 Aug 2014 at 3:07