[MacPorts] #30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo'
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ---------------------------------+------------------------------------------ Reporter: kevin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 2.0.2 Component: ports | Version: 2.0.1 Keywords: | Port: nmap ---------------------------------+------------------------------------------ Port install of nmap @5.51 fails on OSX 10.7 Lion. $ sudo port install nmap ---> Computing dependencies for nmap ---> Building nmap Error: Target org.macports.build returned: shell command failed (see log for details) Log for nmap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nmap/nmap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> Base error is: error: conflicting types for 'getnameinfo' Attached is the main.log for this build. -- Ticket URL: <https://trac.macports.org/ticket/30561> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ---------------------------------+------------------------------------------ Reporter: kevin@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: nmap ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * owner: macports-tickets@… => opendarwin.org@… * cc: kevin@… (removed) * cc: dluke@… (added) * milestone: MacPorts 2.0.2 => Old description:
Port install of nmap @5.51 fails on OSX 10.7 Lion.
$ sudo port install nmap ---> Computing dependencies for nmap ---> Building nmap Error: Target org.macports.build returned: shell command failed (see log for details) Log for nmap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nmap/nmap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
Base error is:
error: conflicting types for 'getnameinfo'
Attached is the main.log for this build.
New description: Port install of nmap @5.51 fails on OSX 10.7 Lion. {{{ $ sudo port install nmap ---> Computing dependencies for nmap ---> Building nmap Error: Target org.macports.build returned: shell command failed (see log for details) Log for nmap is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_nmap/nmap/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} Base error is: {{{ error: conflicting types for 'getnameinfo' }}} Attached is the main.log for this build. -- Comment: Please use WikiFormatting and preview before submitting. As reporter, you do not need to Cc yourself. Please do however Cc the port's maintainer(s). The Milestone field is not used for port tickets. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ---------------------------------+------------------------------------------ Reporter: kevin@… | Owner: dluke@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Keywords: | Port: nmap ---------------------------------+------------------------------------------ Changes (by dluke@…): * status: new => assigned * owner: opendarwin.org@… => dluke@… Comment: can you please clean and build again (and attach the main.log) if it fails? {{{ sudo port clean --all nmap sudo port -dv install nmap }}} -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by dluke@…): * status: assigned => closed * resolution: => worksforme Comment: In fact, I just successfully built on Lion, so it's almost certainly an issue with your setup. Either you had a partial compile that just needs to be cleaned, or you perhaps need to instal Xcode 4. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by kevin@…): * status: closed => reopened * resolution: worksforme => Comment: I just cleaned and rebuilt as instructed above, and had the same error. I am running on a clean Lion installation and I have Xcode 4.2 installed (for iOS 5.0 beta 4). My new main.log looks identical to the first one attached to the ticket, as the error is still referring to conflicting types defined. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by dluke@…): The new main.log cannot be identical (since the one you uploaded includes skipped phases), at the very least, it should have additional output from running nmap's configure script(s). Please attach it, as requested. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by corndogcomputers@…): I am having the exact same issue, but I would like to add that I too have '''Xcode 4.2 and iOS 5 SDK beta 4 (Lion)'''. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by dluke@…): My working configuration has Xcode 4.1 installed. So if this is an Xcode 4.2 issue, someone with access to it will probably have to supply a patch to fix it. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by corndogcomputers@…): I can verify that the issue is related to Xcode 4.2 beta. I uninstalled Xcode 4.2 beta and downgraded to XCode 4.1 and nmap compiled just fine. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: worksforme | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by dluke@…): * status: reopened => closed * resolution: => worksforme Comment: If someone with Xcode 4.2 beta wants to figure it out and get a patch that works, I'd be happy to include it. Otherwise I'm going to close this. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by msavory@…): * status: closed => reopened * resolution: worksforme => Comment: I have the same issue here. You may also be able to reproduce in Xcode 4.1 by setting clang as the compiler instead of llvm-gcc . -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by jmr@…): * cc: dluke@… (removed) * cc: opendarwin.org@… (added) -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by dave.whitla@…): Exactly the same issue here using Xcode 4.2. I should add that at this time GCC has been deprecated in the OSX toolchain in favour of LLVM so LLVM3 really should be considered our compiler target. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:14> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by michele.noberasco@…): For those who are on a hurry and need a quick n dirty solution, do the following: - open nbase/getnameinfo.c and wipe out getnameinfo method implementation - open nbase/nbase_ipv6.h and wipe out the conditional code for #if !HAVE_GETNAMEINFO || !HAVE_GETADDRINFO, then for #if !HAVE_GETNAMEINFO, and finally for #if !HAVE_GETADDRINFO -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by michele.noberasco@…): For a clean solution / patch, it would be necessary to go and check where HAVE_GETNAMEINFO and HAVE_GETADDRINFO are controlled. However, compiling of getnameinfo method implementation didn't seem conditional to me. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by msy@…): I get the same error with the release version of XCode 4.2 (4D199) on Lion, FYI. -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: fixed | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Changes (by dluke@…): * status: reopened => closed * resolution: => fixed Comment: The configure tests for getaddrinfo and getnameinfo are mildly broken - and Xcode 4.2 doesn't like them, which causes the build to fail. The Portfile now does a quick fix to nbase/configure and the build works for me (r85928). -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
#30561: nmap @5.51 build fails on OSX 10.7 Lion - error: conflicting types for 'getnameinfo' ----------------------------------+----------------------------------------- Reporter: kevin@… | Owner: dluke@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.1 Resolution: fixed | Keywords: Port: nmap | ----------------------------------+----------------------------------------- Comment(by msy@…): I can also confirm that the port does build properly now. Thanks! -- Ticket URL: <https://trac.macports.org/ticket/30561#comment:21> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts