Mailing List Archive

size of symbol `__ns_msg_getflag' changed from 58 to 31
Thanks
I patched it with your patch and got the following error:
----
gcc -shared .libs/spf_compile.o .libs/spf_config.o .libs/spf_dns.o
.libs/spf_dns_cache.o .libs/spf_dns_null.o .libs/spf_dns_resolv.o
.libs/spf_dns_rr.o .libs/spf_dns_test.o .libs/spf_dns_windns.o
.libs/spf_dns_zone.o .libs/spf_expand.o .libs/spf_find_mod.o
.libs/spf_get_exp.o .libs/spf_get_spf.o .libs/spf_id2str.o
.libs/spf_interpret.o .libs/spf_log.o .libs/spf_log_default.o
.libs/spf_log_stdio.o .libs/spf_log_syslog.o .libs/spf_optimize.o
.libs/spf_print.o .libs/spf_record.o .libs/spf_request.o
.libs/spf_response.o .libs/spf_result.o .libs/spf_server.o
.libs/spf_strerror.o .libs/spf_utils.o .libs/spf_verify.o
.libs/spf_win32.o -Wl,--whole-archive
../../src/libreplace/.libs/libreplace.a -Wl,--no-whole-archive -pthread
-L/usr/local/lib -lbind -lintl -Wl,-soname -Wl,libspf2.so.2 -o
.libs/libspf2.so.2
/usr/local/lib/libbind.a(ns_parse.o): In function `__ns_msg_getflag':
ns_parse.o(.text+0x0): multiple definition of `__ns_msg_getflag'
../../src/libreplace/.libs/libreplace.a(__ns_msg_getflag.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `__ns_msg_getflag' changed
from 58 to 31 in /usr/local/lib/libbind.a(ns_parse.o)
*** Error code 1

Stop in /mnt/disk/A/com/libspf2-1.2.5/src/libspf2.
*** Error code 1
----
Gratefully

Oleg Golovanov

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com
Re: size of symbol `__ns_msg_getflag' changed from 58 to 31 [ In reply to ]
I tried to get away the multiple definition as the follows:
----
# cat __ns_msg_getflag.c
/* #include "port_before.h" */
#include "config.h"

#ifdef STDC_HEADERS
# include <stdio.h>
#endif

#include <sys/types.h>

#include <netinet/in.h>
#include "arpa_nameser.h"


extern int __ns_msg_getflag(ns_msg handle, int flag);
/*
int __ns_msg_getflag(ns_msg handle, int flag) {
return(((handle)._flags & _ns_flagdata[flag].mask) >>
_ns_flagdata[flag].shift);
}
*/

----

But got the following error:
----
creating spfquery
/bin/sh ../../libtool --mode=link gcc -pthread -lbind -Wall
-L/usr/local/lib -o spfquery_static -static spfquery.o
../../src/libspf2/.libs/libspf2.a -lintl
gcc -Wall -o spfquery_static spfquery.o -pthread -lbind
-L/usr/local/lib ../../src/libspf2/.libs/libspf2.a -lintl
../../src/libspf2/.libs/libspf2.a(spf_dns_resolv.o): In function
`SPF_dns_resolv_lookup':
spf_dns_resolv.o(.text+0x329): undefined reference to `__ns_msg_getflag'
spf_dns_resolv.o(.text+0x363): undefined reference to `__ns_msg_getflag'
spf_dns_resolv.o(.text+0x39d): undefined reference to `__ns_msg_getflag'
spf_dns_resolv.o(.text+0x3d7): undefined reference to `__ns_msg_getflag'
spf_dns_resolv.o(.text+0x411): undefined reference to `__ns_msg_getflag'
../../src/libspf2/.libs/libspf2.a(spf_dns_resolv.o)(.text+0x44b): more
undefined references to `__ns_msg_getflag' follow
*** Error code 1

Stop in /mnt/disk/A/com/libspf2-1.2.5/src/spfquery.
*** Error code 1
----
Oleg Golovanov

-------
To unsubscribe, change your address, or temporarily deactivate your subscription,
please go to http://v2.listbox.com/member/?listname=spf-devel@v2.listbox.com