Robert Story wrote:
On Thu, 09 Jun 2005 10:37:37 +0200 Thomas wrote:
TA> As you said, the question now is how to *properly* (best) fix our build TA> system.

If the header definition isn't getting picked up, does this imply that net-snmp
is not detecting the native implementation, and is using the version in
snmplib?

configure recognizes that strtok_r is there, but the compilation misses to find the declaration in <string.h> for the reasons discussed earlier.

foo# grep strtok_r config.log
configure:24160: checking for strtok_r
ac_cv_func_strtok_r=yes
foo# nm snmplib/.libs/libnetsnmp.so | grep strtok_r
[10151] |         0|       0|FUNC |GLOB |0    |UNDEF  |strtok_r
[6689]  |         0|       0|FILE |LOCL |0    |ABS    |strtok_r.c
foo# cd snmplib
foo# cc -Dsolaris2 -I../include -I. -I../snmplib -c system.c
"system.c", line 997: warning: implicit function declaration: strtok_r
"system.c", line 997: warning: improper pointer/integer combination: op "="
"system.c", line 1019: warning: improper pointer/integer combination: op "="
"/usr/include/sys/utsname.h", line 112: warning: dubious tag in function prototype: struct utsname foo# cc -Dsolaris2 -D__EXTENSIONS__ -I../include -I. -I../snmplib -c system.c "/usr/include/sys/utsname.h", line 112: warning: dubious tag in function prototype: struct utsname
foo#

In cvs MAIN, someone added a define of __EXTENSIONS__ in
net-snmp/system/solaris.h. This does not appear to have made it into 5.0.x.

This should probably be added to 5.[012] as well.


+Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to