atefsaeed2010 / datacard

Automatically exported from code.google.com/p/datacard
Other
0 stars 1 forks source link

request for member integer in something not a structure or union #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.installation after extraction using 'make'

What is the expected output? What do you see instead?
gcc -g -O2 -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: error: expected declaration specifiers or ‘...’ before 
‘format_t’
channel.c: In function ‘channel_request’:
channel.c:110: error: ‘format_t’ undeclared (first use in this function)
channel.c:110: error: (Each undeclared identifier is reported only once
channel.c:110: error: for each function it appears in.)
channel.c:110: error: expected ‘;’ before ‘oldformat’
channel.c:129: error: ‘oldformat’ undeclared (first use in this function)
channel.c:129: error: ‘format’ undeclared (first use in this function)
channel.c: In function ‘channel_call’:
channel.c:219: error: ‘struct ast_channel’ has no member named 
‘connected’
channel.c: In function ‘channel_read’:
channel.c:621: error: request for member ‘codec’ in something not a 
structure or union
channel.c:665: error: request for member ‘integer’ in something not a 
structure or union
channel.c:665: error: request for member ‘integer’ in something not a 
structure or union
channel.c:668: error: request for member ‘integer’ in something not a 
structure or union
channel.c:679: error: request for member ‘integer’ in something not a 
structure or union
channel.c:681: error: request for member ‘integer’ in something not a 
structure or union
channel.c:685: error: request for member ‘integer’ in something not a 
structure or union
channel.c:687: error: request for member ‘integer’ in something not a 
structure or union
channel.c:689: error: request for member ‘integer’ in something not a 
structure or union
channel.c:695: error: request for member ‘integer’ in something not a 
structure or union
channel.c:697: error: request for member ‘integer’ in something not a 
structure or union
channel.c:701: error: request for member ‘integer’ in something not a 
structure or union
channel.c:702: error: request for member ‘integer’ in something not a 
structure or union
channel.c: In function ‘channel_write’:
channel.c:734: error: request for member ‘codec’ in something not a 
structure or union
channel.c: In function ‘new_channel’:
channel.c:1134: error: ‘const struct ast_channel’ has no member named 
‘linkedid’
channel.c:1134: warning: too many arguments for format
channel.c: In function ‘start_local_channel’:
channel.c:1236: warning: passing argument 4 of ‘ast_request’ from 
incompatible pointer type
channel.c:1236: error: too many arguments to function ‘ast_request’
channel.c: At top level:
channel.c:1368: warning: initialization from incompatible pointer type
make: *** [channel.o] Error 1

What version of the product are you using? On what operating system?
Elastix on Centos 32bit kernel 2.6.18-194.3.1.el5

Please provide any additional information below.
i've used the compressed file version from the downloads section

Thank you

Original issue reported on code.google.com by Abdullah...@gmail.com on 1 Apr 2011 at 2:57

GoogleCodeExporter commented 9 years ago
the Asterisk version is  1.6

Original comment by Abdullah...@gmail.com on 1 Apr 2011 at 4:27

GoogleCodeExporter commented 9 years ago
i think you compilatiion use asterisk 1.8 header files.

check line channel.c:100
its complited only when  ASTERISK_VERSION_NUM >= 10800

please use --with-asterisk= 
option of configure for asterisk instance selection

Original comment by bg_...@mail.ru on 1 Apr 2011 at 5:17

GoogleCodeExporter commented 9 years ago
when i pointed the arg --with-asterisk to 1.6.2 header files i got same errors, 
but when pointed to 1.8 header files it went ok

so, is this channel driver only works with asterisk 1.8 ?

Original comment by Abdullah...@gmail.com on 1 Apr 2011 at 7:25

GoogleCodeExporter commented 9 years ago
you has mixed asterisk 1.8 and asterisk 1.6 headers 
in your system.

Original comment by bg_...@mail.ru on 3 Apr 2011 at 1:41

GoogleCodeExporter commented 9 years ago
I have the same error...how to resolve it?

Original comment by maatohew...@gmail.com on 6 Jul 2011 at 12:00

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hope it will help somebody.
I've built asterisk 1.6.2 from SVN branch by checkout.
And had the same issue which appeared to be caused by contents of 
asterisk/version.h.
The definition was:
#define ASTERISK_VERSION_NUM 99999
So if you have asterisk 1.6.2 chan_dongle thinks it's 1.8.
Just change it to
#define ASTERISK_VERSION_NUM 10600

Original comment by biochesh...@gmail.com on 6 Jan 2013 at 9:34