Dynamic: $ ls -Al /tmp/ssl/lib/ total 11336 drwxr-xr-x 14 shiretu wheel 476 Jan 14 23:27 engines -r-xr-xr-x 1 shiretu wheel 1602352 Jan 14 23:27 libcrypto.1.0.0.dylib -rw-r--r-- 1 shiretu wheel 3196880 Jan 14 23:27 libcrypto.a lrwxr-xr-x 1 shiretu wheel 21 Jan 14 23:27 libcrypto.dylib -> libcrypto.1.0.0.dylib -r-xr-xr-x 1 shiretu wheel 382440 Jan 14 23:27 libssl.1.0.0.dylib -rw-r--r-- 1 shiretu wheel 605504 Jan 14 23:27 libssl.a lrwxr-xr-x 1 shiretu wheel 18 Jan 14 23:27 libssl.dylib -> libssl.1.0.0.dylib drwxr-xr-x 5 shiretu wheel 170 Jan 14 23:27 pkgconfig
$ gcc ~/Dropbox/Public/dtls_bug.c -I/tmp/ssl/include -L/tmp/ssl/lib -lssl -lcrypto -o /tmp/dtls_bug $ otool -L /tmp/dtls_bug /tmp/dtls_bug: /tmp/ssl/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /tmp/ssl/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) $ /tmp/dtls_bug Assertion failed: (pSSLBuffer->length != 0), function main, file /Users/shiretu/Dropbox/Public/dtls_bug.c, line 110. Abort trap: 6 Static: $ gcc ~/Dropbox/Public/dtls_bug.c -I/tmp/ssl/include /tmp/ssl/lib/libssl.a /tmp/ssl/lib/libcrypto.a -o /tmp/dtls_bug $ otool -L /tmp/dtls_bug /tmp/dtls_bug: /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0) $ /tmp/dtls_bug Assertion failed: (pSSLBuffer->length != 0), function main, file /Users/shiretu/Dropbox/Public/dtls_bug.c, line 110. Abort trap: 6 $ uname -a Darwin shiretu.local 14.1.0 Darwin Kernel Version 14.1.0: Sun Dec 28 21:20:58 PST 2014; root:xnu-2782.10.72~3/RELEASE_X86_64 x86_64 > On Jan 14, 2015, at 23:00, Viktor Dukhovni <openssl-us...@dukhovni.org> wrote: > > On Wed, Jan 14, 2015 at 10:54:57PM +0200, Eugen-Andrei Gavriloaie wrote: > >> On my Mac OS X Yosemite, manually compiled OpenSSL 1.0.1k and installed it >> into /tmp/ssl as a static lib (with shared lib behaves the same) Compiling: >> >> $ gcc dtls_bug.c -Wno-deprecated-declarations /tmp/ssl/lib/libssl.a >> /tmp/ssl/lib/libcrypto.a -o /tmp/dtls_bug > > This picks up libraries from 1.0.1k and headers from some other > release. Try with -I/tmp/ssl/include or similar making sure the > right headers are used. You should not need "-Wno-deprecated-declarations", > that should only be needed to silence consequences of including > Apple's headers. > > -- > Viktor. > _______________________________________________ > openssl-dev mailing list > To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev _______________________________________________ openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev