[botan-devel] Building in OSX 10.10

Dennis Weldy dennis at correlatedmagnetics.com
Mon Jan 26 11:41:43 EST 2015

It’s evidently supported in XCode tools 5.0


From: botan-devel [mailto:botan-devel-bounces at randombit.net] On Behalf Of Stijn Frishert
Sent: Monday, January 26, 2015 7:28 AM
To: botan-devel at randombit.net
Subject: [botan-devel] Building in OSX 10.10

Hi everyone,

I'm trying to build Botan 1.11.13 on OSX 10.10, but came across the same memset_s error reported by Uri Blumenthal on the 12th of January. Has this been fixed/a workaround been found yet?

I would love to get started with Botan, but this compilation error keeps me from continuing.

For completeness sake, the error once again:

stijn:Botan-1.11.13 stijn$ make

g++ -m64 -pthread -fstack-protector -fPIC -fvisibility=hidden -std=c++11 -D_REENTRANT -O2 -momit-leaf-frame-pointer -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wold-style-cast -Wzero-as-null-pointer-constant -Ibuild/include -c src/lib/utils/zero_mem.cpp -o build/obj/lib/utils_zero_mem.o
warning: unknown warning option '-Wzero-as-null-pointer-constant'; did you mean '-Wint-to-void-pointer-cast'?
src/lib/utils/zero_mem.cpp:24:6: error: no member named 'memset_s' in the global namespace; did you mean
   ::memset_s(ptr, n, 0, n);
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/string.h:74:7: note:
      'memset' declared here
void    *memset(void *, int, size_t);
src/lib/utils/zero_mem.cpp:24:26: error: too many arguments to function call, expected 3, have 4
   ::memset_s(ptr, n, 0, n);
   ~~~~~~~~~~            ^
1 warning and 2 errors generated.
make: *** [build/obj/lib/utils_zero_mem.o] Error 1


Kind regards,

Stijn Frishert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20150126/4286ef4b/attachment-0001.html>

More information about the botan-devel mailing list