[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple compile errors on MacOS X (Lion)
thank you very much for your reply. Even though I am not at all a C developer,
I will try my best to answer your questions as best as I can. I also volunteer
to compile and test any new version on my platform, if that is of any help.
However, when checking the appstore today, I found that there has been a new
release (4.5.2) of xcode. After updating, nothing significant has changed though.
Regarding OpenSSL warnings, I have found a way to get rid of most of them.
So I consider this part more or less solved. I will continue answering the rest of the
On Nov 19, 2012, at 2:33 PM, sampo@xxxxxxxxx wrote:
> Thanks for the patch.
> 1. As always: which architecture, which gcc version, which OpenSSL version?
That's the output of uname -a:
Darwin Confucius 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
So architecture is x86_64, it's a late 2011 macbook pro with intel cpu, MacOS Lion
Using built-in specs.
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.9~22/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
(was: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
before the xcode update...)
That is the default gcc that comes with xcode.
I have in fact 2 versions of OpenSSL on my system:
The Apple system version and the MacPorts Version!
Apple version according to opensslv.h and make output:
-- OpenSSL version from opensslv.h: OpenSSL 0.9.8r 8 Feb 2011, crypto.h: 90812f
-- from SSLeay_version(): OpenSSL 0.9.8r 8 Feb 2011
-- OpenSSL version from opensslv.h: OpenSSL 1.0.1c 10 May 2012, crypto.h: 1000103f
-- from SSLeay_version(): OpenSSL 1.0.1c 10 May 2012
I have set OPENSSL_ROOT in the Makefile to use both:
with the Apple's OpenSSL 0.9.8r 8 Feb 2011 get:
663 deprecated warnings and 744 total warnings
with OpenSSL 1.0.1c 10 May 2012 from MacPorts I get:
0 deprecated warnings and 117 total warnings.
These are all unique types of warnings: I am getting:
warning: assignment from incompatible pointer type
warning: cast from pointer to integer of different size
warning: comparison is always false due to limited range of data type
warning: format %03ld expects type long int, but argument 12 has type int
warning: format %03ld expects type long int, but argument 19 has type int
warning: format %d expects type int, but argument 10 has type long int
warning: large integer implicitly truncated to unsigned type
warning: passing argument 1 of sk_num from incompatible pointer type
warning: passing argument 1 of sk_pop_free from incompatible pointer type
warning: passing argument 1 of sk_push from incompatible pointer type
warning: passing argument 1 of sk_value from incompatible pointer type
warning: passing argument 3 of accept from incompatible pointer type