Hi Paul

I fixed this bug. The debdiff is as attachment.
It is quite easy to fix. It is not related to the library but just the test itself.

Should I upload it?

Yours,
Paul

On 2023/4/2 04:04, Paul Gevers wrote:
Source: libntru
Version: 0.5-2
Severity: serious
Control: tags -1 bookworm-ignore
User: debian...@lists.debian.org
Usertags: regression

Dear maintainer(s),

Your package has an autopkgtest, great. However, it fails. Can you please investigate the situation and fix it? I copied some of the output at the bottom of this report.

The release team has announced [1] that failing autopkgtest on amd64 and arm64 are considered RC in testing. [Release Team member hat on] I'm slightly worried that this test failure points at a real problem with the library, but because we're currently in the hard freeze for bookworm, I have marked this bug as bookworm-ignore. Targeted fixes are still welcome. Please remove the bookworm-ignore tag if the library is broken as it is.

More information about this bug and the reason for filing it can be found on https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://lists.debian.org/debian-devel-announce/2019/07/msg00002.html

https://ci.debian.net/data/autopkgtest/testing/amd64/libn/libntru/32095885/log.gz

autopkgtest [16:23:12]: test benchmark: [-----------------------
/usr/bin/ld: /tmp/cc3rAheI.o: warning: relocation against `EES761EP1' in read-only section `.text.startup'
/usr/bin/ld: /tmp/cc3rAheI.o: in function `main':
bench.c:(.text.startup+0x39): undefined reference to `ntru_rand_default_init' /usr/bin/ld: bench.c:(.text.startup+0x40): undefined reference to `ntru_rand_default_generate' /usr/bin/ld: bench.c:(.text.startup+0x54): undefined reference to `EES401EP1' /usr/bin/ld: bench.c:(.text.startup+0x5c): undefined reference to `EES401EP1' /usr/bin/ld: bench.c:(.text.startup+0x63): undefined reference to `EES401EP1' /usr/bin/ld: bench.c:(.text.startup+0x6b): undefined reference to `EES449EP1' /usr/bin/ld: bench.c:(.text.startup+0x7a): undefined reference to `EES401EP1' /usr/bin/ld: bench.c:(.text.startup+0x89): undefined reference to `EES401EP1' /usr/bin/ld: bench.c:(.text.startup+0x98): undefined reference to `EES449EP1' /usr/bin/ld: bench.c:(.text.startup+0xa7): undefined reference to `EES449EP1' /usr/bin/ld: bench.c:(.text.startup+0xb5): undefined reference to `EES449EP1' /usr/bin/ld: bench.c:(.text.startup+0xc4): undefined reference to `EES449EP1' /usr/bin/ld: bench.c:(.text.startup+0xd3): undefined reference to `EES677EP1' /usr/bin/ld: bench.c:(.text.startup+0xe2): undefined reference to `EES677EP1' /usr/bin/ld: bench.c:(.text.startup+0xf0): undefined reference to `EES677EP1' /usr/bin/ld: bench.c:(.text.startup+0xff): undefined reference to `EES677EP1' /usr/bin/ld: bench.c:(.text.startup+0x10e): undefined reference to `EES677EP1' /usr/bin/ld: bench.c:(.text.startup+0x11d): undefined reference to `EES1087EP2' /usr/bin/ld: bench.c:(.text.startup+0x141): undefined reference to `EES1087EP2' /usr/bin/ld: bench.c:(.text.startup+0x149): undefined reference to `EES1087EP2' /usr/bin/ld: bench.c:(.text.startup+0x151): undefined reference to `EES1087EP2' /usr/bin/ld: bench.c:(.text.startup+0x158): undefined reference to `EES1087EP2' /usr/bin/ld: bench.c:(.text.startup+0x167): undefined reference to `EES541EP1' /usr/bin/ld: bench.c:(.text.startup+0x176): undefined reference to `EES541EP1' /usr/bin/ld: bench.c:(.text.startup+0x185): undefined reference to `EES541EP1' /usr/bin/ld: bench.c:(.text.startup+0x194): undefined reference to `EES541EP1' /usr/bin/ld: bench.c:(.text.startup+0x1a2): undefined reference to `EES541EP1' /usr/bin/ld: bench.c:(.text.startup+0x1b1): undefined reference to `EES613EP1' /usr/bin/ld: bench.c:(.text.startup+0x1c0): undefined reference to `EES613EP1' /usr/bin/ld: bench.c:(.text.startup+0x1cf): undefined reference to `EES613EP1' /usr/bin/ld: bench.c:(.text.startup+0x1dd): undefined reference to `EES613EP1' /usr/bin/ld: bench.c:(.text.startup+0x1ec): undefined reference to `EES613EP1' /usr/bin/ld: bench.c:(.text.startup+0x1fb): undefined reference to `EES887EP1' /usr/bin/ld: bench.c:(.text.startup+0x20a): undefined reference to `EES887EP1' /usr/bin/ld: bench.c:(.text.startup+0x22e): undefined reference to `EES887EP1' /usr/bin/ld: bench.c:(.text.startup+0x235): undefined reference to `EES887EP1' /usr/bin/ld: bench.c:(.text.startup+0x23d): undefined reference to `EES887EP1' /usr/bin/ld: bench.c:(.text.startup+0x245): undefined reference to `EES1171EP1' /usr/bin/ld: bench.c:(.text.startup+0x24d): undefined reference to `EES1171EP1' /usr/bin/ld: bench.c:(.text.startup+0x255): undefined reference to `EES1171EP1' /usr/bin/ld: bench.c:(.text.startup+0x264): undefined reference to `EES1171EP1' /usr/bin/ld: bench.c:(.text.startup+0x26b): undefined reference to `EES1171EP1' /usr/bin/ld: bench.c:(.text.startup+0x27a): undefined reference to `EES659EP1' /usr/bin/ld: bench.c:(.text.startup+0x289): undefined reference to `EES659EP1' /usr/bin/ld: bench.c:(.text.startup+0x297): undefined reference to `EES659EP1' /usr/bin/ld: bench.c:(.text.startup+0x2a6): undefined reference to `EES659EP1' /usr/bin/ld: bench.c:(.text.startup+0x2b5): undefined reference to `EES659EP1' /usr/bin/ld: bench.c:(.text.startup+0x2c4): undefined reference to `EES761EP1' /usr/bin/ld: bench.c:(.text.startup+0x2d3): undefined reference to `EES761EP1' /usr/bin/ld: bench.c:(.text.startup+0x2e2): undefined reference to `EES761EP1' /usr/bin/ld: bench.c:(.text.startup+0x31b): undefined reference to `EES761EP1' /usr/bin/ld: bench.c:(.text.startup+0x322): undefined reference to `EES761EP1' /usr/bin/ld: bench.c:(.text.startup+0x32a): undefined reference to `EES1087EP1' /usr/bin/ld: bench.c:(.text.startup+0x332): undefined reference to `EES1087EP1' /usr/bin/ld: bench.c:(.text.startup+0x340): undefined reference to `EES1087EP1' /usr/bin/ld: bench.c:(.text.startup+0x348): undefined reference to `EES1087EP1' /usr/bin/ld: bench.c:(.text.startup+0x350): undefined reference to `EES1087EP1' /usr/bin/ld: bench.c:(.text.startup+0x365): undefined reference to `EES1499EP1' /usr/bin/ld: bench.c:(.text.startup+0x36d): undefined reference to `EES1499EP1' /usr/bin/ld: bench.c:(.text.startup+0x375): undefined reference to `EES1499EP1' /usr/bin/ld: bench.c:(.text.startup+0x392): undefined reference to `EES1499EP1' /usr/bin/ld: bench.c:(.text.startup+0x3fc): undefined reference to `EES1499EP1' /usr/bin/ld: bench.c:(.text.startup+0x4cf): undefined reference to `ntru_rand_default_release' /usr/bin/ld: bench.c:(.text.startup+0x4f0): undefined reference to `ntru_rand_init' /usr/bin/ld: bench.c:(.text.startup+0x538): undefined reference to `ntru_gen_key_pair' /usr/bin/ld: bench.c:(.text.startup+0x620): undefined reference to `ntru_max_msg_len' /usr/bin/ld: bench.c:(.text.startup+0x656): undefined reference to `ntru_rand_generate' /usr/bin/ld: bench.c:(.text.startup+0x66b): undefined reference to `ntru_enc_len' /usr/bin/ld: bench.c:(.text.startup+0x6f4): undefined reference to `ntru_encrypt' /usr/bin/ld: bench.c:(.text.startup+0x7eb): undefined reference to `ntru_rand_release' /usr/bin/ld: bench.c:(.text.startup+0x83e): undefined reference to `ntru_decrypt'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
autopkgtest [16:23:12]: test benchmark: -----------------------]
diff -Nru libntru-0.5/debian/changelog libntru-0.5/debian/changelog
--- libntru-0.5/debian/changelog        2017-11-07 15:31:48.000000000 +0800
+++ libntru-0.5/debian/changelog        2023-04-03 01:02:48.000000000 +0800
@@ -1,3 +1,9 @@
+libntru (0.5-3) unstable; urgency=low
+
+  * Fix autopkgtest regression. (Closes: #1033806)
+
+ -- Ying-Chun Liu (PaulLiu) <paul...@debian.org>  Mon, 03 Apr 2023 01:02:48 
+0800
+
 libntru (0.5-2) unstable; urgency=low
 
   * Fix FTBFS on big-endian arches. (Closes: #880149)
diff -Nru libntru-0.5/debian/tests/benchmark libntru-0.5/debian/tests/benchmark
--- libntru-0.5/debian/tests/benchmark  2017-11-07 15:31:48.000000000 +0800
+++ libntru-0.5/debian/tests/benchmark  2023-04-03 01:02:48.000000000 +0800
@@ -2,7 +2,8 @@
 
 set -e
 
-gcc -DNTRU_AVOID_HAMMING_WT_PATENT -I/usr/include/libntru -lntru \
-    -O2 -o "$AUTOPKGTEST_TMP"/bench src/bench.c
+gcc -DNTRU_AVOID_HAMMING_WT_PATENT -I/usr/include/libntru \
+    -O2 -o "$AUTOPKGTEST_TMP"/bench src/bench.c \
+    -lntru
 
 "$AUTOPKGTEST_TMP"/bench
diff -Nru libntru-0.5/debian/tests/example1 libntru-0.5/debian/tests/example1
--- libntru-0.5/debian/tests/example1   2017-11-07 15:31:48.000000000 +0800
+++ libntru-0.5/debian/tests/example1   2023-04-03 01:02:48.000000000 +0800
@@ -2,7 +2,8 @@
 
 set -e
 
-gcc -DNTRU_AVOID_HAMMING_WT_PATENT -I/usr/include/libntru -lntru \
-    -O2 -o "$AUTOPKGTEST_TMP"/example1 debian/tests/example1.c
+gcc -DNTRU_AVOID_HAMMING_WT_PATENT -I/usr/include/libntru \
+    -O2 -o "$AUTOPKGTEST_TMP"/example1 debian/tests/example1.c \
+    -lntru 
 
 "$AUTOPKGTEST_TMP"/example1

Attachment: OpenPGP_0x44173FA13D058888.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to