-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 22/02/12 14:47, Jonathan K. Bullard wrote: > 2012/2/21 Samuli Seppänen <sam...@openvpn.net> >> A preview of OpenVPN 2.3-alpha1 installer for Windows is now >> available here: >> >> <http://build.openvpn.net/downloads/snapshots/openvpn-2.3-alpha1-preview1-install.exe> > >> > I realize that this post was aimed at Windows, but building on OS X > 10.6.8 (for Tunnelblick) fails with the following: > > gcc-4.0 -DHAVE_CONFIG_H -I. -I../.. -I../../include -no-cpp-precomp > -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Os > -mmacosx-version-min=10.4 -arch i386 -c socket.c In file included from > buffer.h:29, from socket.h:28, from socket.c:33: error.h:172:5: > warning: #warning this compiler appears to lack vararg macros which > will cause a significant degradation in efficiency (you can ignore > this warning if you are using LCLINT)
This I don't understand, as this isn't exactly new code. The warning in error.h:172 has been in the source tree since September 2005. I suspect this to be somehow compiler related. I'm compiling OpenVPN regularly on Fedora 14, which uses: $ gcc --version gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4) > socket.c: In function 'create_socket_udp6': socket.c:902: error: > 'IPV6_RECVPKTINFO' undeclared (first use in this function) > socket.c:902: error: (Each undeclared identifier is reported only > once socket.c:902: error: for each function it appears in.) make[4]: > *** [socket.o] Error 1 This seems to be the main reason why it chokes. I've Cc'ed Juan Jo, who introduced this change. It's related to the new IPv6 transport feature. JJO: Can you please see if you can figure out this? > The error is the main problem, of course, but I'm not sure what to > make of the warning, which appears in the compilation of (almost?) > all modules -- it's hard to believe that gcc 4.0 doesn't have vararg > macros, since they are a feature of GNU C! Agreed, there is something odd going on here. But I don't have any OSX boxes available and lack some knowledge about the OSX build environment, so it's really hard to figure out immediately. I hope others with OSX can have a look at what's causing this. kind regards, David Sommerseth -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9E9/YACgkQDC186MBRfrrUdgCbB3IL4kKjMgryggfqSwhjcKap wF4AoKR6WXY9dp/SEBFZS8wow/tPv49L =w4Eu -----END PGP SIGNATURE-----