[gnutls-dev] Building GnuTLS 1.6.1 under Mac OS X (fwd)

Simon Josefsson simon at josefsson.org
Thu Jan 25 10:43:17 CET 2007


Matthias Scheler <tron at NetBSD.org> writes:

>> 	Hello,
>>
>> the C++ library included in "gnutls" 1.6.1 doesn't build under Mac OS X
>> because of a compiler bug. Apple's GCC apparently doesn't handle calling
>> pure virtual function in constructors and desctrutors properly, see here:
>>
>> http://porting.openoffice.org/mac/macosx_issues.html
>>
>> I've attached two patches taken from NetBSD's "pkgsrc" which inline
>> the copy constructor of the "credentials" class under Mac OS X. That
>> fixes the build problem for me under Mac OS 10.4.8 using the G++
>> compiler from Xcode tools 2.4.1.

Hi!  While I really dislike adding #if's to work around compiler bugs
(people should fix their compilers), I'm not familiar enough with C++
or the GnuTLS C++ library to offer any better solution.  I have
installed the patch, with a comment about removing it in a few years.

Thanks,
Simon




More information about the Gnutls-devel mailing list