Opened 4 years ago
Closed 3 years ago
#62513 closed defect (fixed)
ncbi_tools: error: implicit declaration of function 'write' is invalid in C99
Reported by: | seanhemmingsen | Owned by: | weitzner (Brian Weitzner) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | ncbi_tools |
Description
after clean, uninstall, selfupdate, install ncbi_tools failed.
Attachments (2)
Change History (7)
Changed 4 years ago by seanhemmingsen
Attachment: | Failed_to_build_ncbi_tools_main.log added |
---|
comment:1 Changed 4 years ago by mf2k (Frank Schima)
Port: | ncbi_tools added |
---|
comment:2 Changed 4 years ago by mf2k (Frank Schima)
Error appears to be :
:info:build viewgif.c:115:5: error: implicit declaration of function 'write' is invalid in C99 [-Werror,-Wimplicit-function-declaration] :info:build write(1, tmp_buff, strlen(tmp_buff));
comment:3 Changed 4 years ago by mf2k (Frank Schima)
Summary: | Failed to build ncbi_tools: command execution failed → ncbi_tools: error: implicit declaration of function 'write' is invalid in C99 |
---|
comment:4 Changed 3 years ago by weitzner (Brian Weitzner)
EDIT: This should be a reproducible way to build the package locally:
wget https://ftp.ncbi.nlm.nih.gov/toolbox/ncbi_tools/old/20120620/ncbi.tar.gz tar xf ncbi.tar.gz patch -p0 < fix-macos-build.patch ./ncbi/make/makedis.csh 2>&1 | tee out.makedis.txt
The patch file can be found here I would be happy to contribute this fix, but as it would be my first port contribution I might look for a little guidance. Thanks!
Changed 3 years ago by weitzner (Brian Weitzner)
Attachment: | fix-macos-build.patch added |
---|
patch-file
comment:5 Changed 3 years ago by weitzner (Brian Weitzner)
Owner: | set to weitzner |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In the future, please fill in the Port field.