Сообщений: 4
|
Re: Установка H323
У меня тоже не получается обрать H323 из svn trunk. Все библиотеки и GCC свежее, чем указаны в README
debian:~/asterisk-dev/asterisk/channels/h323# make opt
g++ -DNDEBUG -I../../include/asterisk -include autoconfig.h -fPIC -DP_USE_PRAGMA -D_REENTRANT -Wall -fPIC -DPIC -I/usr/local/share/pwlib//include -DPTRACING -I/root/openh323-dev/openh323_v1_19_0_1/include -Os -pipe -felide-constructors -Wreorder -c ast_h323.cxx -o ast_h323.o
In file included from /usr/include/arpa/inet.h:22,
from ast_h323.cxx:31:
../../include/asterisk/features.h:44: error: parse error in method
specification before `;' token
../../include/asterisk/features.h:45: error: parse error before `}' token
In file included from /usr/include/bits/types.h:31,
from /usr/include/sys/types.h:31,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/stddef.h:213: error: parse error
before `typedef'
In file included from /usr/include/sys/time.h:30,
from ../../include/asterisk/time.h:26,
from /usr/include/sys/types.h:133,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/select.h:109: error: syntax error before `int'
In file included from ../../include/asterisk/time.h:26,
from /usr/include/sys/types.h:133,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/time.h:64: error: parse error before `typedef'
/usr/include/sys/time.h:73: error: type specifier omitted for parameter `
__timezone_ptr_t'
/usr/include/sys/time.h:73: error: parse error before `)' token
/usr/include/sys/time.h:73: error: storage class specified for field `
gettimeofday'
/usr/include/sys/time.h:126: error: storage class specified for field `
getitimer'
/usr/include/sys/time.h:126: error: parse error before `;' token
/usr/include/sys/time.h:133: error: storage class specified for field `
setitimer'
/usr/include/sys/time.h:133: error: parse error before `;' token
/usr/include/sys/time.h:139: error: storage class specified for field `utimes'
/usr/include/sys/time.h:139: error: parse error before `;' token
In file included from /usr/include/sys/types.h:133,
from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
../../include/asterisk/time.h:33: error: syntax error before `struct'
../../include/asterisk/time.h:34: error: `tv' was not declared in this scope
../../include/asterisk/time.h:35: error: `tv' was not declared in this scope
../../include/asterisk/time.h:43: error: storage class specified for field `
ast_tvdiff_ms'
../../include/asterisk/time.h:43: error: `int
ast_call_feature::ast_tvdiff_ms(ast_call_feature::timeval,
ast_call_feature::timeval)' and `int
ast_call_feature::ast_tvdiff_ms(ast_call_feature::timeval,
ast_call_feature::timeval)' cannot be overloaded
../../include/asterisk/time.h:59: error: storage class specified for field `
ast_tvzero'
../../include/asterisk/time.h:59: error: `int
ast_call_feature::ast_tvzero(ast_call_feature::timeval)' and `int
ast_call_feature::ast_tvzero(ast_call_feature::timeval)' cannot be
overloaded
../../include/asterisk/time.h:70: error: storage class specified for field `
ast_tvcmp'
../../include/asterisk/time.h:70: error: `int
ast_call_feature::ast_tvcmp(ast_call_feature::timeval,
ast_call_feature::timeval)' and `int
ast_call_feature::ast_tvcmp(ast_call_feature::timeval,
ast_call_feature::timeval)' cannot be overloaded
../../include/asterisk/time.h:89: error: storage class specified for field `
ast_tveq'
../../include/asterisk/time.h:89: error: `int
ast_call_feature::ast_tveq(ast_call_feature::timeval,
ast_call_feature::timeval)' and `int
ast_call_feature::ast_tveq(ast_call_feature::timeval,
ast_call_feature::timeval)' cannot be overloaded
../../include/asterisk/time.h:99: error: storage class specified for field `
ast_tvnow'
../../include/asterisk/time.h:99: error: `ast_call_feature::timeval
ast_call_feature::ast_tvnow()' and `ast_call_feature::timeval
ast_call_feature::ast_tvnow()' cannot be overloaded
../../include/asterisk/time.h:121: error: storage class specified for field `
ast_tv'
../../include/asterisk/time.h:121: error: `ast_call_feature::timeval
ast_call_feature::ast_tv(int, int)' and `ast_call_feature::timeval
ast_call_feature::ast_tv(int, int)' cannot be overloaded
../../include/asterisk/time.h:136: error: storage class specified for field `
ast_samp2tv'
../../include/asterisk/time.h:136: error: `ast_call_feature::timeval
ast_call_feature::ast_samp2tv(unsigned int, unsigned int)' and `
ast_call_feature::timeval ast_call_feature::ast_samp2tv(unsigned int,
unsigned int)' cannot be overloaded
In file included from /usr/include/sys/uio.h:24,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/types.h:158:20: missing binary operator before token "("
In file included from /usr/include/sys/uio.h:29,
from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/bits/uio.h:42: error: parse error before `{' token
/usr/include/bits/uio.h:45: error: 'size_t' is used as a type, but is not
defined as a type.
../../include/asterisk/features.h: In member function `int
ast_call_feature::AST_LIST_ENTRY(ast_call_feature)':
../../include/asterisk/features.h:44: error: parse error before `;' token
../../include/asterisk/features.h: At global scope:
../../include/asterisk/features.h:44: error: parse error at end of saved
function text
../../include/asterisk/time.h: In member function `ast_call_feature::timeval
ast_call_feature::ast_tvnow()':
../../include/asterisk/time.h:99: error: `NULL' undeclared (first use this
function)
../../include/asterisk/time.h:99: error: (Each undeclared identifier is
reported only once for each function it appears in.)
In file included from /usr/include/sys/socket.h:27,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/uio.h: At global scope:
/usr/include/sys/uio.h:40: error: syntax error before `(' token
/usr/include/sys/uio.h:50: error: syntax error before `(' token
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/bits/socket.h:36: error: syntax error before `typedef'
In file included from /usr/include/sys/socket.h:35,
from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/bits/socket.h:165: error: '__uint32_t' is used as a type, but is
not defined as a type.
/usr/include/bits/socket.h:166: error: `__uint32_t' was not declared in this
scope
/usr/include/bits/socket.h:218: error: 'socklen_t' is used as a type, but is
not defined as a type.
/usr/include/bits/socket.h:221: error: 'size_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:224: error: 'size_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:232: error: 'size_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:237: error: parse error before `;' token
/usr/include/bits/socket.h: In function `cmsghdr* __cmsg_nxthdr(msghdr*,
cmsghdr*)':
/usr/include/bits/socket.h:258: error: parse error before `;' token
/usr/include/bits/socket.h:299: error: 'pid_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:300: error: 'uid_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:301: error: 'gid_t' is used as a type, but is not
defined as a type.
In file included from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/socket.h:65:43: missing binary operator before token "("
In file included from /usr/include/netinet/in.h:24,
from /usr/include/arpa/inet.h:23,
from ast_h323.cxx:31:
/usr/include/sys/socket.h: In function `int socket(int, int, int)':
/usr/include/sys/socket.h:100: error: parse error before `;' token
/usr/include/sys/socket.h:100: error: redefinition of `int __THROW'
/usr/include/bits/socket.h:258: error: `int __THROW' previously declared here
/usr/include/sys/socket.h: In function `int socketpair(int, int, int, int*)':
/usr/include/sys/socket.h:107: error: parse error before `;' token
/usr/include/sys/socket.h:107: error: redefinition of `int __THROW'
/usr/include/sys/socket.h:100: error: `int __THROW' previously declared here
/usr/include/sys/socket.h:110: confused by earlier errors, bailing out
make: *** [ast_h323.o] Error 1
debian:~/asterisk-dev/asterisk/channels/h323#
|