Return-Path: Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by mail.openembedded.org (Postfix) with ESMTP id 41D9379C9D for ; Thu, 8 Nov 2018 14:53:19 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id a8-v6so1470156wmf.1 for ; Thu, 08 Nov 2018 06:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=BOFFrqV2aZAwb1N9N3h/8XQRupuPHULtggwLOX95BTg=; b=FTi8L90jj7aCkKs4Tjsz0JSAJCnAzLf2o6tCLroSfdnXRWy+1oKeOLsz1wIgAnr+Au rH7gsETzzXM8jfc+L63vdo0DrREvJ5ThK4azhl+04fP424gDmo8b32sEBK59QDTOINsY uP16LHFDbW4vPfyDtF7LMCz15uJqaJTjrzllETp+LttHSC6ErFR0Kur0ms3w4uYeqGP4 ttxOfZ7IHd3l/sQyB8rYBLE+WNd1YtMElcpaGsdRtwFVplFHAVqbgfd18qoykot3ga4l rHmdVfgNhDkQTUR0cxDeEcJCBJiuWpyQPLtHP7pqw0+3duQK0p5qLFWCzcRmtjXyC6H1 L6mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=BOFFrqV2aZAwb1N9N3h/8XQRupuPHULtggwLOX95BTg=; b=Gon5g5hKF+BysI+2cwpfOlNxxRFrcWP58DaPrRE+ceH2KLl5fzpxBgsv5kEosa0wB3 DiiGASrv7V1w1OdWqDanh+GL5H4nD82PjVY3Jrp0hTCyvsYBvQcQHEFil+DGoVRtPZ7Y m0MN5UdFO4G+ZRtqRdH04Pjy8dipRJH7Yv5Aghqq8NdeaJQfeJZx6HPh+wwsHwxvaMg2 V37GT6kjdlNXO9OiixtDA6y+FLNBEEh92qnsTjeSxm1el1zWBhKAAi3cpzzR1f8dXGqs 8AiDvBcRyBdT1+BJAuECluFcoM8hDSIkauJX0fCRfQ9k3TBFerzmMNvW6enSJLeDhi2Z jU2Q== X-Gm-Message-State: AGRZ1gII+F5RlOtAjAoZBod5ZGtMnf3qJhg/u1c7KjU5z+UX7lw6qTOo t3M2XWANXHRLx8j5iHXsBeQ= X-Google-Smtp-Source: AJdET5cUzTSV9NbBda9WweQhpsjiMSigAsCkiaFrTpyYzCX91LwZUA00/CwJjeoFB2y+QDWt4ZQGyg== X-Received: by 2002:a7b:c183:: with SMTP id y3-v6mr1454208wmi.150.1541688799686; Thu, 08 Nov 2018 06:53:19 -0800 (PST) Received: from ernie.muppets.liwing.de (b2b-78-94-80-58.unitymedia.biz. [78.94.80.58]) by smtp.gmail.com with ESMTPSA id s195-v6sm3702102wmd.39.2018.11.08.06.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 06:53:18 -0800 (PST) From: Jens Rehsack Message-Id: Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Date: Thu, 8 Nov 2018 15:53:16 +0100 In-Reply-To: <20181106122429.24563-1-ross.burton@intel.com> To: Ross Burton References: <20181106122429.24563-1-ross.burton@intel.com> X-Mailer: Apple Mail (2.3445.9.1) Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH] pseudo: fix link with new sqlite3 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Nov 2018 14:53:19 -0000 X-Groupsio-MsgNum: 118046 Content-Type: multipart/signed; boundary="Apple-Mail=_DF87F14D-9975-4482-9819-F0C1D838602B"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_DF87F14D-9975-4482-9819-F0C1D838602B Content-Type: multipart/alternative; boundary="Apple-Mail=_0FF2129A-B66E-42FD-BBB9-9C0EA1861183" --Apple-Mail=_0FF2129A-B66E-42FD-BBB9-9C0EA1861183 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > Am 06.11.2018 um 13:24 schrieb Ross Burton : >=20 > If sqlite3 is built with FTS5 it uses log() from libm, but that = linkage is lost > if we manually statically link so explicitly link to libm. >=20 > Signed-off-by: Ross Burton > --- > meta/recipes-devtools/pseudo/files/libm.patch | 33 = +++++++++++++++++++++++++++ > meta/recipes-devtools/pseudo/pseudo_git.bb | 1 + > 2 files changed, 34 insertions(+) > create mode 100644 meta/recipes-devtools/pseudo/files/libm.patch >=20 > diff --git a/meta/recipes-devtools/pseudo/files/libm.patch = b/meta/recipes-devtools/pseudo/files/libm.patch > new file mode 100644 > index 00000000000..1a82979313d > --- /dev/null > +++ b/meta/recipes-devtools/pseudo/files/libm.patch > @@ -0,0 +1,33 @@ > +If sqlite3 is built with FTS5 enabled then it links to libm.so for = log(), but if > +we statically link to libsqlite3.a then this linkage is lost. > + > +Work around this by always linking to libm.so. > + > +Upstream-Status: Submitted > +Signed-off-by: Ross Burton > + > +=46rom 4633a8750f0966621d258548fba82bc6aa5aa997 Mon Sep 17 00:00:00 = 2001 > +From: Ross Burton > +Date: Tue, 6 Nov 2018 12:13:17 +0000 > +Subject: [PATCH] Makefile: sqlite can need libm > + > +--- > + Makefile.in | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/Makefile.in b/Makefile.in > +index ad6541b..28b5ecb 100644 > +--- a/Makefile.in > ++++ b/Makefile.in > +@@ -73,7 +73,7 @@ WRAPOBJS=3Dpseudo_wrappers.o > + > + # needed for anything that links with pseduo_client.o, pretty much > + CLIENT_LDFLAGS=3D-ldl -lpthread > +-DB_LDFLAGS=3D@SQLITE_LDARG@ -lpthread > ++DB_LDFLAGS=3D@SQLITE_LDARG@ -lpthread -lm > + > + PSEUDO=3D$(BIN)/pseudo > + PSEUDODB=3D$(BIN)/pseudodb > +-- > +2.11.0 > + > diff --git a/meta/recipes-devtools/pseudo/pseudo_git.bb = b/meta/recipes-devtools/pseudo/pseudo_git.bb > index 79e0b6bd21a..c9a4ecd2e23 100644 > --- a/meta/recipes-devtools/pseudo/pseudo_git.bb > +++ b/meta/recipes-devtools/pseudo/pseudo_git.bb > @@ -2,6 +2,7 @@ require pseudo.inc >=20 > SRC_URI =3D "git://git.yoctoproject.org/pseudo \ > file://0001-configure-Prune-PIE-flags.patch \ > + file://libm.patch \ > file://fallback-passwd \ > file://fallback-group \ > file://moreretries.patch \ > -- > 2.11.0 >=20 > -- > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.openembedded.org/mailman/listinfo/openembedded-core I digged a bit deeper (since I'd like to get a reasonable solution even = for other dependent components) and would say, pseudo will also fail, = when sqlite3 is build using readline or libz. The better option will be to let pseudo use the libs and link-flags from = sqlite.pc Cheers -- Jens Rehsack - rehsack@gmail.com --Apple-Mail=_0FF2129A-B66E-42FD-BBB9-9C0EA1861183 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

