< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Trying to build resipricate into X-Code project


I get these folowing errors when I try and compile it... when can we meet online to talk
about this?

I used the following directory organization...

resiprocate-0.9.0 (untarred release)
resiprocate
ares - All .cxx files, including all it's header files - added to X-Code project with "Add"
   build - built by X_Code
   SIP_proj.xcode - X-Code project
sip_source - All SIP source .cxx and .hxx files in here - added to X-code project with "Add"
       dum - all 'dum' source code in here, including .hxx files.
         os - all 'os' source code modules in here.

Added this line to "ares.h"

#define USE_ARES

for lack of a better place to put it. Is there a way I can tell X-Code to globally #define it?
remember - I'm using ver 1.5

Then,  in the

Error messages below.

cd /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0 -ffix-and-continue -fzero-link -F/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build -I/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build/include -I/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build/SIP_proj.build/SIP_proj.build/DerivedSources -Wp,-header-mapfile,/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build/SIP_proj.build/SIP_proj.build/SIP_proj.hmap -include /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build/SIP_proj.build/SharedCaches/SIP_proj_Prefix-aongcpinghiqpjcafzeasoiafkai/SIP_proj_Prefix.pch -c /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx -o /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/build/SIP_proj.build/SIP_proj.build/Objects-normal/ppc/DnsResult.o /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:48:2: warning: #warning "ARES is required" /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx: In member function `void resip::DnsResult::processNAPTR(int, const unsigned char*, int)': /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:372: error: `HFIXEDSZ' undeclared (first use this function)

NOTE: this is defined in 'ares.h' and I'm including it.... WTF? But I notice this...

#if defined(USE_ARES)
extern "C"
{
#include "ares.h" <--- I'm defining USE_ARES here... because I lack the knowledge to globally define it.
#include "ares_dns.h"
}
#endif


/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:372: error: (Each undeclared identifier is reported only once for each function it appears in.) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:373: error: `DNS_HEADER_QDCOUNT' undeclared (first use this function)

NOTE: shit is defined in 'ares_dns.h' and I'm including it... also same for rest of "undefines" listed below.

/Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:379: error: `DNS_HEADER_ANCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:429: error: `DNS_HEADER_NSCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:437: error: `DNS_HEADER_ARCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx: In member function `const unsigned char* resip::DnsResult::parseAdditional(const unsigned char*, const unsigned char*, int)': /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:977: error: `ares_expand_name' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:978: error: `ARES_SUCCESS' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:988: error: `RRFIXEDSZ' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:997: error: `DNS_RR_TYPE' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:998: error: `DNS_RR_LEN' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:1018: error: `DNS__16BIT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:1063: error: `T_A' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:1108: error: `T_CNAME' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx: In static member function `static const unsigned char* resip::DnsResult::skipDNSQuestion(const unsigned char*, const unsigned char*, int)': /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:1141: error: `QFIXEDSZ' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:48:2: warning: #warning "ARES is required" /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:372: error: `HFIXEDSZ' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:372: error: (Each undeclared identifier is reported only once for each function it appears in.) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:373: error: `DNS_HEADER_QDCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:379: error: `DNS_HEADER_ANCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:429: error: `DNS_HEADER_NSCOUNT' undeclared (first use this function) /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/sip_source/DnsResult.cxx:437: error: `DNS_HEADER_ARCOUNT' undeclared (first use this function)

-----

John