keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions on Asterisk with SS7 Chinese variant. (有关Asterisk+中国七号信令的问题)

chan_ss7在asterisk 1.6安装出问题

14 years 11 months ago #3263 by exquisite
asterisk-1.6.1.0
dahdi-linux-complete-2.1.0.4+2.1.0.2
chan_ss7-1.1
版卡te110p
os: redhat as4 2.6.9-34.EL
因为asterisk是默认安装,好编译chan_ss7时,出现如下错,不知如何解决
make chan_ss7.so
Makefile:165: .depend: No such file or directory
gcc -MM -E -I../include/dahdi -I../include/asterisk -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.1\" chan_ss7.c l4isup.c isup.c mtp.c utils.c config.c cluster.c lffifo.c transport.c mtp3io.c astconfig.c aststubs.c mtp3d.c l4isup.h isup.h mtp.h utils.h config.h cluster.h lffifo.h transport.h aststubs.h astversion.h mtp3io.h > .depend.new && mv -f .depend.new .depend || rm -f .depend.new
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from l4isup.c:46:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
l4isup.c:64:20: zaptel.h: No such file or directory
mtp.c:46:20: zaptel.h: No such file or directory
mtp.c:48:22: fasthdlc.h: No such file or directory
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from utils.c:48:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from config.c:44:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
config.c:1002:38: macro "ast_config_load" requires 2 arguments, but only 1 given
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from cluster.c:47:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
transport.c:48:20: zaptel.h: No such file or directory
transport.c:50:22: fasthdlc.h: No such file or directory
astconfig.c:1316:56: macro "ast_config_load" requires 2 arguments, but only 1 given
In file included from /usr/include/asterisk/utils.h:26,
from aststubs.c:36:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
aststubs.c:286:56: macro "AST_LIST_INSERT_BEFORE_CURRENT" passed 3 arguments, but takes just 2
aststubs.c:359:46: macro "AST_LIST_REMOVE_CURRENT" passed 2 arguments, but takes just 1
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/strings.h:29,
from mtp3d.c:35:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/module.h:31,
from astversion.h:25:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
gcc -c -I../include/dahdi -I../include/asterisk -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic -finline-functions -O4 -DCHAN_SS7_VERSION=\"1.1\" -o chan_ss7.o chan_ss7.c
In file included from /usr/include/asterisk/lock.h:56,
from /usr/include/asterisk/linkedlists.h:23,
from /usr/include/asterisk/frame.h:35,
from /usr/include/asterisk/channel.h:140,
from chan_ss7.c:36:
/usr/include/asterisk/logger.h:87: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/logger.h:88: error: syntax error before "attribute_warn_unused_result"
In file included from /usr/include/asterisk/channel.h:140,
from chan_ss7.c:36:
/usr/include/asterisk/frame.h:651: error: syntax error before "int"
In file included from /usr/include/asterisk/channel.h:141,
from chan_ss7.c:36:
/usr/include/asterisk/sched.h:187: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/sched.h:200: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/sched.h:215: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/sched.h:228: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/sched.h:251: error: syntax error before "attribute_warn_unused_result"
/usr/include/asterisk/sched.h:266: error: syntax error before "attribute_warn_unused_result"
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."
In file included from /usr/include/asterisk/utils.h:26,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/network.h:90: error: syntax error before "int"
In file included from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/utils.h:209: error: field `hp' has incomplete type
/usr/include/asterisk/utils.h:266: error: syntax error before "void"
/usr/include/asterisk/utils.h:279: error: syntax error before "void"
/usr/include/asterisk/utils.h:292: error: syntax error before "void"
/usr/include/asterisk/utils.h:305: error: syntax error before "void"
/usr/include/asterisk/utils.h:434: error: syntax error before "_ast_malloc"
/usr/include/asterisk/utils.h:434: error: syntax error before "_ast_malloc"
/usr/include/asterisk/utils.h:457: error: syntax error before "_ast_calloc"
/usr/include/asterisk/utils.h:457: error: syntax error before "_ast_calloc"
/usr/include/asterisk/utils.h:493: error: syntax error before "_ast_realloc"
/usr/include/asterisk/utils.h:493: error: syntax error before "_ast_realloc"
/usr/include/asterisk/utils.h:520: error: syntax error before "_ast_strdup"
/usr/include/asterisk/utils.h:520: error: syntax error before "_ast_strdup"
/usr/include/asterisk/utils.h:549: error: syntax error before "_ast_strndup"
/usr/include/asterisk/utils.h:549: error: syntax error before "_ast_strndup"
In file included from /usr/include/asterisk/utils.h:676,
from /usr/include/asterisk/config.h:30,
from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/strings.h:48: error: syntax error before "int"
/usr/include/asterisk/strings.h:366: error: syntax error before "ast_str_create"
/usr/include/asterisk/strings.h:366: error: syntax error before "ast_str_create"
/usr/include/asterisk/strings.h:709: error: syntax error before "int"
/usr/include/asterisk/strings.h:734: error: syntax error before "int"
/usr/include/asterisk/strings.h:749: error: syntax error before "int"
In file included from /usr/include/asterisk/channel.h:143,
from chan_ss7.c:36:
/usr/include/asterisk/config.h:226: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:227: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:272: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:283: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:294: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:306: error: syntax error before "attribute_sentinel"
/usr/include/asterisk/config.h:318: error: syntax error before "attribute_sentinel"
In file included from chan_ss7.c:36:
/usr/include/asterisk/channel.h:1382: error: syntax error before "attribute_pure"
/usr/include/asterisk/channel.h:1389: error: syntax error before "attribute_pure"
/usr/include/asterisk/channel.h:1406: error: syntax error before "attribute_const"
/usr/include/asterisk/channel.h:1656: error: syntax error before "do"
chan_ss7.c:106: warning: initialization from incompatible pointer type
chan_ss7.c:108: warning: initialization from incompatible pointer type
chan_ss7.c:110: warning: initialization makes integer from pointer without a cast
chan_ss7.c:112: warning: initialization from incompatible pointer type
chan_ss7.c:117: warning: initialization from incompatible pointer type
chan_ss7.c:119: warning: initialization makes integer from pointer without a cast
chan_ss7.c:121: warning: initialization from incompatible pointer type
chan_ss7.c:125: warning: initialization from incompatible pointer type
chan_ss7.c:127: warning: initialization makes integer from pointer without a cast
chan_ss7.c:129: warning: initialization from incompatible pointer type
chan_ss7.c:131: warning: initialization from incompatible pointer type
chan_ss7.c:133: warning: initialization makes integer from pointer without a cast
chan_ss7.c:136: warning: initialization from incompatible pointer type
chan_ss7.c:143: warning: initialization from incompatible pointer type
chan_ss7.c:145: warning: initialization makes integer from pointer without a cast
chan_ss7.c:147: warning: initialization from incompatible pointer type
chan_ss7.c:151: warning: initialization from incompatible pointer type
chan_ss7.c:153: warning: initialization makes integer from pointer without a cast
chan_ss7.c:155: warning: initialization from incompatible pointer type
chan_ss7.c:158: warning: initialization from incompatible pointer type
chan_ss7.c:160: warning: initialization makes integer from pointer without a cast
chan_ss7.c:163: warning: initialization from incompatible pointer type
chan_ss7.c:166: warning: initialization from incompatible pointer type
chan_ss7.c:168: warning: initialization makes integer from pointer without a cast
chan_ss7.c:170: warning: initialization from incompatible pointer type
chan_ss7.c:173: warning: initialization from incompatible pointer type
chan_ss7.c:175: warning: initialization makes integer from pointer without a cast
chan_ss7.c:177: warning: initialization from incompatible pointer type
chan_ss7.c:180: warning: initialization from incompatible pointer type
chan_ss7.c:182: warning: initialization makes integer from pointer without a cast
chan_ss7.c:184: warning: initialization from incompatible pointer type
chan_ss7.c:187: warning: initialization from incompatible pointer type
chan_ss7.c:189: warning: initialization makes integer from pointer without a cast
chan_ss7.c:191: warning: initialization from incompatible pointer type
chan_ss7.c:194: warning: initialization from incompatible pointer type
chan_ss7.c:196: warning: initialization makes integer from pointer without a cast
chan_ss7.c:198: warning: initialization from incompatible pointer type
chan_ss7.c:201: warning: initialization from incompatible pointer type
chan_ss7.c:203: warning: initialization makes integer from pointer without a cast
chan_ss7.c:205: warning: initialization from incompatible pointer type
chan_ss7.c:208: warning: initialization from incompatible pointer type
chan_ss7.c:210: warning: initialization makes integer from pointer without a cast
chan_ss7.c:212: warning: initialization from incompatible pointer type
chan_ss7.c:215: warning: initialization from incompatible pointer type
chan_ss7.c:217: warning: initialization makes integer from pointer without a cast
chan_ss7.c:219: warning: initialization from incompatible pointer type
chan_ss7.c:222: warning: initialization from incompatible pointer type
chan_ss7.c:223: warning: initialization makes integer from pointer without a cast
chan_ss7.c:226: warning: initialization from incompatible pointer type
chan_ss7.c:229: warning: initialization from incompatible pointer type
chan_ss7.c:230: warning: initialization makes integer from pointer without a cast
chan_ss7.c: In function `monitor_main':
chan_ss7.c:754: warning: long unsigned int format, unsigned int arg (arg 6)
chan_ss7.c:754: warning: long unsigned int format, unsigned int arg (arg 7)
chan_ss7.c: At top level:
chan_ss7.c:937: error: `AST_BUILDOPT_SUM' undeclared here (not in a function)
chan_ss7.c:937: error: initializer element is not constant
chan_ss7.c:937: error: (near initialization for `__mod_info.buildopt_sum')
请教高人指点,谢谢
MSN:This email address is being protected from spambots. You need JavaScript enabled to view it.
14 years 11 months ago #3264 by james.zhu
安装gcc, 你没有安装吧,好好看看里面的readme.基本的支持包都没有那还怎么搞。
james.zhu

14 years 11 months ago #3272 by exquisite

Original posted by james.zhu at 2009-5-27 11:46


安装gcc, 你没有安装吧,好好看看里面的readme.基本的支持包都没有那还怎么搞。
james.zhu

没有gcc恐怕我连asterisk是都装不好吧,问题是asterisk已经能跑pri信令了
不是gcc的问题
readme,INSTALL是我装软件必看的,
可是readme里说的是软件的版本变化
INSTALL第一步就走不通

i] Last edited by exquisite at 2009-5-27 22:09 [/i
14 years 11 months ago #3274 by james.zhu
这个版本我没有测试过,但是 gcc 肯定有了问题。 makefile 里面的那一行是检查 gcc 的依赖关系的,所以我怀疑那个部分。

14 years 11 months ago #3295 by miaolin
/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."

。。。。
from chan_ss7.c:36

这里是关键,你看看这段代码是什么,估计是asterisk 的若干include文件需要别的头文件才能工作,应该是chan_ss7和asterisk之间的版本兼容问题,你可以换一下asterisk,或者看看asterisk自己是怎么使用这些头文件的,在这些头文件前,参考asterisk自己的源代码的用法,增加必要的头文件。
14 years 11 months ago #3300 by exquisite

Original posted by miaolin at 2009-5-31 09:52


/usr/include/asterisk/network.h:57:2: #error "don't know how to handle network functions here."

。。。。
from chan_ss7.c:36

这里是关键,你看看这段代码是什么,估计是asterisk 的若干include文件需要别的头 ...

这个答案比较合理!也就是说chan_ss7暂时还不支持asterisk1.6!
astversion.h里只定义了1.2和1.4
Time to create page: 0.069 seconds
Powered by Kunena Forum