Am 06.11.2018 um 13:24 schrieb Ross Burton <ross.burton@intel.com>:

If = sqlite3 is built with FTS5 it uses log() from libm, but that linkage is = lost
if we manually statically link so explicitly link to = libm.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
= meta/recipes-devtools/pseudo/files/libm.patch | 33 = +++++++++++++++++++++++++++
= meta/recipes-devtools/pseudo/pseudo_git.bb    |  1 = +
2 files changed, 34 insertions(+)
create = mode 100644 meta/recipes-devtools/pseudo/files/libm.patch

diff --git = a/meta/recipes-devtools/pseudo/files/libm.patch = b/meta/recipes-devtools/pseudo/files/libm.patch
new file = mode 100644
index 00000000000..1a82979313d
---= /dev/null
+++ = b/meta/recipes-devtools/pseudo/files/libm.patch
@@ -0,0 = +1,33 @@
+If sqlite3 is built with FTS5 enabled then it = links to libm.so for log(), but if
+we statically link to = libsqlite3.a then this linkage is lost.
+
+Work around this by always linking to libm.so.
+
+Upstream-Status: Submitted
+Signed-off-by: Ross Burton <ross.burton@intel.com>
+
+=46rom 4633a8750f0966621d258548fba82bc6aa5aa997 Mon Sep 17 = 00:00:00 2001
+From: Ross Burton <ross.burton@intel.com>
+Date: Tue, 6 Nov = 2018 12:13:17 +0000
+Subject: [PATCH] Makefile: sqlite can = need libm
+
+---
+ Makefile.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index ad6541b..28b5ecb = 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ = -73,7 +73,7 @@ WRAPOBJS=3Dpseudo_wrappers.o
+
+ # needed for anything that links with pseduo_client.o, = pretty much
+ CLIENT_LDFLAGS=3D-ldl -lpthread
+-DB_LDFLAGS=3D@SQLITE_LDARG@ -lpthread
++DB_LDFLAGS=3D@SQLITE_LDARG@ -lpthread -lm
+ =
+ PSEUDO=3D$(BIN)/pseudo
+ = PSEUDODB=3D$(BIN)/pseudodb
+--
+2.11.0
+
diff --git = a/meta/recipes-devtools/pseudo/pseudo_git.bb = b/meta/recipes-devtools/pseudo/pseudo_git.bb
index = 79e0b6bd21a..c9a4ecd2e23 100644
--- = a/meta/recipes-devtools/pseudo/pseudo_git.bb
+++ = b/meta/recipes-devtools/pseudo/pseudo_git.bb
@@ -2,6 +2,7 = @@ require pseudo.inc

