{"action":"closed","issue":{"url":"https://api.github.com/repos/coin-or/CppAD/issues/29","repository_url":"https://api.github.com/repos/coin-or/CppAD","labels_url":"https://api.github.com/repos/coin-or/CppAD/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/coin-or/CppAD/issues/29/comments","events_url":"https://api.github.com/repos/coin-or/CppAD/issues/29/events","html_url":"https://github.com/coin-or/CppAD/issues/29","id":345496219,"node_id":"MDU6SXNzdWUzNDU0OTYyMTk=","number":29,"title":"Mistake in cppad-uninstalled.pc.in","user":{"login":"tkralphs","id":4942502,"node_id":"MDQ6VXNlcjQ5NDI1MDI=","avatar_url":"https://avatars1.githubusercontent.com/u/4942502?v=4","gravatar_id":"","url":"https://api.github.com/users/tkralphs","html_url":"https://github.com/tkralphs","followers_url":"https://api.github.com/users/tkralphs/followers","following_url":"https://api.github.com/users/tkralphs/following{/other_user}","gists_url":"https://api.github.com/users/tkralphs/gists{/gist_id}","starred_url":"https://api.github.com/users/tkralphs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkralphs/subscriptions","organizations_url":"https://api.github.com/users/tkralphs/orgs","repos_url":"https://api.github.com/users/tkralphs/repos","events_url":"https://api.github.com/users/tkralphs/events{/privacy}","received_events_url":"https://api.github.com/users/tkralphs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-07-29T02:51:14Z","updated_at":"2018-08-25T03:00:48Z","closed_at":"2018-08-25T03:00:48Z","author_association":"MEMBER","body":"For some reason, the following line appears in `cppad-uninstalled.pc`\r\n\r\n```Libs: -L@cppad_BINARY_DIR@/lib -lcppad_lib```\r\n\r\nalthough there is no `cppad_lib` installed by default and the variable `@cppad_BINARY_DIR@` is not defined during configuration. the `Libs` line that line appears in `cppad.pc.in` is empty, which seems correct. \r\n\r\nAt the moment, the `OS` build fails with a git checkout on Linux because `cppad.pc` is not installed in the default location, which means that it is not found by the `configure` script of OS. The fallback is to check for an uninstalled version of CppAD, which is found, but with the line above. This then adds `-lcppad_lib` to the link line and the linking fails.\r\n\r\nEmptying the `Libs` line in `cppad-uninstalled.pc` fixes the issue, although it is still the case that the `.pc` file is installed in the wrong location \r\n\r\n```<build_dir>/CppAD/pkgconfig```\r\n\r\nrather than \r\n\r\n```<build_dir>/lib/pkgconfig```\r\n\r\nBy the way, the include directory is listed as\r\n\r\n```<build_dir>/include```\r\n \r\nrather than \r\n\r\n```<build_dir>/include/cppad```\r\n\r\nbut this may be intentional."}}
{"actor":{"display_login":"tkralphs"}}