[MacPorts] #52842: tcptrace install issue

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #52842: tcptrace install issue

MacPorts
#52842: tcptrace install issue
---------------------+--------------------------------
 Reporter:  schnide  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  ports    |    Version:  2.3.4
 Keywords:           |       Port:  tcptrace
---------------------+--------------------------------
 mac os sierra 10.12
 macports version: 2.3.99

 {{{
 root# port clean --all tcptrace
 --->  Cleaning tcptrace
 schnide3:~ root# port install tcptrace
 --->  Computing dependencies for tcptrace
 --->  Fetching archive for tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 https://packages.macports.org/tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 http://sea.us.packages.macports.org/macports/packages/tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/tcptrace
 --->  Fetching distfiles for tcptrace
 --->  Attempting to fetch tcptrace-6.6.7.tar.gz from
 https://distfiles.macports.org/tcptrace
 --->  Verifying checksums for tcptrace
 --->  Extracting tcptrace
 --->  Configuring tcptrace
 --->  Building tcptrace
 Error: Failed to build tcptrace: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_tcptrace/tcptrace/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 Error: Processing of port tcptrace failed

 }}}

--
Ticket URL: <https://trac.macports.org/ticket/52842>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------
Changes (by schnide):

 * Attachment "macports-tcptrace.txt" added.

 log file

--
Ticket URL: <https://trac.macports.org/ticket/52842>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------
Changes (by snappy-pickle):

 * Attachment "macports-tcptrace-fetch-no-compile.txt" added.


--
Ticket URL: <https://trac.macports.org/ticket/52842>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------

Comment (by snappy-pickle):

 Will fetch (from Japan) but fails to compile. The attached "macports-
 tcptrace-fetch-no-compile.txt" is the trace from the terminal. macOS
 Sierra 10.2.3 16D32.

--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------

Comment (by axxelk):

 check out this link https://bugs.debian.org/cgi-
 bin/bugreport.cgi?bug=545595 for a solution.

 With these two changes I was able to compile it: (sudo port build
 tcptrace)
 --- tcptrace-6.6.7.orig/tcpdump.c
 +++ tcptrace-6.6.7/tcpdump.c
 @@ -67,10 +67,6 @@



 -
 -/* external ref, in case missing in older version */
 -extern int pcap_offline_read(void *, int, pcap_handler, u_char *);
 -
  /* global pointer, the pcap info header */
  static pcap_t *pcap;

 @@ -248,7 +244,7 @@
      int ret;

      while (1) {
 -       if ((ret = pcap_offline_read(pcap,1,(pcap_handler)callback,0)) !=
 1) {
 +       if ((ret = pcap_dispatch(pcap,1,(pcap_handler)callback,0)) != 1) {
             /* prob EOF */

--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------

Comment (by alangebner):

 As axxelk outlines this is a known problem.
 It is actually addressed by community patch tcptrace_6.6.7-3.diff.gz

 I'm attaching a patch to the Portfile that applies this patch from debian
 ca (see attachment fix-tcptrace-52842.diff).

 diff -u
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/tcptrace/Portfile
 ./Portfile
 ---
 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/tcptrace/Portfile
 2017-01-02 01:55:19.000000000 +0100
 +++ ./Portfile  2017-04-21 13:45:13.000000000 +0200
 @@ -23,11 +23,19 @@
  homepage            http://tcptrace.org
  master_sites        http://tcptrace.org/download.html

 -checksums           rmd160  1dd0f373f766322343ffad59d0655eba4c6682e0 \
 -                    sha256
 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd
 +checksums           tcptrace-6.6.7.tar.gz \
 +                        rmd160  1dd0f373f766322343ffad59d0655eba4c6682e0
 \
 +                        sha256
 63380a4051933ca08979476a9dfc6f959308bc9f60d45255202e388eb56910bd \
 +                    tcptrace_6.6.7-3.diff.gz \
 +                        rmd160  bde0be924b6789189a4a14c6c5adb5b5a7041054
 \
 +                        sha256
 9a5212155f5cd4bc9bfefaa73da8d3b4084a96865bcc1e96232a1e1b265bb54a

  depends_lib         lib:libpcap:libpcap

 +patch_sites         ftp://ftp.ca.debian.org/debian-
 archive/debian/pool/main/t/tcptrace/
 +patchfiles          tcptrace_6.6.7-3.diff.gz
 +patch.pre_args      -p1
 +
  post-configure {
      set path "${worksrcpath}"
      reinplace "s|PCAP_INCS    = -I/usr/local/include -I. -I../pcap
 -I/usr/include/pcap|PCAP_INCS    = -I${prefix}/include|"
 "${path}/Makefile"

--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------
Changes (by alangebner):

 * Attachment "fix-tcptrace-52842.diff" added.

 FIX to Portfile by applying community patch 6.6.7-3

--
Ticket URL: <https://trac.macports.org/ticket/52842>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:            |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------

Comment (by mf2k):

 This patch is not working for me.

 {{{
 $ sudo port install tcptrace
 Portfile changed since last build; discarding previous state.
 --->  Computing dependencies for tcptrace
 --->  Fetching archive for tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 https://packages.macports.org/tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 http://sea.us.packages.macports.org/macports/packages/tcptrace
 --->  Attempting to fetch tcptrace-6.6.7_1.darwin_16.x86_64.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/tcptrace
 --->  Fetching distfiles for tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 https://distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://sea.us.distfiles.macports.org/macports/distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 ftp://ftp.ca.debian.org/debian-archive/debian/pool/main/t/tcptrace/
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://lil.fr.distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://kmq.jp.distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://osl.no.distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://nue.de.distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://nou.nc.distfiles.macports.org/pub/macports/distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://aarnet.au.distfiles.macports.org/pub/macports/distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 https://pek.cn.distfiles.macports.org/macports/distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://jog.id.distfiles.macports.org/macports/distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://jnb.za.distfiles.macports.org/distfiles/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://cjj.kr.distfiles.macports.org/tcptrace
 --->  Attempting to fetch tcptrace_6.6.7-3.diff.gz from
 http://her.gr.distfiles.macports.org/tcptrace
 Error: Failed to fetch tcptrace: The requested URL returned error: 404 Not
 Found
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #52842: tcptrace install issue

MacPorts
In reply to this post by MacPorts
#52842: tcptrace install issue
-----------------------+--------------------------------
  Reporter:  schnide   |      Owner:  macports-tickets@…
      Type:  defect    |     Status:  closed
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.3.4
Resolution:  fixed     |   Keywords:
      Port:  tcptrace  |
-----------------------+--------------------------------
Changes (by mf2k):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"4872a4acf46743ea72073bf4fc038847e762740a/macports-ports"
 4872a4acf46743ea72073bf4fc038847e762740a/macports-ports]:
 {{{
 #!ConfigurableCommitTicketReference repository="macports-ports"
 revision="4872a4acf46743ea72073bf4fc038847e762740a"
 tcptrace:
  - Build fix using community patch 6.6.7-3

 Closes: https://trac.macports.org/ticket/52842
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/52842#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS