[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    Re: [Serdev] Re: [Serusers] nathelper updated to support RTP
From:       "Ricardo Villa" <ricvil () epm ! net ! co>
Date:       2003-08-07 11:48:31
Message-ID: 002201c35cd9$d336fa00$0a00a8c0 () sunnyvale
[Download RAW message or body]

Hi Yang,

It still does not compile...if you find a way to make it work let me know
please.

Thanks.

# make -f Makefile.gnu
gcc  -o main.o -c main.c
In file included from main.c:37:
myqueue.h:40:23: sys/cdefs.h: No such file or directory
main.c:43:17: err.h: No such file or directory
main.c: In function `setbindhost':
main.c:112: structure has no member named `sin_len'
main.c: In function `main':
main.c:362: structure has no member named `sun_len'
make: *** [main.o] Error 1
#

# make modules=modules/nathelper modules
make[1]: Entering directory
`/opt/software/sip/cvs/ser/sip_router/modules/nathelper'
make[1]: Leaving directory
`/opt/software/sip/cvs/ser/sip_router/modules/nathelper'
make[1]: Entering directory
`/opt/software/sip/cvs/ser/sip_router/modules/nathelper'
gcc -fPIC -DPIC -g -O9 -funroll-loops   -Wall  -mcpu=ultrasparc -mtune=ultra
sparc      -DNAME='"ser"' -DVERSION='"0.8.12dev-t10"' -DARCH='"sparc64"' -DO
S='"solaris"' -DCOMPILER='"gcc
3.2"' -D__CPU_sparc64 -D__OS_solaris -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG
_MALLOC -DSHM_MEM  -DSHM_MMAP -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DD
NS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC  -DFAST_LOCK -DHA
VE_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -c nathelper.c -o
nathelper.o
nathelper.c: In function `extract_mediaport':
nathelper.c:429: warning: subscript has type `char'
nathelper.c: In function `get_rtpp_port':
nathelper.c:572: structure has no member named `sun_len'
make[1]: *** [nathelper.o] Error 1
make[1]: Leaving directory
`/opt/software/sip/cvs/ser/sip_router/modules/nathelper'
#




----- Original Message -----
From: "Yang Xiang" <yang.xiang@iitb.fraunhofer.de>
To: "Maxim Sobolev" <sobomax@portaone.com>; "Andrei Pelinescu-Onciul"
<pelinescu-onciul@fokus.fraunhofer.de>
Cc: <serdev@lists.iptel.org>; "Ricardo Villa" <ricvil@epm.net.co>
Sent: Thursday, August 07, 2003 4:01 AM
Subject: Re: [Serdev] Re: [Serusers] nathelper updated to support RTP


> Hi, Maxim,
>
> I am glad to hear this. I'll try it soon and let you know then.
>
> yang
>
>
> ----- Original Message -----
> From: "Maxim Sobolev" <sobomax@portaone.com>
> To: "Andrei Pelinescu-Onciul" <pelinescu-onciul@fokus.fraunhofer.de>
> Cc: "Yang Xiang" <yang.xiang@iitb.fraunhofer.de>; <serdev@lists.iptel.org>;
> "Ricardo Villa" <ricvil@epm.net.co>
> Sent: Tuesday, August 05, 2003 11:34 AM
> Subject: Re: [Serdev] Re: [Serusers] nathelper updated to support RTP
>
>
> > Ok, I've get rid of offending functions: turned warn/err into macros,
> > while ifdef'ed usage of daemon() and gethostbyname2() on solaris. The
> > latter means that two non-essential features will be absent on Solaris,
> > particularly ability to automatically daemonize the rtpproxy (can be
> > worked around by using "nohup rtpproxy&") and ability to specify
> > hostname instead of IP as an argument for -l option. I've also added
> > some Solaris glue into Makefile.gnu - now it should be possible to
> > compile it on Solaris by uncommenting appropriate section in
> > Makefile.gnu and executing:
> >
> > $ make -f Makefile.gnu
> >
> > I have not actually tested it on Solaris due to the lack of hardware, so
> > that any feedback is greatly appreciated.
> >
> > Updated tarball can be downloaded here:
> >
> > https://demo.portaone.com/~sobomax/PortaSIP/rtpproxy.tar
> >
> > -Maxim
> >
> > Andrei Pelinescu-Onciul wrote:
> >
> > > On Jul 30, 2003 at 12:05, Yang Xiang <yang.xiang@iitb.fraunhofer.de>
> wrote:
> > >
> > >>Hi,
> > >>
> > >>unfortunately I can't get rtpproxy compiled. I have removed cdefs.h
from
> > >>myqueue.h and err.h from main.c because I can't find them in solaris
> > >>library.
> > >>
> > >>While trying to link the objects:
> > >>
> > >>bash-2.03# gcc -lsocket -lnsl -o rtpproxy main.o
> > >>Undefined                       first referenced
> > >> symbol                             in file
> > >>daemon                              main.o
> > >>inet_aton                           main.o
> > >>err                                 main.o
> > >>warn                                main.o
> > >>warnx                               main.o
> > >>gethostbyname2                      main.o
> > >>errx                                main.o
> > >>ld: fatal: Symbol referencing errors. No output written to rtpproxy
> > >>collect2: ld returned 1 exit status
> > >
> > >
> > > gethostbyname2 does not exist on solaris. You can use getipnodebyname
> > > instead (but this will allocate dynamically the hostent struct., so
> > > you'll have to free it).
> > > You could also use resolvehost from ser/resolve.h (and take care to
> > > define HAVE_GETIPNODEBYNAME; HAVE_GETHOSTBYNAME2).
> > >
> > > [...]
> > >
> > > Andrei
> > >
> > >
> > >
> >
> >
> >
>
>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic