Opened 7 years ago

Last modified 7 years ago

#54334 closed defect

MacPorts 2.4.1 claims Xcode command line tools are not installed, but they are — at Version 5

Reported by: chrisscooke Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc:
Port: dsniff

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Trying to install "dsniff" claims that Xcode command line tools are not installed.

Christopher-Cookes-MacBook-Air:~ chriscooke$ sudo port install dsniff
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build.
Warning: Install them by running `xcode-select --install'.
--->  Computing dependencies for dsniff
--->  Configuring dsniff
Error: Failed to configure dsniff, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_dsniff/dsniff/work/dsniff-2.4/config.log
Error: Failed to configure dsniff: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_dsniff/dsniff/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port dsniff failed

But the command line tools are installed:

Christopher-Cookes-MacBook-Air:~ chriscooke$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

I have Xcode 8.3.2.

Also, I cannot fill in the maintainer in the CC because the port info command claims this port doesn't exist, even though trying to install the port seems to try to install the port (as seen above):

Christopher-Cookes-MacBook-Air:~ chriscooke$ port info --maintainer dnsiff
Error: Port dnsiff not found

Change History (5)

comment:1 Changed 7 years ago by Schamschula (Marius Schamschula)

Two things:

1) what does which gcc tell you?

2) dsniff is nomaintainer, i.e. has no maintainer

comment:2 Changed 7 years ago by chrisscooke

1) which gcc returns: Christopher-Cookes-MacBook-Air:~ chriscooke$ which gcc /usr/bin/gcc

2) if dsniff has nomaintainer, then the maintainer command should say that instead of "dsniff not found". So that is yet another bug in macports.

comment:3 Changed 7 years ago by ctreleaven (Craig Treleaven)

2)

CT-MBP11:libass craigtreleaven$ port info --maintainer dnsiff
Error: Port dnsiff not found
CT-MBP11:libass craigtreleaven$ port info --maintainer dsniff
maintainer: 

comment:4 in reply to:  3 Changed 7 years ago by Schamschula (Marius Schamschula)

Replying to ctreleaven:

2)

CT-MBP11:libass craigtreleaven$ port info --maintainer dnsiff
Error: Port dnsiff not found
CT-MBP11:libass craigtreleaven$ port info --maintainer dsniff
maintainer: 

Interesting:

I tend to be too lazy to type in port info --maintainer dnsiff, so I just type port info dnsiff, and as part of the full output it correctly gives me

Maintainers: none

comment:5 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: port xcode command line tools removed

Running xcode-select -p does not prove that the command line tools are installed. Please (re)install the command line tools.

The port name is "dsniff" not "dnsiff".

Once you've installed the command line tools, clean dsniff and try again. If it fails, attach the main.log file.

Note: See TracTickets for help on using tickets.