Bug#998664: libntl43: undefined reference to `NTL::sub(NTL::ZZ&, NTL::ZZ const&, long)

David George Henderson III dgh at its.caltech.edu
Fri Nov 5 22:59:29 GMT 2021


Package: libntl43
Version: 11.4.3-1+b1
Severity: normal
X-Debbugs-Cc: dgh at its.caltech.edu

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
   * What was the outcome of this action?
   * What outcome did you expect instead?

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 11.1
  APT prefers stable-security
  APT policy: (500, 'stable-security')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libntl43 depends on:
ii  libc6                2.31-13+deb11u2
ii  libgcc-s1 [libgcc1]  10.2.1-6
ii  libgf2x3             1.3.0-1+b1
ii  libgmp10             2:6.2.1+dfsg-1
ii  libstdc++6           10.2.1-6

libntl43 recommends no packages.

libntl43 suggests no packages.

-- no debconf information

Here is the program that reproduces the problem when compiled:

#include <NTL/ZZ.h>
#include <stdio.h>
#include <stdlib.h>

int bugdemo(NTL::ZZ & result, const NTL::ZZ &left, long right) {
    result = left - right;
    return 0;
}
int main(int argc, char* argv[]) {

    NTL::ZZ u,v;
    long w;
    v = 4;
    w = 4;
    bugdemo(u,v,w);
}



More information about the debian-science-maintainers mailing list