SRC_URI =3D "git://git.yoctoproject.org/pseudo \
=            file://0001-configure-Prune-PIE-flags.patch \
+ =           file://libm.patch \
=            file://fallback-passwd = \
=            file://fallback-group = \
=            file://moreretries.patch= \
--
2.11.0

-- =
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-cor= e

I digged a bit deeper (since I'd like = to get a reasonable solution even for other dependent components) and = would say, pseudo will also fail, when sqlite3 is build using readline = or libz.
The better option will be to let pseudo = use the libs and link-flags from sqlite.pc

Cheers
-- 
Jens Rehsack - = rehsack@gmail.com

= --Apple-Mail=_0FF2129A-B66E-42FD-BBB9-9C0EA1861183-- --Apple-Mail=_DF87F14D-9975-4482-9819-F0C1D838602B Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEGutaqWUYV+tvC/mCRJmWrtzlCp0FAlvkTdwACgkQRJmWrtzl Cp2skxAAiEmIXTMS5qgr9oc3xHlXNaKlKs12eOm0uX/sm/mmlP7BzNBMJZnWs8mN yflu6yFemdq2FwMwovq/4WUt9sMTJf1zAmIdnIq9fY4pbaDkinWqEUIx2h6sSM/i OAeGS5XrWELLkAQhQBwXzEHddQitKp2RW1JnE1GALC594ZY6Or0GnQal5IiN9YJf 0ZU9vLgn1hO/WSvf63unHnrYqPfMWMGHOM84Jx7fCe+bYR1Do67RfZVFWOwZjCid Nty2ZfA0yRjlSNSqvKgTyuQdTVpMEvNdDSvHUp3BfV8HtZkZ0VmL4TttYSC5ontK dEfNEhRC/4qRWaCaMcgInSqcMSxxaTbyIrg/4MbTP9S8PL4bIf11SaoElurwHheJ s27TzSLCO8JC8TVBEUiT0tJHEJgwS34T/WJV3eQTYsK2hA0rFdVgQdgMFeKggOMs MaLCz82TNslAbCalJEWsHhj6DYp6mQStpY0eUHNbAkXWdODG3EpcWWzKQNa8TfHx IWb70sfBKRcOuQ0hXCRlOHDFA1ooWe34nubjmwNvCgXvDjhlGX1OfdifDUazksI9 auw1SpvBBSb2J55+zfb3vVQjrK10s02BuEVMnszGqgPsXFLt5iK3ncymKwiMZb+m axBp0fBOjqaqneTnZHaGQePFXyQq/lvmhX4FokkOLUPZh5zQbII= =xB9y -----END PGP SIGNATURE----- --Apple-Mail=_DF87F14D-9975-4482-9819-F0C1D838602B--