[Debian-med-packaging] Bug#833539: ncbi-blast+: FTBFS on hurd-i386: PATH_MAX undefined

Aaron M. Ucko amu at alum.mit.edu
Fri Aug 5 18:10:35 UTC 2016


Source: ncbi-blast+
Version: 2.4.0-2
Severity: important
Justification: fails to build from source (but built successfully in the past)

The Hurd builds of BLAST+ 2.4.0-2 failed:

  /.../ncbi-blast+-2.4.0/c++/src/connect/ncbi_socket_cxx.cpp: In member function 'std::__cxx11::string ncbi::CSocket::GetPeerAddress(ESOCK_AddressFormat) const':
  /.../ncbi-blast+-2.4.0/c++/src/connect/ncbi_socket_cxx.cpp:339:14: error: 'PATH_MAX' was not declared in this scope
       char buf[PATH_MAX + 1];
                ^~~~~~~~
  /.../ncbi-blast+-2.4.0/c++/src/connect/ncbi_socket_cxx.cpp:341:47: error: 'buf' was not declared in this scope
           SOCK_GetPeerAddressStringEx(m_Socket, buf, sizeof(buf), format) != 0) {
                                                 ^~~

This file (and any others that rely on PATH_MAX) should either honor
sysconf(_SC_PATH_MAX) dynamically or at minimum gain a conditional
definition of PATH_MAX; IIRC, 4096 is traditional.



More information about the Debian-med-packaging mailing list