#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