[yocto] monit lcrypt issue

Ronan GAILLARD ronan.gaillard at live.fr
Mon May 27 08:56:25 PDT 2019


monit lcrypt issue:  Expose lcrypt while building monit with Yocto Thud

When building monit using Yocto Thud the following error pops while building monit 5.25.2 :
/usr/src/debug/monit/5.25.2-r0/monit-5.25.2/src/util.c:1675: undefined reference to `crypt’

Older versions of glibc supplied a libcrypt library for this purpose, and declared the function in <unistd.h>.
Newer versions of glibc don't supply libcrypt. In order to prevent the undefined lcrypt error we need to add virtual/crypt to the recipe’s DEPENDS

Signed-off-by: Ronan Gaillard <ronan.gaillard at live.fr<mailto:ronan.gaillard at live.fr>>
—

diff --git a/meta-cgl-common/recipes-cgl/monit/monit_5.25.2.bb b/meta-cgl-common/recipes-cgl/monit/monit_5.25.2.bb
index ab9e922..7a96722 100644
--- a/meta-cgl-common/recipes-cgl/monit/monit_5.25.2.bb
+++ b/meta-cgl-common/recipes-cgl/monit/monit_5.25.2.bb
@@ -9,7 +9,7 @@ HOMEPAGE = "http://mmonit.com/monit/"
 LICENSE = "AGPLv3"
 LIC_FILES_CHKSUM = "file://COPYING;md5=ea116a7defaf0e93b3bb73b2a34a3f51"

-DEPENDS = "openssl zlib"
+DEPENDS = "openssl zlib virtual/crypt"

 SRC_URI = "\
        http://mmonit.com/monit/dist/${BP}.tar.gz \

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190527/fd9709b9/attachment-0001.html>


More information about the yocto mailing list