{"action":"created","issue":{"url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1979","repository_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng","labels_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1979/labels{/name}","comments_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1979/comments","events_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1979/events","html_url":"https://github.com/aircrack-ng/aircrack-ng/issues/1979","id":371922791,"node_id":"MDU6SXNzdWUzNzE5MjI3OTE=","number":1979,"title":"aircrack-ng-1.4's DEFAULT_STATIC_LIB_SEARCH_PATHS can cause compilation failures","user":{"login":"ikelos","id":1477845,"node_id":"MDQ6VXNlcjE0Nzc4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1477845?v=4","gravatar_id":"","url":"https://api.github.com/users/ikelos","html_url":"https://github.com/ikelos","followers_url":"https://api.github.com/users/ikelos/followers","following_url":"https://api.github.com/users/ikelos/following{/other_user}","gists_url":"https://api.github.com/users/ikelos/gists{/gist_id}","starred_url":"https://api.github.com/users/ikelos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikelos/subscriptions","organizations_url":"https://api.github.com/users/ikelos/orgs","repos_url":"https://api.github.com/users/ikelos/repos","events_url":"https://api.github.com/users/ikelos/events{/privacy}","received_events_url":"https://api.github.com/users/ikelos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-19T11:46:54Z","updated_at":"2018-10-26T11:44:27Z","closed_at":null,"author_association":"NONE","body":"# Issue type\r\n\r\n- Defect - Compilation or `make check` issue - Attach `config.log` and provide relevant system information such as `lscpu` - Make sure dependencies are installed\r\n\r\n# System information\r\n\r\n- OS: Gentoo Linux\r\n- CPU: Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz GenuineIntel\r\n- Wireless card and chipset (if relevant): Not relevant\r\n\r\n# Aircrack-ng version\r\n\r\n- Version: 1.4\r\n- Commit Revision hash: Release version (still present in 155b9afd)\r\n\r\n# Defect\r\n## How to reproduce the issue\r\n\r\nAttempt to compile aircrack-ng-1.4 on a multilib system, where `/usr/lib` is not the native architecture.\r\n\r\n```\r\n  CXXLD    aircrack-ng\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libsqlite3.so when searching for -lsqlite3\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: skipping incompatible /usr/lib/libcrypto.so when searching for -lcrypto\r\n/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libhwloc.so: error adding symbols: file in wrong format\r\ncollect2: error: ld returned 1 exit status\r\nmake[2]: *** [Makefile:1270: aircrack-ng] Error 1\r\n```\r\n\r\nThis is because the `ax_ext_have_static_lib.m4` file added in 1.4 lists a fixed set of directories to check for libraries (`DEFAULT_STATIC_LIB_SEARCH_PATHS`).  These include `/usr/lib` but do not include `/usr/lib64`, for example.  If the distribution in use allows a multilib architecture and stores 32-bit libraries in `/usr/lib` and 64-bit libraries in `/usr/lib64`, the compiler will find the 32-bit libraries and then fail to link them for having an incompatible/wrong format.\r\n\r\n[config.log](https://github.com/aircrack-ng/aircrack-ng/files/2495665/config.log)\r\n\r\n## Related issues\r\n\r\n[Definition of DEFAULT_STATIC_LIB_SEARCH_PATHS](https://github.com/aircrack-ng/aircrack-ng/blob/master/build/m4/ax_ext_have_static_lib.m4#L55)"},"comment":{"url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/comments/433380806","html_url":"https://github.com/aircrack-ng/aircrack-ng/issues/1979#issuecomment-433380806","issue_url":"https://api.github.com/repos/aircrack-ng/aircrack-ng/issues/1979","id":433380806,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzM4MDgwNg==","user":{"login":"ikelos","id":1477845,"node_id":"MDQ6VXNlcjE0Nzc4NDU=","avatar_url":"https://avatars0.githubusercontent.com/u/1477845?v=4","gravatar_id":"","url":"https://api.github.com/users/ikelos","html_url":"https://github.com/ikelos","followers_url":"https://api.github.com/users/ikelos/followers","following_url":"https://api.github.com/users/ikelos/following{/other_user}","gists_url":"https://api.github.com/users/ikelos/gists{/gist_id}","starred_url":"https://api.github.com/users/ikelos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikelos/subscriptions","organizations_url":"https://api.github.com/users/ikelos/orgs","repos_url":"https://api.github.com/users/ikelos/repos","events_url":"https://api.github.com/users/ikelos/events{/privacy}","received_events_url":"https://api.github.com/users/ikelos/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T11:44:27Z","updated_at":"2018-10-26T11:44:27Z","author_association":"NONE","body":"If it's possible to do, I think using pkg-config would resolve a great many of these issues, but I don't know how hard converting the existing autotools stuff over to using it would be."}}
{"actor":{"display_login":"ikelos"}}