Build fails whilst making wmi: Compiling wmi/pywmi_wrap.c wmi/pywmi_wrap.c: In function 'SWIG_Python_addvarlink': wmi/pywmi_wrap.c:2318: error: '__ERROR__XX__NEVER_USE_STRCPY___' undeclared (first use in this function) wmi/pywmi_wrap.c:2318: error: (Each undeclared identifier is reported only once wmi/pywmi_wrap.c:2318: error: for each function it appears in.) The following command failed: gcc -Ilib/replace -Ilib/talloc -Ilib/tdb/include -Iheimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper -Iheimdal/lib/des -Iheimdal/lib/com_err -Iheimdal/lib/asn1 -Iheimdal/lib/krb5 -Iheimdal/lib/hdb -Iheimdal/lib/gssapi/spnego -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi/krb5 -I heimdal/lib/gssapi/mech -I./include -I. -I./lib -I./lib/replace -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H -I/usr/include/python2.4 -fPIC -c wmi/pywmi_wrap.c -o wmi/pywmi_wrap.o gmake[2]: *** [wmi/pywmi_wrap.o] Error 1 gmake[2]: Leaving directory `/var/tmp/zenoss-1.9.6/build/wmi-20070516/Samba/source' gmake[1]: *** [pywmi-installed] Error 2 gmake[1]: Leaving directory `/var/tmp/zenoss-1.9.6/build/wmi-20070516'
So line 2318 is strcpy(gv->name,name); So this line is falling fowl of the fact that safe_string.h is being used by samba. Presumably there is a mechanism I can use to force SWIG to generate code with something else? Anyway, my solution is: Edit pywmi_wrap.c to have #defin _SAFE_STRING_H before safe_string.h is included. This certainly works. Whether it is a good idea... As an aside, is there a reason why the build is still using v1.4.5 of the Nagios plugins instead of the latest? ------------------------ Rory Brown -------------------- m2f -------------------- Read this topic online here: http://community.zenoss.com/forums/viewtopic.php?p=6739#6739 -------------------- m2f -------------------- _______________________________________________ zenoss-users mailing list [email protected] http://lists.zenoss.org/mailman/listinfo/zenoss-users
