[MacPorts] #38822: nmap fails to compile, missing "#include <sys/types.h>"
#38822: nmap fails to compile, missing "#include <sys/types.h>" ------------------------+-------------------------------- Reporter: aseering@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: ------------------------+-------------------------------- I'm running Mac OS X 10.4.11. When compiling, I get the following error: {{{ :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_nmap/nmap/work /nmap-6.25/liblua' (...) :info:build /usr/bin/gcc-4.0 -O2 -Wall -no-cpp-precomp -pipe -O2 -arch ppc -Wall -fno-strict-aliasing -DLUA_USE_MACOSX -c -o liolib.o liolib.c :info:build liolib.c: In function <E2><80><98>f_seek<E2><80><99>: :info:build liolib.c:543: error: <E2><80><98>off_t<E2><80><99> undeclared (first use in this function) :info:build liolib.c:543: error: (Each undeclared identifier is reported only once :info:build liolib.c:543: error: for each function it appears in.) :info:build liolib.c:543: error: parse error before <E2><80><98>offset<E2><80><99> :info:build liolib.c:544: error: <E2><80><98>offset<E2><80><99> undeclared (first use in this function) :info:build make[1]: *** [liolib.o] Error 1 }}} (Full main.log is attached.) If I add {{{ #include <sys/types.h> }}} to the top of liolib.c, the build succeeds. I realize that OS X 10.4 is probably not your top priority... But this feels to me like a change for the better; this file does use stuff in sys/types.h, so #include'ing it doesn't strike me as unreasonable. Would you consider patching the port accordingly? -- Ticket URL: <https://trac.macports.org/ticket/38822> MacPorts <http://www.macports.org/> Ports system for OS X
#38822: nmap fails to compile, missing "#include <sys/types.h>" -------------------------+-------------------------------- Reporter: aseering@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+-------------------------------- Comment (by dluke@…): I don't have a 10.4 system to test on, but one thing you might want to do is report this upstream. If you do, please note it here (including whatever fix that ends up being merged upstream). If you can attach a patchfile with your change and a portfile diff (which applies the patch only on 10.4), I'm likely to get to updating the port sooner than if I have to generate it myself (and try to test it somehow). -- Ticket URL: <https://trac.macports.org/ticket/38822#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38822: nmap fails to compile, missing "#include <sys/types.h>" -------------------------+---------------------- Reporter: aseering@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: | -------------------------+---------------------- Changes (by dluke@…): * owner: macports-tickets@… => dluke@… * status: new => assigned -- Ticket URL: <https://trac.macports.org/ticket/38822#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38822: nmap fails to compile, missing "#include <sys/types.h>" -------------------------+---------------------- Reporter: aseering@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: nmap | -------------------------+---------------------- Changes (by macsforever2000@…): * port: => nmap Comment: In the future, please fill in the Port field and Cc the port maintainer(s). -- Ticket URL: <https://trac.macports.org/ticket/38822#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts