mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
When building libesmtp on the autobuilder with gcc-14, the
following error occurs:
/workdir/instance-0/output-1/per-package/libesmtp/host/bin/arc-linux-gcc -Ilibesmtp.so.6.2.0.p -I. -I.. -I/workdir/instance-0/output-1/per-package/libesmtp/host/arc-buildroot-linux-gnu/sysroot/usr/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O3 -D_POSIX_C_SOURCE=200809L -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ libesmtp.so.6.2.0.p/smtp-api.c.o -MF libesmtp.so.6.2.0.p/smtp-api.c.o.d -o libesmtp.so.6.2.0.p/smtp-api.c.o -c ../smtp-api.c
../smtp-api.c: In function 'smtp_version':
../smtp-api.c:1183:7: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration]
1183 | if (strlcpy (buf, v, len) > len)
| ^~~~~~~
| strncpy
This error has been fixed upstream in commit [1], but no new release
has been made since.
This patch update the package version to fetch the latest upstream
commit v1.1.0-14-g335ee8d.
For the changes, see:
- https://github.com/libesmtp/libESMTP/compare/v1.1.0...335ee8d2fa5cb7d30db7b818ec05563ad139ee2f
[1] 972eb54749
Fixes: https://autobuild.buildroot.org/results/ced/ceda012506edccda1727904eb3327017b07e27d8
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
[Julien:
- mention gcc-14 as the root cause of the build failure
- use "git describe --tags --abbrev=40" format in _VERSION
]
Signed-off-by: Julien Olivain <ju.o@free.fr>
28 lines
795 B
Makefile
28 lines
795 B
Makefile
################################################################################
|
|
#
|
|
# libesmtp
|
|
#
|
|
################################################################################
|
|
|
|
LIBESMTP_VERSION = v1.1.0-14-g335ee8d2fa5cb7d30db7b818ec05563ad139ee2f
|
|
LIBESMTP_SITE = $(call github,libesmtp,libESMTP,$(LIBESMTP_VERSION))
|
|
LIBESMTP_INSTALL_STAGING = YES
|
|
LIBESMTP_LICENSE = GPL-2.0+ (examples), LGPL-2.1+ (library)
|
|
LIBESMTP_LICENSE_FILES = COPYING.GPL LICENSE
|
|
LIBESMTP_CPE_ID_VERSION = 1.1.0
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBESMTP_CONF_OPTS += -Dtls=enabled
|
|
LIBESMTP_DEPENDENCIES += openssl
|
|
else
|
|
LIBESMTP_CONF_OPTS += -Dtls=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
LIBESMTP_CONF_OPTS += -Dpthreads=enabled
|
|
else
|
|
LIBESMTP_CONF_OPTS += -Dpthreads=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|