[Serdev] Re: [Serusers] nathelper updated to support RTP

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Wed Jul 30 10:53:56 UTC 2003


On Jul 30, 2003 at 12:05, Yang Xiang <yang.xiang at 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




More information about the Serdev mailing list