[asterisk-ss7] chan_ss7 in asterisk Business Edition installation
ADEGOKE ARUNA
goksie at gmail.com
Fri Jun 9 02:04:50 MST 2006
Pat,
Thank you,
I located the zaptel.h and the include dir of the asterisk.
I got the attached error.
Kindly help please.
goksie
-----Original Message-----
From: asterisk-ss7-bounces at lists.digium.com
[mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Patrick
Sent: Thursday, June 08, 2006 9:15 PM
To: asterisk-ss7 at lists.digium.com
Subject: Re: [asterisk-ss7] chan_ss7 in asterisk Business Edition
installation
On Thu, 2006-06-08 at 19:09 +0100, Goke Aruna wrote:
> Pat,
>
> I checked the header file zaptel.h and /usr/include/asterisk and I
> pointed the command but it resulted in the same error.
>
> goksie
>
In the errors that you previously emailed it says:
chan_ss7.c:57:20: zaptel.h: No such file or directory
So doublecheck that it can find zaptel.h
If you have chan_ss7-0.8.4 source unpacked in e.g.
/usr/src/chan_ss7-0.8.4
than you need to have zaptel.h in
/usr/src/zaptel
Regards,
Patrick
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-ss7 mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-ss7
-------------- next part --------------
[root at qvoda chan_ss7-0.8.4]# INCLUDE="-I../../include/linux -I../../include/asterisk" make chan_ss7.so
gcc -c -I../../include/linux -I../../include/asterisk -I/usr/include/linux -I/usr/include/asterisk -g -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -DPIC -fpic -o chan_ss7.o chan_ss7.c
In file included from chan_ss7.c:26:
/usr/include/stdlib.h:96: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:98: error: syntax error before "typedef"
/usr/include/stdlib.h:140: error: syntax error before "extern"
/usr/include/stdlib.h:140: error: syntax error before "__THROW"
/usr/include/stdlib.h:145: error: syntax error before "extern"
/usr/include/stdlib.h:146: error: syntax error before "__THROW"
/usr/include/stdlib.h:149: error: syntax error before "__THROW"
/usr/include/stdlib.h:152: error: syntax error before "__THROW"
/usr/include/stdlib.h:165: error: syntax error before "extern"
/usr/include/stdlib.h:166: error: syntax error before "__THROW"
/usr/include/stdlib.h:183: error: syntax error before "extern"
/usr/include/stdlib.h:185: error: syntax error before "__THROW"
/usr/include/stdlib.h:189: error: syntax error before "__THROW"
/usr/include/stdlib.h:277: error: syntax error before "extern"
/usr/include/stdlib.h:279: error: syntax error before "__THROW"
/usr/include/stdlib.h:282: error: syntax error before "__THROW"
/usr/include/stdlib.h:285: error: syntax error before "__THROW"
/usr/include/stdlib.h:290: error: syntax error before "__THROW"
/usr/include/stdlib.h:297: error: syntax error before "__THROW"
/usr/include/stdlib.h:306: error: syntax error before "__THROW"
/usr/include/stdlib.h:315: error: syntax error before "__THROW"
/usr/include/stdlib.h:493: error: syntax error before "extern"
/usr/include/stdlib.h:493: error: syntax error before "__THROW"
/usr/include/stdlib.h:495: error: syntax error before "__THROW"
/usr/include/stdlib.h:582: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:584: error: syntax error before "extern"
/usr/include/stdlib.h:584: error: syntax error before "__size"
/usr/include/stdlib.h:586: error: syntax error before "__nmemb"
/usr/include/stdlib.h:592: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:595: error: syntax error before "extern"
/usr/include/stdlib.h:595: error: syntax error before "size_t"
/usr/include/stdlib.h:597: error: syntax error before "__THROW"
/usr/include/stdlib.h:620: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:622: error: syntax error before "extern"
/usr/include/stdlib.h:622: error: syntax error before "__THROW"
/usr/include/stdlib.h:626: error: syntax error before "__THROW"
/usr/include/stdlib.h:640: error: syntax error before "extern"
/usr/include/stdlib.h:640: error: syntax error before "__THROW"
/usr/include/stdlib.h:652: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:654: error: syntax error before "extern"
/usr/include/stdlib.h:654: error: syntax error before "__THROW"
/usr/include/stdlib.h:659: error: syntax error before "extern"
/usr/include/stdlib.h:659: error: syntax error before "__THROW"
/usr/include/stdlib.h:730: error: syntax error before "extern"
/usr/include/stdlib.h:757: error: syntax error before "typedef"
/usr/include/stdlib.h:767: error: syntax error before "extern"
/usr/include/stdlib.h:768: error: syntax error before "size_t"
/usr/include/stdlib.h:773: error: syntax error before "size_t"
/usr/include/stdlib.h:778: error: syntax error before "__THROW"
/usr/include/stdlib.h:779: error: syntax error before "__THROW"
/usr/include/stdlib.h:788: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:792: error: syntax error before "extern"
/usr/include/stdlib.h:793: error: syntax error before "__THROW"
/usr/include/stdlib.h:795: error: syntax error before "__THROW"
/usr/include/stdlib.h:863: error: syntax error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:866: error: syntax error before "extern"
/usr/include/stdlib.h:866: error: syntax error before "size_t"
/usr/include/stdlib.h:869: error: syntax error before '*' token
/usr/include/stdlib.h:873: error: syntax error before "wchar_t"
/usr/include/stdlib.h:877: error: syntax error before "mbstowcs"
/usr/include/stdlib.h:877: error: syntax error before '*' token
/usr/include/stdlib.h:880: error: syntax error before "wcstombs"
/usr/include/stdlib.h:881: error: syntax error before '*' token
/usr/include/stdlib.h:961: error: syntax error before "__END_DECLS"
In file included from chan_ss7.c:27:
/usr/include/string.h:38: error: syntax error before "extern"
/usr/include/string.h:39: error: syntax error before "size_t"
/usr/include/string.h:43: error: syntax error before "size_t"
/usr/include/string.h:59: error: syntax error before "extern"
/usr/include/string.h:59: error: syntax error before "size_t"
/usr/include/string.h:62: error: syntax error before "size_t"
/usr/include/string.h:66: error: syntax error before "size_t"
/usr/include/string.h:84: error: syntax error before "extern"
/usr/include/string.h:85: error: syntax error before "__THROW"
/usr/include/string.h:88: error: syntax error before "size_t"
/usr/include/string.h:93: error: syntax error before "__THROW"
/usr/include/string.h:96: error: syntax error before "size_t"
/usr/include/string.h:100: error: syntax error before "__THROW"
/usr/include/string.h:102: error: syntax error before "size_t"
/usr/include/string.h:107: error: syntax error before "__THROW"
/usr/include/string.h:109: error: syntax error before "strxfrm"
/usr/include/string.h:110: error: syntax error before "size_t"
/usr/include/string.h:167: error: syntax error before "extern"
/usr/include/string.h:168: error: syntax error before "__THROW"
/usr/include/string.h:171: error: syntax error before "__THROW"
/usr/include/string.h:184: error: syntax error before "extern"
/usr/include/string.h:185: error: syntax error before "__THROW"
/usr/include/string.h:188: error: syntax error before "strspn"
/usr/include/string.h:189: error: syntax error before "__THROW"
/usr/include/string.h:192: error: syntax error before "__THROW"
/usr/include/string.h:195: error: syntax error before "__THROW"
/usr/include/string.h:200: error: syntax error before "__THROW"
/usr/include/string.h:205: error: syntax error before "extern"
/usr/include/string.h:208: error: syntax error before "__THROW"
/usr/include/string.h:242: error: syntax error before "extern"
/usr/include/string.h:243: error: syntax error before "__THROW"
/usr/include/string.h:256: error: syntax error before "extern"
/usr/include/string.h:256: error: syntax error before "__THROW"
/usr/include/string.h:288: error: syntax error before "extern"
/usr/include/string.h:288: error: syntax error before "size_t"
In file included from /usr/include/stdio.h:36,
from chan_ss7.c:28:
/usr/include/bits/types.h:34: error: syntax error before "typedef"
In file included from chan_ss7.c:28:
/usr/include/stdio.h:46: error: syntax error before "typedef"
/usr/include/stdio.h:62: error: syntax error before "typedef"
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from chan_ss7.c:28:
/usr/include/gconv.h:72: error: syntax error before "size_t"
/usr/include/gconv.h:88: error: syntax error before "size_t"
/usr/include/gconv.h:97: error: syntax error before "size_t"
/usr/include/gconv.h:174: error: syntax error before "size_t"
/usr/include/gconv.h:176: error: syntax error before "__flexarr"
In file included from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from chan_ss7.c:28:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /usr/include/libio.h:62,
from /usr/include/stdio.h:72,
from chan_ss7.c:28:
/usr/include/sys/cdefs.h:45:44: missing binary operator before token "("
/usr/include/sys/cdefs.h:49:44: missing binary operator before token "("
/usr/include/sys/cdefs.h:136:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:194:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:203:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:212:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:221:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:233:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:243:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:252:19: missing binary operator before token "("
/usr/include/sys/cdefs.h:262:20: missing binary operator before token "("
/usr/include/sys/cdefs.h:267:20: missing binary operator before token "("
/usr/include/sys/cdefs.h:274:19: missing binary operator before token "("
In file included from /usr/include/stdio.h:72,
from chan_ss7.c:28:
/usr/include/libio.h:354: error: syntax error before "size_t"
/usr/include/libio.h:363: error: syntax error before "size_t"
/usr/include/libio.h:479: error: syntax error before "_IO_sgetn"
/usr/include/libio.h:479: error: syntax error before "size_t"
In file included from chan_ss7.c:28:
/usr/include/stdio.h:304: error: syntax error before "size_t"
/usr/include/stdio.h:605: error: syntax error before "fread"
/usr/include/stdio.h:605: error: syntax error before "size_t"
/usr/include/stdio.h:611: error: syntax error before "fwrite"
/usr/include/stdio.h:611: error: syntax error before "size_t"
In file included from /usr/include/sys/param.h:42,
from chan_ss7.c:30:
/usr/include/sys/types.h:46: error: conflicting types for 'loff_t'
/usr/include/linux/types.h:25: error: previous declaration of 'loff_t' was here
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:10: error: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:67: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:21: error: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:12: error: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:13: error: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:82: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:20: error: previous declaration of 'uid_t' was here
In file included from /usr/include/sys/param.h:42,
from chan_ss7.c:30:
/usr/include/sys/types.h:158:20: missing binary operator before token "("
In file included from chan_ss7.c:32:
/usr/include/sys/socket.h:65:43: missing binary operator before token "("
In file included from /usr/include/netinet/in.h:362,
from /usr/include/netdb.h:28,
from chan_ss7.c:35:
../../include/asterisk/endian.h:61:2: #error Need to know endianess
In file included from /usr/include/linux/signal.h:4,
from ../../include/linux/sched.h:25,
from /usr/include/pthread.h:20,
from chan_ss7.c:37:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/pthread.h:659,
from chan_ss7.c:37:
/usr/include/bits/sigthread.h:32: error: syntax error before '*' token
In file included from /usr/include/sys/time.h:28,
from /usr/include/asterisk/frame.h:24,
from /usr/include/asterisk/channel.h:20,
from chan_ss7.c:45:
/usr/include/bits/time.h:70: error: redefinition of `struct timeval'
In file included from /usr/include/sys/time.h:30,
from /usr/include/asterisk/frame.h:24,
from /usr/include/asterisk/channel.h:20,
from chan_ss7.c:45:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:9: error: previous declaration of 'fd_set' was here
In file included from /usr/include/asterisk/frame.h:24,
from /usr/include/asterisk/channel.h:20,
from chan_ss7.c:45:
/usr/include/sys/time.h:94: error: syntax error before numeric constant
/usr/include/sys/time.h:108: error: redefinition of `struct itimerval'
In file included from /usr/include/asterisk/channel.h:20,
from chan_ss7.c:45:
/usr/include/asterisk/frame.h:62:2: #error Need to know endianess
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:22,
from chan_ss7.c:45:
/usr/include/asterisk/lock.h: In function `ast_mutex_init':
/usr/include/asterisk/lock.h:317: error: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function)
/usr/include/asterisk/lock.h:317: error: (Each undeclared identifier is reported only once
/usr/include/asterisk/lock.h:317: error: for each function it appears in.)
chan_ss7.c: At top level:
chan_ss7.c:146: error: `AST_MAX_CONTEXT' undeclared here (not in a function)
chan_ss7.c: In function `mtp_enqueue_isup_packet':
chan_ss7.c:289: warning: implicit declaration of function `memcpy'
chan_ss7.c: In function `wakeup_monitor':
chan_ss7.c:310: warning: implicit declaration of function `write'
chan_ss7.c: In function `ss7_new':
chan_ss7.c:615: warning: implicit declaration of function `snprintf'
chan_ss7.c: In function `ss7_requester':
chan_ss7.c:672: warning: implicit declaration of function `strchr'
chan_ss7.c:684: warning: implicit declaration of function `strncpy'
chan_ss7.c: In function `handle_complete_address':
chan_ss7.c:1328: warning: implicit declaration of function `ast_copy_string'
chan_ss7.c:1333: warning: implicit declaration of function `strdup'
chan_ss7.c: In function `isup_phonenum_check':
chan_ss7.c:1428: warning: implicit declaration of function `strlen'
chan_ss7.c:1435: warning: implicit declaration of function `strncmp'
chan_ss7.c: In function `ss7_call':
chan_ss7.c:1722: warning: implicit declaration of function `strcpy'
chan_ss7.c: In function `ss7_handle_event':
chan_ss7.c:1874: warning: implicit declaration of function `strerror'
chan_ss7.c:1874: error: `errno' undeclared (first use in this function)
chan_ss7.c:1874: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `get_zaptel_event':
chan_ss7.c:1900: error: `errno' undeclared (first use in this function)
chan_ss7.c:1900: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `ss7_read':
chan_ss7.c:1920: warning: implicit declaration of function `memset'
chan_ss7.c:1933: warning: implicit declaration of function `read'
chan_ss7.c:1936: error: `errno' undeclared (first use in this function)
chan_ss7.c:1946: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `ss7_write':
chan_ss7.c:2013: error: `errno' undeclared (first use in this function)
chan_ss7.c:2022: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `ss7_exception':
chan_ss7.c:2052: error: `errno' undeclared (first use in this function)
chan_ss7.c:2052: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `process_sam':
chan_ss7.c:2529: warning: implicit declaration of function `strcat'
chan_ss7.c: In function `monitor_main':
chan_ss7.c:3480: warning: implicit declaration of function `getpid'
chan_ss7.c:3494: error: `errno' undeclared (first use in this function)
chan_ss7.c:3498: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `continuity_check_thread_main':
chan_ss7.c:3670: error: `errno' undeclared (first use in this function)
chan_ss7.c:3674: warning: format argument is not a pointer (arg 7)
chan_ss7.c:3695: warning: format argument is not a pointer (arg 7)
chan_ss7.c:3710: warning: format argument is not a pointer (arg 7)
chan_ss7.c:3727:94: macro "start_thread" passed 4 arguments, but takes just 3
chan_ss7.c: At top level:
chan_ss7.c:3728: error: syntax error before '{' token
chan_ss7.c:3732: warning: type defaults to `int' in declaration of `res'
chan_ss7.c:3732: error: `t' undeclared here (not in a function)
chan_ss7.c:3732: error: `thread_main' undeclared here (not in a function)
chan_ss7.c:3732: error: initializer element is not constant
chan_ss7.c:3732: warning: data definition has no type or storage class
chan_ss7.c:3733: error: syntax error before "if"
chan_ss7.c:3738: error: syntax error before '&' token
chan_ss7.c:3740: warning: type defaults to `int' in declaration of `res'
chan_ss7.c:3740: error: redefinition of 'res'
chan_ss7.c:3732: error: previous definition of 'res' was here
chan_ss7.c:3740: error: `sp' undeclared here (not in a function)
chan_ss7.c:3740: error: initializer element is not constant
chan_ss7.c:3740: warning: data definition has no type or storage class
chan_ss7.c:3741: error: syntax error before "if"
chan_ss7.c:3746: warning: type defaults to `int' in declaration of `running'
chan_ss7.c:3746: warning: initialization makes pointer from integer without a cast
chan_ss7.c:3746: warning: data definition has no type or storage class
chan_ss7.c:3748: error: syntax error before "return"
chan_ss7.c:3760:76: macro "start_thread" passed 4 arguments, but takes just 3
chan_ss7.c: In function `start_mtp_thread':
chan_ss7.c:3760: error: `start_thread' undeclared (first use in this function)
chan_ss7.c:3771:115: macro "start_thread" passed 4 arguments, but takes just 3
chan_ss7.c: In function `start_continuity_check_thread':
chan_ss7.c:3771: error: `start_thread' undeclared (first use in this function)
chan_ss7.c: In function `cmd_dump_start':
chan_ss7.c:3802: warning: implicit declaration of function `strcasecmp'
chan_ss7.c:3848: error: `errno' undeclared (first use in this function)
chan_ss7.c:3848: warning: format argument is not a pointer (arg 4)
chan_ss7.c: In function `complete_generic':
chan_ss7.c:3946: warning: implicit declaration of function `strncasecmp'
chan_ss7.c: In function `cmd_link_up_down':
chan_ss7.c:3989: warning: implicit declaration of function `atoi'
chan_ss7.c: In function `cmd_block_unblock':
chan_ss7.c:4091: warning: implicit declaration of function `strcmp'
chan_ss7.c:4098: warning: implicit declaration of function `strtol'
chan_ss7.c: In function `cleanup_pvt':
chan_ss7.c:4471: warning: implicit declaration of function `close'
chan_ss7.c:4491: warning: implicit declaration of function `free'
chan_ss7.c: In function `setup_cic':
chan_ss7.c:4502: warning: implicit declaration of function `malloc'
chan_ss7.c:4520: warning: implicit declaration of function `open'
chan_ss7.c:4522: error: `errno' undeclared (first use in this function)
chan_ss7.c:4522: warning: format argument is not a pointer (arg 6)
chan_ss7.c:4528: warning: format argument is not a pointer (arg 7)
chan_ss7.c:4534: warning: format argument is not a pointer (arg 7)
chan_ss7.c:4543: warning: format argument is not a pointer (arg 7)
chan_ss7.c:4549: warning: format argument is not a pointer (arg 7)
chan_ss7.c:4552: warning: implicit declaration of function `fcntl'
chan_ss7.c:4554: warning: format argument is not a pointer (arg 7)
chan_ss7.c:4560: warning: format argument is not a pointer (arg 7)
chan_ss7.c: In function `load_module':
chan_ss7.c:4769: warning: implicit declaration of function `ast_cli_register_multiple'
chan_ss7.c: In function `unload_module':
chan_ss7.c:4780: warning: implicit declaration of function `ast_cli_unregister_multiple'
chan_ss7.c: At top level:
chan_ss7.c:3635: warning: 'continuity_check_thread_main' defined but not used
{standard input}: Assembler messages:
{standard input}:800: Error: symbol `res' is already defined
make: *** [chan_ss7.o] Error 1
More information about the asterisk-ss7
mailing list