The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Asterisk


  • Subject: Re: Asterisk
  • From: "erdut1" <erdut1@xxxxxxxxx>
  • Date: Mon, 23 Jan 2006 22:20:09 -0000

has this been resolved ?

I'm getting the same error when trying to compile manager, just like
James dialer and hub compile fine.


Nick




--- In xap_automation@xxxxxxx, James <james@m...> wrote:
>
> It's asterisk@home 2.2  which is centos 4.2
>
> make for the hub and the asterisk dialler work fine, it's just the
> asterisk manager that fails.
> gcc is :
> gcc -v
> Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --disable-checking --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-java-awt=gtk
> --host=i386-redhat-linux
> Thread model: posix
> gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
>
>
> make
> gcc  -c  -g -Wall -O2 -DLINUX -DPC   asterisk.c
> asterisk.c:16:20: xapdef.h: No such file or directory
> asterisk.c:44: error: syntax error before '*' token
> asterisk.c:44: warning: type defaults to `int' in declaration of
`g_file'
> asterisk.c:44: warning: data definition has no type or storage class
> asterisk.c: In function `init_log':
> asterisk.c:49: warning: implicit declaration of function `fopen'
> asterisk.c:49: warning: assignment makes pointer from integer
without a cast
> asterisk.c:51: warning: implicit declaration of function `printf'
> asterisk.c: In function `write_log':
> asterisk.c:57: warning: implicit declaration of function `fputs'
> asterisk.c: In function `close_log':
> asterisk.c:61: warning: implicit declaration of function `fclose'
> asterisk.c: In function `router_send_str':
> asterisk.c:66: warning: implicit declaration of function `send'
> asterisk.c: In function `router_bind_port':
> asterisk.c:72: error: storage size of 'addr' isn't known
> asterisk.c:77: error: `AF_INET' undeclared (first use in this
function)
> asterisk.c:77: error: (Each undeclared identifier is reported only
once
> asterisk.c:77: error: for each function it appears in.)
> asterisk.c:78: warning: implicit declaration of function `inet_addr'
> asterisk.c:81: warning: implicit declaration of function `htons'
> asterisk.c:83: warning: implicit declaration of function `htonl'
> asterisk.c:85: warning: implicit declaration of function `socket'
> asterisk.c:85: error: `SOCK_STREAM' undeclared (first use in this
function)
> asterisk.c:86: warning: implicit declaration of function `perror'
> asterisk.c:92: warning: implicit declaration of function `setsockopt'
> asterisk.c:92: error: `SOL_SOCKET' undeclared (first use in this
function)
> asterisk.c:92: error: `SO_REUSEADDR' undeclared (first use in this
function)
> asterisk.c:93: warning: implicit declaration of function `fcntl'
> asterisk.c:93: error: `F_SETFL' undeclared (first use in this
function)
> asterisk.c:93: error: `O_NONBLOCK' undeclared (first use in this
function)
> asterisk.c:94: warning: implicit declaration of function `bind'
> asterisk.c:95: warning: implicit declaration of function `close'
> asterisk.c:99: warning: implicit declaration of function `listen'
> asterisk.c:72: warning: unused variable `addr'
> asterisk.c: In function `router_accept':
> asterisk.c:107: error: storage size of 'i_addr' isn't known
> asterisk.c:110: warning: implicit declaration of function `accept'
> asterisk.c:107: warning: unused variable `i_addr'
> asterisk.c: In function `asterisk_connect_server':
> asterisk.c:133: error: storage size of 'addr' isn't known
> asterisk.c:138: error: `AF_INET' undeclared (first use in this
function)
> asterisk.c:146: error: `SOCK_STREAM' undeclared (first use in this
function)
> asterisk.c:150: warning: implicit declaration of function `connect'
> asterisk.c:133: warning: unused variable `addr'
> asterisk.c: In function `process_asterisk_event':
> asterisk.c:177: warning: implicit declaration of function `strnicmp'
> asterisk.c:179: warning: implicit declaration of function `putchar'
> asterisk.c:206: warning: implicit declaration of function `sprintf'
> asterisk.c:206: error: `g_uid' undeclared (first use in this function)
> asterisk.c:206: error: `g_instance' undeclared (first use in this
function)
> asterisk.c:207: warning: implicit declaration of function
`xap_send_message'
> asterisk.c: In function `xap_handler':
> asterisk.c:235: warning: implicit declaration of function
`xapmsg_parse'
> asterisk.c:236: warning: implicit declaration of function
`xapmsg_gettype'
> asterisk.c:236: error: `XAP_MSG_ORDINARY' undeclared (first use in
this
> function)
> asterisk.c: In function `main':
> asterisk.c:267: error: storage size of 'i_client_address' isn't known
> asterisk.c:278: warning: implicit declaration of function `xap_init'
> asterisk.c:306: error: `g_instance' undeclared (first use in this
function)
> asterisk.c:337: warning: implicit declaration of function
> `xap_heartbeat_tick'
> asterisk.c:337: error: `HBEAT_INTERVAL' undeclared (first use in this
> function)
> asterisk.c:340: error: `g_xap_receiver_sockfd' undeclared (first use
in
> this function)
> asterisk.c:360: warning: implicit declaration of function `recvfrom'
> asterisk.c:367: warning: implicit declaration of function
> `xap_poll_incoming'
> asterisk.c:267: warning: unused variable `i_client_address'
> make: *** [asterisk.o] Error 1
>
> The directory structure is as you described and it did error when it
> originally couldn't find the xaplib but after moving the asterisk
source
> to the /manager/ sub directory it could find it correctly.
>
>
> James
>
>
> Patrick Lidstone (Personal E-mail) wrote:
> >
> >
> >
> >> -----Original Message-----
> >> From: James [mailto:james@m...]
> >> Sent: 02 January 2006 22:04
> >> To: xap_automation@xxxxxxx
> >> Subject: Re: [xap_automation] Asterisk
> >>
> >> Me again!
> >>
> >> I thought I would try running it directly on the Asterisk box
> >> to see if it worked any different. I downloaded the sources
> >> for xaplib, hub, dialler and asteriskmanager. For hub and
> >> dialler I unzipped them, ran make and got a working
> >> executable for each. I then tried to build the asterisk
> >> connector. First time it couldn't find xAP lib so I changed
> >> the Makefile from ../../xaplib to ../xaplib  (as it is in the
> >> other makefiles). Then i ran make again and it actually
> >> started compiling but it failed with lots of errors.  I also
> >> tried changing OS=Win to OS=linux in the makefile but that
> >> didn't help.  I'm guessing it needs a different version of
> >> the xaplib. Is that available for download? or just a
> >> compiled bin maybe?
> >>
> >
> > There's no difference in the linux xapLib, it is completely cross
platform
> > and should just compile out of the box.
> > Which gcc are you using? Which linux distribution? Can you send
me
the error
> > messages (offlist is fine if they are very long and tedious)
> >
> > The makefile expects the following directory structure
> >
> >
> >
> > Xap
> >   +--xAPlib
> >   +--asterisk
> >   +      +--- dialler
> >   +      +--- manager
> >   +--xAPhub
> >
> > You should be making with:
> > make xaplib
> > make dialler
> >
> > Etc.
> > Executed from the subdirectory of the given component
> >
> > Patrick
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
>








xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.