#1134513 libvmod-re2: FTBFS: error: 'memcpy' was not declared in this scope

Package:
src:libvmod-re2
Source:
src:libvmod-re2
Submitter:
Sebastian Ramacher
Date:
2026-04-23 09:37:01 UTC
Severity:
normal
Tags:
#1134513#5
Date:
2026-04-21 06:02:37 UTC
From:
To:
Source: libvmod-re2
Version: 2.0.0+20250617-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramacher@debian.org

Dear maintainer,

libvmod-re2 fails to build:

/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/varnish -Wall -Werror -Wextra -std=c99 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o vcc_re2_if.lo vcc_re2_if.c
rst2man vmod_re2.man.rst vmod_re2.3
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/varnish -Wall -Werror -Wextra -std=c99 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c set.c  -fPIC -DPIC -o .libs/set.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/varnish -Wall -Werror -Wextra -std=c99 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c vmod_re2.c  -fPIC -DPIC -o .libs/vmod_re2.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/varnish -Wall -Werror -Wextra -std=c99 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c vcc_re2_if.c  -fPIC -DPIC -o .libs/vcc_re2_if.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wextra -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c vre2/vre2.cpp  -fPIC -DPIC -o vre2/.libs/vre2.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Werror -Wextra -std=c++17 -g -O2 -ffile-prefix-map=/build/reproducible-path/libvmod-re2-2.0.0+20250617=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c vre2/vre2set.cpp  -fPIC -DPIC -o vre2/.libs/vre2set.o
vmod_re2.man.rst:1748: (WARNING/2) Inline literal start-string without end-string.
vmod_re2.man.rst:1748: (WARNING/2) Inline literal start-string without end-string.
vre2/vre2set.cpp: In function 'const char* vre2set_match(vre2set*, const char*, int*, void*, size_t, size_t*, errorkind_e*)':
vre2/vre2set.cpp:207:25: error: 'memcpy' was not declared in this scope
  207 |                         memcpy(buf, m.data(), *nmatches * sizeof(int));
      |                         ^~~~~~
vre2/vre2set.cpp:35:1: note: 'memcpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   34 | #include "vre2set.h"
  +++ |+#include <cstring>
   35 |
make[3]: *** [Makefile:813: vre2/vre2set.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/libvmod-re2-2.0.0+20250617/src'
make[2]: *** [Makefile:457: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/libvmod-re2-2.0.0+20250617'
make[1]: *** [Makefile:389: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/libvmod-re2-2.0.0+20250617'
dh_auto_build: error: make -j6 returned exit code 2
make: *** [debian/rules:11: binary-arch] Error 25

See
https://buildd.debian.org/status/fetch.php?pkg=libvmod-re2&arch=amd64&ver=2.0.0%2B20250617-2%2Bb1&stamp=1776712652&raw=0
for details.

Cheers

#1134513#10
Date:
2026-04-21 10:24:45 UTC
From:
To:
Dear maintainer,

I've prepared an NMU for libvmod-re2 (versioned as 2.0.0+20250617-2.1)
and uploaded it to DELAYED/2. Please feel free to tell me if I should
cancel it.

cu
Adrian

#1134513#19
Date:
2026-04-21 12:00:22 UTC
From:
To:
I would say do not bother, because all the varnish ecosystem will be
redone in a few weeks to account for the name change.

#1134513#24
Date:
2026-04-21 12:08:26 UTC
From:
To:
The rebuild for the ongoing abseil transition did FTBFS,
that's the reason why I do bother.

cu
Adrian

#1134513#29
Date:
2026-04-23 09:34:01 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libvmod-re2, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1134513@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adrian Bunk <bunk@debian.org> (supplier of updated libvmod-re2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 21 Apr 2026 12:01:27 +0300
Source: libvmod-re2
Architecture: source
Version: 2.0.0+20250617-2.1
Distribution: unstable
Urgency: medium
Maintainer: Varnish Package Maintainers <team+varnish-team@tracker.debian.org>
Changed-By: Adrian Bunk <bunk@debian.org>
Closes: 1134513
Changes:
 libvmod-re2 (2.0.0+20250617-2.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Backport upstream FTBFS fix. (Closes: #1134513)
Checksums-Sha1:
 c70b89728fd4ef0079ed93cb9d7725bc1c57e9bd 2263 libvmod-re2_2.0.0+20250617-2.1.dsc
 2ac390982b79eac12317cc3ccedad87117e67c7f 5656 libvmod-re2_2.0.0+20250617-2.1.debian.tar.xz
Checksums-Sha256:
 bf9eecb329cecb8283914010729fea708077b222b1ec1dd0b7e5cfaec7994bc4 2263 libvmod-re2_2.0.0+20250617-2.1.dsc
 3b31015dd1c2a7fb5f9eb13e51c01cdc64b2a605073b22f37fc83c2a3865bb20 5656 libvmod-re2_2.0.0+20250617-2.1.debian.tar.xz
Files:
 190a3bb9796f4528dbe571b10b42e894 2263 web optional libvmod-re2_2.0.0+20250617-2.1.dsc
 4a7fe30a469c47d95626fae04461cae3 5656 web optional libvmod-re2_2.0.0+20250617-2.1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOvp1f6xuoR0v9F3wiNJCh6LYmLEFAmnnT8gACgkQiNJCh6LY
mLFzCQ/9El0L64C7pxiG0Sjykj3nUMfH0FGWw8SyLNuR/0n/RhcYxGqWsAd3ks0N
VIORIh6LFvClBisfXoFPTGF773B1ZjH8oGaMH61dlzPDP6Li8B3glk5/R30Y/K/Q
jZ+ySLdFETGrFs4lansXEizn8ZnupkfjLXlLKIWIQTrctHFwRG4etUWc8bAnF3wL
9suzLYMVaZCazXHh6A52X2Iuvt5ABvDgnvVm99wW30KRiVme4XlpngPqdCajnbdW
4ShycRERO47NkI3FVDYGTrNbNKUw8cEZrpi+toR14A89+srWLellldCpUiwAan43
K9+KAXSFcpf4qXEXocGvSXxE//Omwg7/dhHxRZ6UQSaHF9kBXugts+D/nhDBjkY4
uGGNAaFF2904QT+9N+CLixbEHkOEHkegJwk3fLox90LAf4ytFgBfjgZFjZiAYIid
cSlUILTyhchLMbnIJ7Pj4/SqafLcFZ7KYEli+U67sacC4GJcENq7LIgZgMgFFdCs
osFhsBE8P17KZCgfSj/s6j6usVFHFtDBF4jIgPqurWjGDqxDVJjBm496A2gASCB8
foZkYOgGP605epmd+d+EH/3c9Sfzswk2sjPh2exCbYPaF05KAvhjCL42CEZ7Xxa5
83iYLkTo9rPwd9m77Yx082kbIjdMepzaEinZ8TWZAR0O/ftbV3A=
=waWU
-----END PGP SIGNATURE-----