{"action":"created","issue":{"url":"https://api.github.com/repos/cisco/libsrtp/issues/97","labels_url":"https://api.github.com/repos/cisco/libsrtp/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/cisco/libsrtp/issues/97/comments","events_url":"https://api.github.com/repos/cisco/libsrtp/issues/97/events","html_url":"https://github.com/cisco/libsrtp/issues/97","id":58941836,"number":97,"title":"configure script fails when doing a static build - libraries passed in wrong place","user":{"login":"vriera","id":6151586,"avatar_url":"https://avatars.githubusercontent.com/u/6151586?v=3","gravatar_id":"","url":"https://api.github.com/users/vriera","html_url":"https://github.com/vriera","followers_url":"https://api.github.com/users/vriera/followers","following_url":"https://api.github.com/users/vriera/following{/other_user}","gists_url":"https://api.github.com/users/vriera/gists{/gist_id}","starred_url":"https://api.github.com/users/vriera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vriera/subscriptions","organizations_url":"https://api.github.com/users/vriera/orgs","repos_url":"https://api.github.com/users/vriera/repos","events_url":"https://api.github.com/users/vriera/events{/privacy}","received_events_url":"https://api.github.com/users/vriera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-02-25T17:47:48Z","updated_at":"2016-02-01T12:49:16Z","closed_at":"2015-02-26T17:58:22Z","body":"When building libsrtp statically it fails at the configure phase when is testing for EVP_EncryptInit in -lcrypto:\r\n\r\n`checking whether to leverage OpenSSL crypto... yes`\r\n`checking for EVP_EncryptInit in -lcrypto... no`\r\n`configure: error: in '/br/output/build/libsrtp-v1.5.0':`\r\n`configure: error: can't find openssl >1.0.1 crypto lib`\r\n`See 'config.log' for more details`\r\n\r\nThe real problem can be found in the config.log:\r\n\r\n`configure:4831: checking whether to leverage OpenSSL crypto`\r\n`configure:4840: result: yes`\r\n`configure:4846: checking for EVP_EncryptInit in -lcrypto`\r\n`configure:4871: /br/output/host/usr/bin/mipsel-ctng-linux-uclibc-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64   -Os  -static -I/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/include   -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -static -lssl -L/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib -lcrypto -lz   conftest.c -lcrypto   >&5`\r\n`/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib/libcrypto.a(c_zlib.o): In function 'zlib_stateful_expand_block':`\r\n`c_zlib.c:(.text+0x78): undefined reference to 'inflate'`\r\n`/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib/libcrypto.a(c_zlib.o): In function 'zlib_stateful_compress_block':`\r\n`c_zlib.c:(.text+0x13c): undefined reference to 'deflate'`\r\n[...]\r\n`collect2: error: ld returned 1 exit status`\r\n\r\nThere is a missing `-lz` after `conftest.c`. Also, the `-lcrypto -lz` before `conftest.c` are useless. So, a command like this one would fix the problem:\r\n\r\n`/br/output/host/usr/bin/mipsel-ctng-linux-uclibc-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -static -I/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -static -lssl -L/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib conftest.c -lcrypto -lz`"},"comment":{"url":"https://api.github.com/repos/cisco/libsrtp/issues/comments/177957131","html_url":"https://github.com/cisco/libsrtp/issues/97#issuecomment-177957131","issue_url":"https://api.github.com/repos/cisco/libsrtp/issues/97","id":177957131,"user":{"login":"Globik","id":8457017,"avatar_url":"https://avatars.githubusercontent.com/u/8457017?v=3","gravatar_id":"","url":"https://api.github.com/users/Globik","html_url":"https://github.com/Globik","followers_url":"https://api.github.com/users/Globik/followers","following_url":"https://api.github.com/users/Globik/following{/other_user}","gists_url":"https://api.github.com/users/Globik/gists{/gist_id}","starred_url":"https://api.github.com/users/Globik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Globik/subscriptions","organizations_url":"https://api.github.com/users/Globik/orgs","repos_url":"https://api.github.com/users/Globik/repos","events_url":"https://api.github.com/users/Globik/events{/privacy}","received_events_url":"https://api.github.com/users/Globik/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T12:49:16Z","updated_at":"2016-02-01T12:49:16Z","body":"But keeps complaining that libdl not found."}}