{"action":"closed","issue":{"url":"https://api.github.com/repos/openssl/openssl/issues/2377","repository_url":"https://api.github.com/repos/openssl/openssl","labels_url":"https://api.github.com/repos/openssl/openssl/issues/2377/labels{/name}","comments_url":"https://api.github.com/repos/openssl/openssl/issues/2377/comments","events_url":"https://api.github.com/repos/openssl/openssl/issues/2377/events","html_url":"https://github.com/openssl/openssl/issues/2377","id":204965885,"number":2377,"title":"[rt.openssl.org #3945] broken cross-compilation for BSD-x86_64","user":{"login":"richsalz","id":7332500,"avatar_url":"https://avatars0.githubusercontent.com/u/7332500?v=4","gravatar_id":"","url":"https://api.github.com/users/richsalz","html_url":"https://github.com/richsalz","followers_url":"https://api.github.com/users/richsalz/followers","following_url":"https://api.github.com/users/richsalz/following{/other_user}","gists_url":"https://api.github.com/users/richsalz/gists{/gist_id}","starred_url":"https://api.github.com/users/richsalz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richsalz/subscriptions","organizations_url":"https://api.github.com/users/richsalz/orgs","repos_url":"https://api.github.com/users/richsalz/repos","events_url":"https://api.github.com/users/richsalz/events{/privacy}","received_events_url":"https://api.github.com/users/richsalz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-02-02T19:05:42Z","updated_at":"2017-08-16T15:03:28Z","closed_at":"2017-08-16T15:03:28Z","body":"Migrated from [rt.openssl.org#3945](https://rt.openssl.org/Ticket/Display.html?id=3945) (status was 'new')\n\nRequestors:\n* maxim.gorbachyov@gmail.com\n\nFrom maxim.gorbachyov@gmail.com on 2015-07-15 10:43:46:\n```\nHello.\n\nI'm trying to cross-build OpenSSL 1.0.2d for BSD-x86_64 (on linux host):\n\n./Configure -no-idea -no-mdc2 -no-rc5 -D_GNU_SOURCE\n--cross-compile-prefix=x86_64-pc-freebsd8- BSD-x86_64 -no-asm && make\ndepend\n...\nConfigured for BSD-x86_64.\nmaking depend in crypto...\nmake[1]: Entering directory '.../openssl-1.0.2d/crypto'\n../util/domd: 30: ../util/domd: makedepend: not found\n\nIndeed, configured for BSD-x86_64 openssl-1.0.2d/Makefile wants\nsomething strange:\nMAKEDEPPROG=makedepend\n\nFor example, same thing when configured for BSD-x86:\nMAKEDEPPROG= $(CROSS_COMPILE)gcc\n\nI think the issue was introduced by this commit:\n===\ncommit f877da9cedb95df94105d7292f8e0963175e58dc\nAuthor: Ben Laurie <ben@links.org>\nDate:   Fri May 1 15:53:46 2015 +0100\n\n    Use cc instead of gcc so either clang or gcc is used as\nappropriate. Add clang\n    flags needed to keep it happy.\n\n    Reviewed-by: Richard Levitte <levitte@openssl.org>\n===\n\nAmong other changes it has:\n\n-\"BSD-x86_64\",  \"gcc:-DL_ENDIAN -O3\n-Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT\nDES_UNROLL:${x86_64_asm}:elf:dlfcn:bsd-gcc-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)\",\n+\"BSD-x86_64\",  \"cc:-DL_ENDIAN -O3\n-Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT\nDES_UNROLL:${x86_64_asm}:elf:dlfcn:bsd-gcc-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)\",\n\nBut Configure uses that \"gcc\" to get MAKEDEPPROG:\ns/^MAKEDEPPROG=.*$/MAKEDEPPROG= \\$\\(CROSS_COMPILE\\)$cc/ if $cc eq \"gcc\";\n\nI'm not sure what is the best way to fix it. I'm able to cross-build\nfor BSD-x86_64 with this line in Configure:\n\"BSD-x86_64\",  \"gcc:-DL_ENDIAN -O3\n-Wall::${BSDthreads}:::SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT\nDES_UNROLL:${x86_64_asm}:elf:dlfcn:bsd-gcc-shared:-fPIC::.so.\\$(SHLIB_MAJOR).\\$(SHLIB_MINOR)\",\n, but \"cc\" is there for a reason, I guess.\n\nCould you please suggest how to fix it?\n\n_______________________________________________\nopenssl-bugs-mod mailing list\nopenssl-bugs-mod@openssl.org\nhttps://mta.openssl.org/mailman/listinfo/openssl-bugs-mod\n```\n"}}
{"actor":{"display_login":"richsalz"}}