On Tue, Mar 05, 2024 at 11:55:28PM +0100, John Paul Adrian Glaubitz wrote:
Thanks! You saved me a lot of headaches!
FWIW to do a bootstrap build of perl I had to:
- disable libdb and libgdbm build-deps
- disable build-time tests, which would pick up old ndbm module from
on-disk and break as a result
Not sure if your bootstrap path was similar.
I have run into this issue again trying to rebuild libxs-parse-keyword-perl with a src:perl that was built with dpkg_1.22.5:
powerpc-linux-gnu-gcc -Isrc/ -I/usr/lib/powerpc-linux-gnu/perl/5.38/CORE -DVERSION="0.39" -DXS_VERSION="0.39" -fPIC -I. -Ihax -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/glaubitz/perl-modules/libxs-parse-keyword-perl-0.39=. -fstack-
protector-strong -Wformat -Werror=format-security -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/glaubitz/perl-modules/libxs-parse-keyword-perl-0.39=. -fstack-protector-strong -
Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -o lib/XS/Parse/Keyword.o lib/XS/Parse/Keyword.c
ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/XS/Parse/Keyword/Keyword.bs')
powerpc-linux-gnu-gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/home/glaubitz/perl-modules/libxs-parse-keyword-perl-0.39=. -fstack-protector-strong -Wformat -Werror=format-
security -Wl,-z,relro -Wl,-z,now -shared -L/usr/local/lib -fstack-protector-strong -o blib/arch/auto/XS/Parse/Keyword/Keyword.so lib/XS/Parse/Keyword.o src/infix.o src/keyword.o
Parser.c: loadable library and perl binaries are mismatched (got first handshake key 0xb600080, needed 0xb700080)
dh_auto_build: error: /usr/bin/perl Build returned exit code 1
make: *** [debian/rules:6: binary-arch] Error 1
dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit status 2
I did not run into this. Do you have a mix of old and new packages from
perl source installed?
Also, I noticed that libxs-parse-keyword-perl build-depends on libextutils-cbuilder-perl which is apparently obsolete and also still
depends on the old Perl API [1] which makes me wonder how libxs-parse-keyword-perl was built for armhf and armel [2].
When modules are incorporated into perl, perl declares a provides: for them. There's no reason to install the libextutils-cbuilder-perl package anymore. (which, btw, was an arch: all package, so in any case it wouldn't be
affected by the ABI transition.)
--
Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer
https://www.debian.org/ [email protected] [email protected]
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEErEg/aN5yj0PyIC/KVo0w8yGyEz0FAmXo2YgACgkQVo0w8yGy Ez2GThAAx2wUHWPXs4O5xYnxdU5tfeSVgBMYl6+Nx3gw/97i3Ct8RVjO0k9jmYxb OZyWdO/IjMg6QjMnfyxwyeG0WfTS1Q4V+LJKujxw2fOJmhzE3cQoBWGrEC9VoC1+ pjeWxu7UwSji8x4Q2rrf1i/L6Q4TmlbDIgMMC+nFBjVoJVzJhJQVzT9lkM+CijVw UhgYGyHXtVN7c8Jkq3vGDMgGZSiqyZVoIC/sv3lzeJ8zRfwadHxGQKxsxiIpQecZ iSEZF097EA6HiMJ3U/e0XIP5AXSVSJLB//xU8GCySMUMq8U3Eb4ipeHKa2j77hoA k+o9+wAou5a+pk0u4vQiBs6fZNYmsfC0c9G8MuF7A1tNUMPZ2hINTprXuLVKuGs7 35VoAySmjVZG0zjN1h1AWnV6Oy1wYBaEnDqDVQSCjOD+Dm7udPaTWB3ajwkxuFWA S19q1OJ3ju0nq2iapjyAMV+RLGuG8ZG5RK+0b2c1UTwbXrNmlQZZtor183e7cd5Z Fm7Jk6Ix12eDMPaa3sDhBJffGZhX1g2ibUTa0qM4vRJnMFQQ1MSCEfNY4hHnJAef hGg2KEu6dnmfpiTyvw2l