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)
I downloaded the source and attempted to work through this and found the following steps to be necessary:
asn2gnb2.c:63
#include <ffprint.h>
salutil.c:54
#include <alignmgr2.h>
viewgif.c:48
#include <unistd.h>
wblast.c:298
#include <algo/blast/core/blast_util.h> #include <accid1.h>
After making those changes I can build the tool locally and the executable I am interested in seems to be working correctly. 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.