[Bug 3794] New: libcrux_mlkem768_sha3.h: undefined reference to htole64 and le64toh when compiling since 9.9p2

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 25 01:09:19 AEDT 2025


https://bugzilla.mindrot.org/show_bug.cgi?id=3794

            Bug ID: 3794
           Summary: libcrux_mlkem768_sha3.h: undefined reference to
                    htole64 and le64toh when compiling since 9.9p2
           Product: Portable OpenSSH
           Version: 9.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: jordy.provost at beemotechnologie.com

Hi,

So far i was able to compile OpenSSH until 9.9p1.

Since 9.9p2, i have this error:

/bin/gcc -std=gnu11 -o ssh-keygen ssh-keygen.o sshsig.o ssh-sk-client.o
-L. -Lopenbsd-compat/  -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack
-Wl,-z,retpolineplt -fstack-protector-all -pie  -lssh -lopenbsd-compat
-lresolv -lrt -ldl -lutil  -lcrypto  -lz
collect2: erreur: ld a retourné 1 code d'état d'exécution
make: *** [ssh] Erreur 1
make: *** Attente des tâches non terminées....
./libssh.a(kexmlkem768x25519.o): In function
`core_num__u64_9__to_le_bytes':
/root/openssh-9.9p2/libcrux_mlkem768_sha3.h:164: undefined reference to
`htole64'
./libssh.a(kexmlkem768x25519.o): In function
`core_num__u64_9__from_le_bytes':
/root/openssh-9.9p2/libcrux_mlkem768_sha3.h:170: undefined reference to
`le64toh'
collect2: erreur: ld a retourné 1 code d'état d'exécution
make: *** [sshd-session] Erreur 1

If a revert the commit 26d81a430811672bc762687166986cad40d28cc0 on
9.9p2 sources, i am able to compile again.

The system is Little-Endian:

# printf '\1' | od -dAn
1

P.S: the tagged version for this issue is (incorrectly) 9.9p1 as the
select box on bugzilla does not give 9.9p2 option.


THanks in advance.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list