[MacPorts] #38665: Dsniff fails to build on 10.7
#38665: Dsniff fails to build on 10.7 ----------------------------+-------------------------------- Reporter: michael.komm@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: dsniff ----------------------------+-------------------------------- Dsniff fails to compile on Lion. I think the problem is somewhere in DB library port install dsniff ---> Computing dependencies for dsniff ---> Building dsniff Error: org.macports.build for port dsniff returned: command execution failed Please see the log file for port dsniff for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsniff/dsniff/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port dsniff failed When I run make manually, I get errors linked to the DB library: /record.c:130:30: error: use of undeclared identifier 'R_NOOVERWRITE' if (db->put(db, key, &data, R_NOOVERWRITE) == 0) ^ ./record.c:143:13: error: no member named 'seq' in 'struct __db' while (db->seq(db, &key, &data, R_NEXT) == 0) { ~~ ^ ./record.c:143:34: error: use of undeclared identifier 'R_NEXT' while (db->seq(db, &key, &data, R_NEXT) == 0) { and also some linked to NFS: In file included from ./filesnarf.c:28: ./nfs_prot.h:6:2: error: unterminated conditional directive #ifndef _NFS_PROT_H_RPCGEN ^ ./filesnarf.c:38:12: error: use of undeclared identifier 'NFS3_FHSIZE' u_char fh[NFS3_FHSIZE]; -- Ticket URL: <https://trac.macports.org/ticket/38665> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => cal@… Old description:
Dsniff fails to compile on Lion. I think the problem is somewhere in DB library
port install dsniff ---> Computing dependencies for dsniff ---> Building dsniff Error: org.macports.build for port dsniff returned: command execution failed Please see the log file for port dsniff for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsniff/dsniff/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port dsniff failed
When I run make manually, I get errors linked to the DB library:
/record.c:130:30: error: use of undeclared identifier 'R_NOOVERWRITE' if (db->put(db, key, &data, R_NOOVERWRITE) == 0) ^ ./record.c:143:13: error: no member named 'seq' in 'struct __db' while (db->seq(db, &key, &data, R_NEXT) == 0) { ~~ ^ ./record.c:143:34: error: use of undeclared identifier 'R_NEXT' while (db->seq(db, &key, &data, R_NEXT) == 0) {
and also some linked to NFS:
In file included from ./filesnarf.c:28: ./nfs_prot.h:6:2: error: unterminated conditional directive #ifndef _NFS_PROT_H_RPCGEN ^ ./filesnarf.c:38:12: error: use of undeclared identifier 'NFS3_FHSIZE' u_char fh[NFS3_FHSIZE];
New description: Dsniff fails to compile on Lion. I think the problem is somewhere in DB library {{{ port install dsniff ---> Computing dependencies for dsniff ---> Building dsniff Error: org.macports.build for port dsniff returned: command execution failed Please see the log file for port dsniff for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_dsniff/dsniff/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port dsniff failed }}} When I run make manually, I get errors linked to the DB library: {{{ /record.c:130:30: error: use of undeclared identifier 'R_NOOVERWRITE' if (db->put(db, key, &data, R_NOOVERWRITE) == 0) ^ ./record.c:143:13: error: no member named 'seq' in 'struct __db' while (db->seq(db, &key, &data, R_NEXT) == 0) { ~~ ^ ./record.c:143:34: error: use of undeclared identifier 'R_NEXT' while (db->seq(db, &key, &data, R_NEXT) == 0) { }}} and also some linked to NFS: {{{ In file included from ./filesnarf.c:28: ./nfs_prot.h:6:2: error: unterminated conditional directive #ifndef _NFS_PROT_H_RPCGEN ^ ./filesnarf.c:38:12: error: use of undeclared identifier 'NFS3_FHSIZE' u_char fh[NFS3_FHSIZE]; }}} -- Comment: The log is incomplete; please [http://guide.macports.org/chunked/project.html#project.tickets.prerequisites clean and try again]. I don't think anybody has been able to build dsniff for years; see #23971, though your errors look different. Try dsniff-devel instead. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Dsniff doesn't like clang. Fixed in r104860. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Replying to [comment:1 ryandesign@…]:
I don't think anybody has been able to build dsniff for years; see #23971, though your errors look different.
I was able to build dsniff successfully just now. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by egall@…): Replying to [comment:2 ciserlohn@…]:
Dsniff doesn't like clang. Fixed in r104860.
If it doesn't like clang, shouldn't the blacklist be for ''all'' `clang`s? -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by michael.komm@…): I have reinstalled libnids with libnet11 and tried to install dsniff-devel but the errors look quite the same -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by michael.komm@…): I believe that dsniff is missing some header files from DB, although I have installed db53 package. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Replying to [comment:5 michael.komm@…]:
I have reinstalled libnids with libnet11 and tried to install dsniff- devel but the errors look quite the same
Please do a: {{{ $ sudo port selfupdate }}} and try installing dsniff again. It should be fixed now. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:7> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by michael.komm@…): I did selfupdate and upgrade outdated but I am still getting the same errors -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Replying to [comment:4 egall@…]:
Replying to [comment:2 ciserlohn@…]:
Dsniff doesn't like clang. Fixed in r104860.
If it doesn't like clang, shouldn't the blacklist be for ''all'' `clang`s?
Yep, done in r104862. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:9> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Replying to [comment:5 michael.komm@…]:
I have reinstalled libnids with libnet11 and tried to install dsniff- devel but the errors look quite the same
dsniff-devel doesn't like clang, too. Fixed in r104862. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:10> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): Replying to [comment:8 michael.komm@…]:
I did selfupdate and upgrade outdated but I am still getting the same errors
I blacklisted all clang versions for dsniff and dsniff-devel in r104862. Both work on my 10.7 machine now (I was able to reproduce the error you reported before). Please wait a little while, do a selfupdate and try installing dsniff or dsniff-devel again. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:11> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by michael.komm@…): I did the selfupdate again and now it builds all right. thanks a lot! -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:12> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------- Comment (by ciserlohn@…): dsniff-devel is now available as a binary package for 10.7. Provided you are using a standard MacPorts installation, you should be able to get a precompiled dsniff-devel: {{{ $ sudo port selfupdate $ sudo port clean dsniff-devel $ sudo port -b install dsniff-devel }}} -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:13> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+-------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: dsniff | -----------------------------+-------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => fixed -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:14> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+---------------------- Reporter: michael.komm@… | Owner: cal@… Type: defect | Status: reopened Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+---------------------- Changes (by cal@…): * status: closed => reopened * resolution: fixed => -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:15> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------------- Reporter: michael.komm@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------------- Changes (by cal@…): * cc: cal@… (added) * owner: cal@… => ciserlohn@… * status: reopened => new Comment: Your statement in comment:10 is incorrect. `dsniff-devel` builds fine with clang for me. Please revert the change and find out why it doesn't work with your clang version, and if necessary blacklist a specific clang version. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:16> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------------- Reporter: michael.komm@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------------- Comment (by cal@…): And the same goes for `dsniff`, it also works fine with my clang. Please also revert this change as falling back to llvm-gcc-4.2 should not be a long term solution considering it will go away in the next Xcode release. You can blacklist specific clang versions if necessary. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:17> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------------- Reporter: michael.komm@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: dsniff | -----------------------------+------------------------- Comment (by ciserlohn@…): Replying to [comment:16 cal@…]:
Your statement in comment:10 is incorrect. `dsniff-devel` builds fine with clang for me. Please revert the change and find out why it doesn't work with your clang version, and if necessary blacklist a specific clang version.
You're right. I thought clang was causing the build failure when i saw the following line in the dsniff / dsniff-devel log file: {{{ clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} But the build fails randomly regardless of using clang or not. There seems to be a timing problem. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#38665: Dsniff fails to build on 10.7 -----------------------------+------------------------- Reporter: michael.komm@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: dsniff | -----------------------------+------------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => fixed Comment: Revert r104862 and disable parallel build in r104870. -- Ticket URL: <https://trac.macports.org/ticket/38665#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts