----- Original Message -----
> 32 bit systems still exist? :-D

Sadly... :-/

> int ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const
> unsigned char*,int,const unsigned char*,unsigned char*,int)
> ../iocore/dns/libinkdns.a(DNS.o)
>
> Find which file that exists in and run nm against the lib | c++filt
> to
> understand the type signature that is "really" has.

igalic@asd5inbld002:/buildr/mgar/pkg/trafficserver/trunk/work/build-isa-i386/trafficserver-3.0.0>
 for i in $( ggrep -r ink_res_mkquery *| awk '/Binary/{print $3}' ); do echo $i 
; nm $i | c++filt | grep ' ink_res_mkquery(' ; done

iocore/dns/libinkdns.a
[519]   |         0|       0|FUNC |GLOB |0    |UNDEF  |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
iocore/dns/DNS.o
[519]   |         0|       0|FUNC |GLOB |0    |UNDEF  |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/ink_res_mkquery.o
[35]    |        32|     650|FUNC |GLOB |0    |2      |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/.libs/libtsutil.so
[753]   |     94716|     693|FUNC |GLOB |0    |12     |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/.libs/ink_res_mkquery.o
[35]    |        52|     693|FUNC |GLOB |0    |2      |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/.libs/libtsutil.a
[35]    |        32|     650|FUNC |GLOB |0    |2      |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/.libs/libtsutil.so.3.0.0
[753]   |     94716|     693|FUNC |GLOB |0    |12     |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)
lib/ts/.libs/libtsutil.so.3
[753]   |     94716|     693|FUNC |GLOB |0    |12     |int 
ink_res_mkquery(__ink_res_state*,int,const char*,int,int,const unsigned 
char*,int,const unsigned char*,unsigned char*,int)



The files origin is lib/ts/ink_res_mkquery.cc
/*%
 * Form all types of queries.
 * Returns the size of the result or -1.
 */
int
ink_res_mkquery(ink_res_state statp,
             int op,                    /*!< opcode of query  */
             const char *dname,         /*!< domain name  */
             int _class, int type,      /*!< _class and type of query  */
             const u_char *data,        /*!< resource record data  */
             int datalen,               /*!< length of data  */
             const u_char *newrr_in,    /*!< new rr for modify or append  */
             u_char *buf,               /*!< buffer to put query  */
             int buflen)                /*!< size of buffer  */

int_res_mkquery.o is compiled into libtsutil.(a|so)
The symbol is referenced by iocore/dns/libinkdns.a, in in DNS.cc
in a static function - but isn't found in that form.
Where are we going wrong?

> My _guess_ is that one of those is long int vs. long long int or
> something like that.  Most likely a C++ type signature mismatch
> between what was built vs. what's expected.

All these signatures look exactly the same to me.


> --
> Theo Schlossnagle
>
> http://omniti.com/is/theo-schlossnagle

--
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.ga...@brainsware.org
URL: http://brainsware.org/

Reply via email to