|
From: Michael S. <ms...@ap...> - 2012-12-07 13:15:36
|
OS X has it starting in 10.7, but it could also be the compiler you are using (gcc vs. clang) The prototype is wrapped with the following conditional test: #if __DARWIN_C_LEVEL >= 200809L On 2012-12-07, at 3:33 AM, Mark Wielaard <mj...@re...> wrote: > On Fri, Dec 07, 2012 at 12:06:11AM -0600, Rich Coe wrote: >> >> valgrind revision: 13168 >> VEX revision: 2583 >> C compiler: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) >> Assembler: >> C library: unknown >> uname -mrs: Darwin 10.8.0 i386 >> Vendor version: unknown >> >> Nightly build on macx86 ( Darwin 10.8.0 i386 ) >> Started at 2012-12-06 23:35:00 CST >> Ended at 2012-12-07 00:06:08 CST >> Results differ from 24 hours ago >> >> Checking out valgrind source tree ... done >> Configuring valgrind ... done >> Building valgrind ... failed >> >> Last 20 lines of verbose log follow echo >> gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -DVGPV_x86_darwin_vanilla=1 -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -MT stpncpy.o -MD -MP -MF .deps/stpncpy.Tpo -c -o stpncpy.o stpncpy.c >> stpncpy.c: In function 'main': >> stpncpy.c:18: warning: implicit declaration of function 'stpncpy' > > Sorry, my bad. Apparently stpncpy isn't defined in string.h on Darwin. > Does anybody know whether it is defined in another system header, > or does Darwin just not provide the stpncpy function at all? > > Thanks, > > Mark > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers ________________________________________________________________________ Michael Sweet, Senior Printing System Engineer, PWG Chair |