From nobody Fri Jun 10 21:42:55 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id EA5A883503D for ; Fri, 10 Jun 2022 21:42:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LKZFW2rT1z3P12 for ; Fri, 10 Jun 2022 21:42:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4234E20984 for ; Fri, 10 Jun 2022 21:42:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25ALgt30092798 for ; Fri, 10 Jun 2022 21:42:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25ALgtUn092797 for ports-bugs@FreeBSD.org; Fri, 10 Jun 2022 21:42:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264603] devel/android-tools: build fails if security/openssl is installed Date: Fri, 10 Jun 2022 21:42:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jcfyecrayz@liamekaens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654897375; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zETNeZDT1lMP8fSIQpWMbS3cUb5sBvDnxUgdvgX9ykI=; b=SC0fnRJWU0Sa/CKpKZUgecOKFyyFEhP2byWzFyVryg68cjvinK+I3Toaf2bFPTUHYknQPt daRf0vnLNxQ8+OXydsBF382NJMF9Z7H0/M2t+QsCRgojG5QwGSavn5GJmoAJ1Rtsda5u0S VuaVr2K8WfdhIUnjGJoVys8WS9g5c7ykawUYRPaiI2NNudV2Bi9v1JFEkXxhyi+vF/ecPa iFQo90c2lWUbcPhk29o1LTzaBsnsQkIHLfXwlg9QUcW9caM+4cyXB/uAG4E+DmP4ATeKCZ tmxH3agK18RsgCXleAgcwI4WA1UxDhr+OYA/eZgU6H7rqc3IyYgYb4QCxos9TQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654897375; a=rsa-sha256; cv=none; b=Y9pfc4Tbkoc4p3MmPktRGYmVTIkAWbHyB1DbWXy7D+kgRNQqOCEZXtXm1KZ2NEU3YPzfPE FOUNhyFen8+vupq9LBqRlD9wFVaMx7eCufQMcIHM7T3izjxU8zSg3MOGX5swaTK6uZ/HQe 8gaWwrM3BZxr5B65moMewLqAYrCGtwN4HFJ3Bo/enzXMuF74OFMnoz+ErBh0ovRGa/4zqn yc6Tzum4pUhccRFSgw+aXMnNIhx0h9NAjX3cdqVf4tgp+Fuz/waJUX9qI3TlHBcEBhotsh 5hhCVCece6F7YhvgQai9Hzm9RzTJastRwZyPa9dojuetRRRQBUR6r1wO0e20jw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264603 Bug ID: 264603 Summary: devel/android-tools: build fails if security/openssl is installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jcfyecrayz@liamekaens.com CC: brnrd@freebsd.org, nc@FreeBSD.org CC: brnrd@freebsd.org, nc@FreeBSD.org 'cmake' generates build.ninja such that it looks in /usr/local/include befo= re locations in the working build tree. If the openssl port is installed, then the build finds those files before the bundled ssl (boringssl). This triggers a build failure: FAILED: vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o /usr/bin/c++ -I/usr/local/include -I/wrkdirs/usr/ports/devel/android-tools/work/.build/vendor -I/wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa3613= 259c9c1e4bc4f82af46dfca975e28a930/vendor/adb -I/wrkdirs/usr/ports/devel/android-tools/work/freebsd -android-tools-7fa3613259c9c1e4bc4f82af46dfca975e28a930/vendor/adb/tls/incl= ude -I/wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa3613= 259c9c1e4bc4f82af46dfca975e28a930/vendor/boringssl/include -I/wrkdirs/usr/ports/devel/android-tools/work/freebsd-a ndroid-tools-7fa3613259c9c1e4bc4f82af46dfca975e28a930/vendor/libbase/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -std=3Dgnu++2a -Wno-attributes -D_FILE_OFFSET_BITS=3D64 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MD -MT vendor/CMakeFiles/l ibadb_tls_connection_defaults.dir/adb/tls/tls_connection.cpp.o -MF vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o.d -o vendor/CMakeFiles/libadb_tls_connection_defaults.dir/adb/tls/tls_connection= .cpp.o -c /wrkdirs/usr/ports/devel/andr oid-tools/work/freebsd-android-tools-7fa3613259c9c1e4bc4f82af46dfca975e28a9= 30/vendor/adb/tls/tls_connection.cpp /wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa361325= 9c9c1e4bc4f82af46dfca975e28a930/vendor/adb/tls/tls_connection.cpp:55:12: error: use of undeclared identifier 'bssl' static bssl::UniquePtr EvpPkeyFromPEM(std::string_view pem); ^ /wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa361325= 9c9c1e4bc4f82af46dfca975e28a930/vendor/adb/tls/tls_connection.cpp:56:12: error: use of undeclared identifier 'bssl' static bssl::UniquePtr BufferFromPEM(std::string_view pe= m); ^ /wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa361325= 9c9c1e4bc4f82af46dfca975e28a930/vendor/adb/tls/tls_connection.cpp:56:28: error: use of undeclared identifier 'CRYPTO_BUFFER' static bssl::UniquePtr BufferFromPEM(std::string_view pe= m); ^ /wrkdirs/usr/ports/devel/android-tools/work/freebsd-android-tools-7fa361325= 9c9c1e4bc4f82af46dfca975e28a930/vendor/adb/tls/tls_connection.cpp:62:12: error: use of undeclared identifier 'bssl' static bssl::UniquePtr X509FromBuffer(bssl::UniquePtr buffer); ^ . . Hacky workaround: delete the openssl package when building android-tools. Better would be to convince cmake to put -I flags for in-tree directories a= head of -I /usr/local/include. But it is not obvious how to tell cmake to put include paths that it "finds" at the end of the list of include paths. Or maybe it is obvious to someone. --=20 You are receiving this mail because: You are the assignee for the bug.=