Re: [Siproxd-users] problem with make
Status: Beta
Brought to you by:
tries
|
From: Thomas R. <tr...@gm...> - 2003-09-24 17:34:03
|
Hi sting,
I know why this problem occurs - I created this bug :-)
The calling arguments of the two functions rtp_masq_start_fwd() and
rtp_masq_stop_fwd() in the ELSE part of ifdef HAVE_LINUX_IP_MASQ_H are
simply wrong.
Correct is:
--snip--
#else
/*
* don't have ipchains or iptables - dummy routines and complain
*/
int rtp_masq_start_fwd(osip_call_id_t *callid, int media_stream_no,
struct in_addr outbound_ipaddr, int *outbound_lcl_port,
struct in_addr lcl_client_ipaddr, int lcl_clientport) {
outbound_lcl_port=0;
ERROR("Masquerading support is not enabled (compile time config option)");
return STS_FAILURE;
}
int rtp_masq_stop_fwd(osip_call_id_t *callid) {
return STS_FAILURE;
}
#endif
--snip--
Regards,
/Thomas
On 24 Sep, sting sting wrote:
> Hello ,
> I had downloaded siproxd 0.3.6.targ.gz from sf.net and tried to perform
> ./configure
>
> Since I got an error of mssing : osip lib , I had also downloaded
> libosip2-2.0.2
> and performed ./configure,make,make install on that lib.
>
> Now I had performed ./cofgure on siproxd successfully ; But when trying to
> perform make
> I get the following error:
>
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -pthread -Wall -DBUILDSTR=\"`cat
> .buildno`\" -D_GNU_SOURCE -c rtpproxy_masq.c
> rtpproxy_masq.c:342: conflicting types for `rtp_masq_start_fwd'
> rtpproxy.h:52: previous declaration of `rtp_masq_start_fwd'
> rtpproxy_masq.c:347: conflicting types for `rtp_masq_stop_fwd'
> rtpproxy.h:53: previous declaration of `rtp_masq_stop_fwd'
> make[2]: *** [rtpproxy_masq.o] Error 1
> make[2]: Leaving directory `/work/src/siproxd-0.3.6/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/work/src/siproxd-0.3.6'
> make: *** [all-recursive-am] Error 2
> I saw that in the code (it is rtpproxy_masq.c) this method appears twice
> (the second is in else of #ifdef 0 )
>
> Does anybody why this problem occurs ?
> What should I do to make siproxd?
>
> regards,
> sting
>
--
GnuPG: pub 1024D/87BCDC94 2000-03-19 Thomas Ries <tr...@gm...>
- Fingerprint = 13D1 19F5 77D0 4CEC 8D3F A24E 09FC C18A 87BC DC94
- Key via pgp.openpkg.org / http://www.ries.ch.vu/87BCDC94.pub
VoIP: sip:174...@pr... | sip:th...@ri... |