[botan-devel] Building in OSX 10.10

Stijn Frishert stijnfrishert at gmail.com
Mon Jan 26 08:28:00 EST 2015


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'?
      [-Wunknown-warning-option]
src/lib/utils/zero_mem.cpp:24:6: error: no member named 'memset_s' in the
global namespace; did you mean
      'memset'?
   ::memset_s(ptr, n, 0, n);
   ~~^~~~~~~~
     memset
/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/91166396/attachment.html>


More information about the botan-devel mailing list