mxcl/homebrew — pull request #15180 by ingmarv (2012-09-28 12:42:18+00:00)
Title: qca: Fix build on OSX Mountain Lion

This fixes a build failure I had with qca on OSX Mountain Lion.

First contribution, please be gentle. :)

Build failure:
clang++ -c -pipe -O2 -arch x86_64 -Wall -W -fPIC -DHAVE_SYS_FILIO_H -DDATADIR=\"/usr/local/Cellar/qca/2.0.3/share/qca\" -DBOTAN_TYPES_QT -DBOTAN_TOOLS_ONLY -DBOTAN_FIX_GDB -DBOTAN_MINIMAL_BIGINT -DBOTAN_MP_WORD_BITS=32 -DBOTAN_KARAT_MUL_THRESHOLD=12 -DBOTAN_KARAT_SQR_THRESHOLD=12 -DBOTAN_EXT_MUTEX_QT -DBOTAN_EXT_ALLOC_MMAP -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I/usr/local/Cellar/qt/4.8.3/mkspecs/unsupported/macx-clang -I. -I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.3/lib/QtCore.framework/Versions/4/Headers -I/usr/local/Cellar/qt/4.8.3/include -I../include/QtCrypto -I. -Ibotantools/botan -I. -F/usr/local/Cellar/qt/4.8.3/lib -o big_ops2.o botantools/botan/big_ops2.cpp
brew: superenv removed: -O2 -arch x86_64 -Wall -W
brew: superenv removed: -O2 -arch x86_64 -Wall -W
In file included from botantools/botan/big_ops2.cpp:34:
In file included from botantools/botan/botan/bigint.h:38:
botantools/botan/botan/secmem.h:217:41: error: use of undeclared identifier 'set'
{ MemoryRegion::init(true); set(in, n); }
^
this->
botantools/botan/big_ops2.cpp:170:26: note: in instantiation of member function 'QCA::Botan::SecureVector::SecureVector' requested here
SecureVector z(data(), x_sw);
^
botantools/botan/botan/secmem.h:83:12: note: must qualify identifier to find this declaration in dependent base class
void set(const T in[], u32bit n) { create(n); copy(in, n); }
^
botantools/botan/botan/secmem.h:84:12: note: must qualify identifier to find this declaration in dependent base class
void set(const MemoryRegion& in) { set(in.begin(), in.size()); }
^
1 error generated.
make[1]: *** [big_ops2.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [sub-src-install_subtargets] Error 2
==> Configuration
HOMEBREW_VERSION: 0.9.3
HEAD: 54f302a89e3628cf26f7532d7bec3178da04efd1
CPU: dual-core 64-bit penryn
OS X: 10.8.2-x86_64
Xcode: 4.5
CLT: 4.4.0.0.1.1249367152
LLVM-GCC: build 2336
Clang: 4.0 build 421
X11: N/A