{"action":"created","issue":{"url":"https://api.github.com/repos/mxe/mxe/issues/672","labels_url":"https://api.github.com/repos/mxe/mxe/issues/672/labels{/name}","comments_url":"https://api.github.com/repos/mxe/mxe/issues/672/comments","events_url":"https://api.github.com/repos/mxe/mxe/issues/672/events","html_url":"https://github.com/mxe/mxe/issues/672","id":70577557,"number":672,"title":"postgresql fails to build","user":{"login":"avih","id":2164962,"avatar_url":"https://avatars.githubusercontent.com/u/2164962?v=3","gravatar_id":"","url":"https://api.github.com/users/avih","html_url":"https://github.com/avih","followers_url":"https://api.github.com/users/avih/followers","following_url":"https://api.github.com/users/avih/following{/other_user}","gists_url":"https://api.github.com/users/avih/gists{/gist_id}","starred_url":"https://api.github.com/users/avih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avih/subscriptions","organizations_url":"https://api.github.com/users/avih/orgs","repos_url":"https://api.github.com/users/avih/repos","events_url":"https://api.github.com/users/avih/events{/privacy}","received_events_url":"https://api.github.com/users/avih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-24T03:43:58Z","updated_at":"2015-04-24T04:03:31Z","closed_at":null,"body":"I was trying `make qt5` and apparently postgres is one of its dependencies, and it failed. It _might_ be related to the recent gcc 5.1 update or possibly the mingw 4.x update, but I haven't built neither `qt5` nor `postgresql` in the past with MXE, so I can't tell for sure.\r\n\r\n```\r\n...\r\n[download] postgresql\r\n[build]    postgresql\r\n\r\nFailed to build package postgresql!\r\n------------------------------------------------------------\r\nconfigure.in:955:AC_SUBST(OSSP_UUID_LIBS)\r\nconfigure.in:962:dnl sys/socket.h is required by AC_FUNC_ACCEPT_ARGTYPES\r\nconfigure.in:987:                [AC_MSG_ERROR([readline header not found\r\nconfigure.in:993:                [AC_MSG_ERROR([history header not found\r\nmake[1]: *** [build-only-postgresql_i686-w64-mingw32.static] Error 1\r\nmake[1]: Leaving directory `/home/user/dev/mxe'\r\nreal    0m5.824s\r\nuser    0m4.913s\r\nsys     0m2.203s\r\n------------------------------------------------------------\r\n```"},"comment":{"url":"https://api.github.com/repos/mxe/mxe/issues/comments/95793741","html_url":"https://github.com/mxe/mxe/issues/672#issuecomment-95793741","issue_url":"https://api.github.com/repos/mxe/mxe/issues/672","id":95793741,"user":{"login":"avih","id":2164962,"avatar_url":"https://avatars.githubusercontent.com/u/2164962?v=3","gravatar_id":"","url":"https://api.github.com/users/avih","html_url":"https://github.com/avih","followers_url":"https://api.github.com/users/avih/followers","following_url":"https://api.github.com/users/avih/following{/other_user}","gists_url":"https://api.github.com/users/avih/gists{/gist_id}","starred_url":"https://api.github.com/users/avih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avih/subscriptions","organizations_url":"https://api.github.com/users/avih/orgs","repos_url":"https://api.github.com/users/avih/repos","events_url":"https://api.github.com/users/avih/events{/privacy}","received_events_url":"https://api.github.com/users/avih/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T04:03:31Z","updated_at":"2015-04-24T04:03:31Z","body":"Yeah, I figured already that it might be related to `autoconf`. I do have both old and new versions of `autoconf`, and the version to use is apparently chosen dynamically by a Debian script.\r\n\r\n```\r\n~/dev/mxe $ autoconf --version\r\nautoconf (GNU Autoconf) 2.69\r\nCopyright (C) 2012 Free Software Foundation, Inc.\r\nLicense GPLv3+/Autoconf: GNU GPL version 3 or later\r\n<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.\r\n\r\nWritten by David J. MacKenzie and Akim Demaille.\r\n---\r\nAutoconf 2.50 chosen by Debian wrapper script.\r\nFor information and tuning advice see autoconf(1).\r\n```\r\n\r\nI know at least one way to make the script choose the new version, and that's by having an `configure.ac` file (even if it's empty). See http://manpages.ubuntu.com/manpages/precise/man1/autoconf.1.html\r\n\r\nI did bump into this issue in the past for MXE itself, and did add an empty `configure.ac` file at the MXE dir, and since then it's been working great for me and I've used MXE to build many MXE packages and also external projects.\r\n\r\nBut apparently the script fails to recognize the correct `autoconf` version when building `postgresql`."}}