From patchwork Mon Aug 27 13:21:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher McCrory X-Patchwork-Id: 962514 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jjFOKI6b"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41zXbm14Trz9s2P for ; Mon, 27 Aug 2018 23:21:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 97F3C221D2; Mon, 27 Aug 2018 13:21:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5EXxXddDRW1j; Mon, 27 Aug 2018 13:21:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id B893222122; Mon, 27 Aug 2018 13:21:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B6EC31C159A for ; Mon, 27 Aug 2018 13:21:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B4D0C81E93 for ; Mon, 27 Aug 2018 13:21:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d752L6crDjs3 for ; Mon, 27 Aug 2018 13:21:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by hemlock.osuosl.org (Postfix) with ESMTPS id 95B2F82764 for ; Mon, 27 Aug 2018 13:21:40 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id u10-v6so5718782pgr.1 for ; Mon, 27 Aug 2018 06:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Bts9Dk58mB5/rVGf914Icsp5WJdB7fq8CHSWoJIPAB0=; b=jjFOKI6btjfvGtOyLEHm4vhjeAgXm1+KIWFxo68AnbYgja7Hs64NB8ip1KL4OkR1cj AW6kni4a/1FMlmRd/U+3A8IX/jwbE1xPxq6v5Ggyr4YElnXrf+EUOqPkV8eUbcwBMwhT 1iau2Gad8aPqk2qlK70kKfi3ABHIlOGSDnQNQtmaiuT29tIfwNsSTRRtvJLPV+Hj78ii 59ZyX+SNMkt0W4gdPlPtv+fOOYyq6kGNZWqigFXsTEqhuI/CMrGLzSDTVIiaHh3s2bcw l4/S6Y/UEeVrR9Aya7l1O/3SryaMBkllTztYVXDsjmmo+8URLV8y2OIcQaNYPF5LGJeb Gi2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Bts9Dk58mB5/rVGf914Icsp5WJdB7fq8CHSWoJIPAB0=; b=O9ajsuDE4Ta4JFqSLfTRiPBMnQ6jW+sVpZdlFcIDq/DUrUWLnN8gZbFYYc9BKDQ9Cy e3Z6s/lBUHW4WB27Xuia+5XDRFPHG0AUo4zKbgvmo6ZTAGZPMsAUpWnbFv0TpgT0e4A7 i5CUA+eMqRlcUsnaQ6be0aTZoZu+s72U3xWqipr9SlnQ/V3AGt6Vq/Itqs1cOd7auvBI DhVFNMqguJtJz2CToyMysZGgIlY1z+DjJJ9RBTOedL8KFX26dyF0SrwSxnuHpSKXZavL gC4ZpwT2Do5oofW1JveelqIvhKBjWaVKDuFE8xUPLz52TD11+JafCb/ZEtuYRiVH9JUD yWBA== X-Gm-Message-State: APzg51AMUOtCxuCVSueSik9LIBcFgpwtKhVT/zgTLg4g/6caOH/jy2c4 Jeqz/6qv8GutBa8ZWtIc8bG7/hzk X-Google-Smtp-Source: ANB0VdbUZCf6iA7POHDvs73u4TQIdirBy5+nWN/sM9zW0PTVLhn2ZCYFLTk/mrnT7Oij5iHkdIRLzg== X-Received: by 2002:a62:5047:: with SMTP id e68-v6mr14134018pfb.157.1535376099852; Mon, 27 Aug 2018 06:21:39 -0700 (PDT) Received: from localhost.localdomain ([2600:1012:b013:f797:2df9:1ca5:9f23:b8f2]) by smtp.gmail.com with ESMTPSA id z6-v6sm20047508pgr.41.2018.08.27.06.21.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Aug 2018 06:21:39 -0700 (PDT) From: Christopher McCrory To: buildroot@buildroot.org Date: Mon, 27 Aug 2018 06:21:27 -0700 Message-Id: <20180827132127.20658-1-chrismcc@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Buildroot] [PATCH 1/1] php: fix build with mysqli X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Christopher McCrory MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This fixes autobuild failures like http://autobuild.buildroot.net/results/3288b742cee650ee47a41c5b4d6aaef1fe67bff1 php compile breaks with: ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2': mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init' mysqlnd_auth.c:(.text+0x1064): undefined reference to `PHP_SHA256Update' mysqlnd_auth.c:(.text+0x1070): undefined reference to `PHP_SHA256Final' mysqlnd_auth.c:(.text+0x1078): undefined reference to `PHP_SHA256Init' mysqlnd_auth.c:(.text+0x1088): undefined reference to `PHP_SHA256Update' mysqlnd_auth.c:(.text+0x1094): undefined reference to `PHP_SHA256Final' mysqlnd_auth.c:(.text+0x109c): undefined reference to `PHP_SHA256Init' mysqlnd_auth.c:(.text+0x10ac): undefined reference to `PHP_SHA256Update' mysqlnd_auth.c:(.text+0x10bc): undefined reference to `PHP_SHA256Update' mysqlnd_auth.c:(.text+0x10c8): undefined reference to `PHP_SHA256Final' It looks like the php mysqli extension needs the hash extension to work. This seems to be a php Make dependany bug. This patch works around it until the upstream maintainers can fix it. --- I'm OK with modifing the above at commit time. Signed-off-by: Christopher McCrory --- package/php/Config.ext | 1 + 1 file changed, 1 insertion(+) diff --git a/package/php/Config.ext b/package/php/Config.ext index 6b3d86925d..60ef1aee7c 100644 --- a/package/php/Config.ext +++ b/package/php/Config.ext @@ -113,6 +113,7 @@ endif config BR2_PACKAGE_PHP_EXT_MYSQLI bool "Mysqli" + select BR2_PACKAGE_PHP_EXT_HASH help MySQL Improved extension support