Opened 10 years ago

Closed 10 years ago

#41718 closed defect (worksforme)

dsniff ports has issues.

Reported by: alfred@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch mavericks Cc:
Port: dsniff

Description

dsniff seems to be failing due to missing db185 library.

the following patch makes sure that db44 is installed (the only bdb port that seems to include db185 compat by default) and also updates the configure scripts to know where to look for them.

Attachments (2)

Portfile.diff (720 bytes) - added by alfred@… 10 years ago.
Patch to portfile to add patchfile and db dependancy
patch-configure (2.8 KB) - added by alfred@… 10 years ago.
patch to configure.in and configure.

Download all attachments as: .zip

Change History (10)

Changed 10 years ago by alfred@…

Attachment: Portfile.diff added

Patch to portfile to add patchfile and db dependancy

Changed 10 years ago by alfred@…

Attachment: patch-configure added

patch to configure.in and configure.

comment:1 Changed 10 years ago by alfred@…

Thanks!

comment:2 Changed 10 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…

Possible duplicate of #41117. Please check that you have the Command Line Tools installed.

comment:3 Changed 10 years ago by alfred@…

Hmm, I do not have the cli tools installed, I'm installing them now and will report back, but in the meanwhile, shouldn't macports have some kind of flag that says "depends on xcode" so that the error message makes sense? I unfortunately spent about an hour or two trying to figure things out where an informative error message would have sufficed to get me on track.

comment:4 Changed 10 years ago by neverpanic (Clemens Lang)

Unfortunately MacPorts just assumes you have the Command Line Tools installed and does not track which ports actually use them. Since (until 10.9) the Command Line Tools provided /usr/bin/clang that wasn't an issue, though – builds would just fail immediately without them.

Since 10.9 the shims installed as /usr/bin/clang and similar tools no longer tell you to install the Command Line Tools but fall back to using compilers from Xcode, if you have that installed. Unfortunately, that breaks in subtle ways, such as this one. Note that "depends on Xcode" would actually not be correct, because it "depends on Xcode CLT" in this case, and we should really distinguish both those cases because those packages can be installed separately.

Tracking these requirements is a good idea but hasn't been done yet and would require a lot of work at the moment. Fortunately, a feature I've been working on called trace mode to be released with the next major release should make getting this right a lot simpler.

comment:5 Changed 10 years ago by alfred@…

Thanks cal. OK, that makes sense. Looking forward to the feature and fix!

comment:6 Changed 10 years ago by alfred@…

Also, I just confirmed that running the command:

xcode-select --install 

and then installing the port works for me.

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

Keywords: haspatch mavericks added
Milestone: MacPorts Future
Port: dsniff added

comment:8 Changed 10 years ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: newclosed

Glad you could fix the problem.

Note: See TracTickets for help on using tickets.