machtudong / asterisk-chan-dongle

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

Can't build under ubuntu+ast 10.0.0-rc2 #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
get sources from svn, aclocal, autoconf, make and see:

root@192:/usr/src/asterisk-chan-dongle# make
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
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_command.o -MF 
.at_command.o.d -MP  -o at_command.o -c at_command.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_parse.o -MF .at_parse.o.d 
-MP  -o at_parse.o -c at_parse.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_queue.o -MF .at_queue.o.d 
-MP  -o at_queue.o -c at_queue.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_read.o -MF .at_read.o.d -MP 
 -o at_read.o -c at_read.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT at_response.o -MF 
.at_response.o.d -MP  -o at_response.o -c at_response.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT chan_dongle.o -MF 
.chan_dongle.o.d -MP  -o chan_dongle.o -c chan_dongle.c
gcc -g -O2 -O6 -I.  -D_GNU_SOURCE -I/usr/include -I/usr/include -DHAVE_CONFIG_H 
 -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP 
 -o channel.o -c channel.c
channel.c:100:82: error: unknown type name ‘format_t’
channel.c: In function ‘channel_read’:
channel.c:621:22: error: ‘union ast_frame_subclass’ has no member named 
‘codec’
channel.c: In function ‘channel_write’:
channel.c:735:44: error: ‘union ast_frame_subclass’ has no member named 
‘codec’
channel.c: In function ‘new_channel’:
channel.c:1151:27: warning: assignment makes pointer from integer without a 
cast [enabled by default]
channel.c:1152:25: error: incompatible types when assigning to type ‘struct 
ast_format’ from type ‘int’
channel.c:1153:24: error: incompatible types when assigning to type ‘struct 
ast_format’ from type ‘int’
channel.c: In function ‘start_local_channel’:
channel.c:1242:34: error: ‘AST_FORMAT_AUDIO_MASK’ undeclared (first use in 
this function)
channel.c:1242:34: note: each undeclared identifier is reported only once for 
each function it appears in
channel.c: In function ‘channel_func_write’:
channel.c:1317:14: warning: variable ‘pvt’ set but not used 
[-Wunused-but-set-variable]
channel.c: At top level:
channel.c:1373:2: warning: initialization makes pointer from integer without a 
cast [enabled by default]
channel.c:1373:2: warning: (near initialization for 
‘channel_tech.capabilities’) [enabled by default]
channel.c:1374:16: error: ‘channel_request’ undeclared here (not in a 
function)
make: *** [channel.o] Error 1

#uname -a
Linux 192 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686 
athlon i386 GNU/Linux

Original issue reported on code.google.com by gorec2...@gmail.com on 18 Nov 2011 at 7:22

GoogleCodeExporter commented 9 years ago
aclocal && autoconf && automake -a

Original comment by pag...@gmail.com on 20 Nov 2011 at 9:19

GoogleCodeExporter commented 9 years ago
that won't fix it ofcourse. in asterisk 10 there are some stuff changed, here's 
a patch for a part of the errors ( thanks to wdoekes )

Original comment by dex...@d3xt3r01.tk on 21 Nov 2011 at 9:22

Attachments:

GoogleCodeExporter commented 9 years ago
How I can applay this patch? Kubuntu 11.10

Original comment by merenyas...@xorelse.com on 21 Nov 2011 at 9:36

GoogleCodeExporter commented 9 years ago
put it in the same dir where you have the source files and do patch -p0 -i 
file.patch ... but as I said... it's a part of it.. asterisk10 doesn't have 
AST_FORMAT_AUDIO_MASK ... and format_t is now a struct somewhere... don't 
expect to compile for now.. the patch is for the dev to use and improve and 
come up with a final fix.

Original comment by dex...@d3xt3r01.tk on 21 Nov 2011 at 9:41

GoogleCodeExporter commented 9 years ago
How can I get a notification when Asterisk to 10 will be ready this product? 
There is a great need.

Original comment by merenyas...@xorelse.com on 21 Nov 2011 at 9:49

GoogleCodeExporter commented 9 years ago
wdoekes did it again ( milk and cookies and stuff all go to him) . Attached a 
fix. Mailed to bg too.

Original comment by dex...@d3xt3r01.tk on 23 Nov 2011 at 12:14

Attachments:

GoogleCodeExporter commented 9 years ago
BIG Thank's - with last patch all work fine!

Original comment by gorec2...@gmail.com on 30 Nov 2011 at 3:53

GoogleCodeExporter commented 9 years ago
ok.thanks.

Original comment by bg_...@mail.ru on 13 Dec 2011 at 7:02

GoogleCodeExporter commented 9 years ago
what is fixed in patch3 ? 

Original comment by parbatwe...@gmail.com on 23 Jun 2012 at 10:15