[MacPorts] #61823: py38-reportlab 3.5.46_0: missing #include <string.h>

MacPorts noreply at macports.org
Sun Dec 13 07:34:36 UTC 2020


#61823: py38-reportlab 3.5.46_0: missing #include <string.h>
------------------------------+----------------------------
 Reporter:  greyhare          |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  Normal            |  Milestone:
Component:  ports             |    Version:  2.6.4
 Keywords:  reportlab bigsur  |       Port:  py38-reportlab
------------------------------+----------------------------
 Trying to build py38-reportlab on Big Sur and it's not building. Digging
 into the log, this seems to be the error:

 {{{
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:100:9: error:
 implicitly declaring library function 'strlen' with type 'unsigned long
 (const char *)' [-Werror,-Wimplicit-function-declaration]
 :info:build   len = strlen (s);
 :info:build         ^
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:100:9: note:
 include the header <string.h> or explicitly provide a declaration for
 'strlen'
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:102:3: error:
 implicitly declaring library function 'memcpy' with type 'void *(void *,
 const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
 :info:build   memcpy (new, s, len);
 :info:build   ^
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:102:3: note:
 include the header <string.h> or explicitly provide a declaration for
 'memcpy'
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:172:10: error:
 implicitly declaring library function 'strcmp' with type 'int (const char
 *, const char *)' [-Werror,-Wimplicit-function-declaration]
 :info:build     if (!strcmp (nc->table[i & mask].name, name))
 :info:build          ^
 :info:build src/rl_addons/renderPM/gt1/gt1-namecontext.c:172:10: note:
 include the header <string.h> or explicitly provide a declaration for
 'strcmp'
 :info:build 3 errors generated.
 :info:build error: command '/usr/bin/clang' failed with exit status 1
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 reportlab/py38-reportlab/work/reportlab-3.5.46" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8
 setup.py --no-user-cfg build -j8
 :info:build Exit code: 1
 :error:build Failed to build py38-reportlab: command execution failed
 }}}

 Looking at `src/rl_addons/renderPM/gt1/gt1-namecontext.c`, it starts out
 like this:

 {{{
 /* A module for a simple "name context", i.e. lisp-style atoms */

 #include "gt1-misc.h"

 #include "gt1-namecontext.h"
 #if defined(_WIN32) || defined(macintosh)
 #       include <string.h>
 #endif
 }}}

 So it looks like `macintosh` isn't getting defined. That's as far as I can
 push this.

-- 
Ticket URL: <https://trac.macports.org/ticket/61823>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list