Opened 8 years ago
Closed 7 years ago
#52842 closed defect (fixed)
tcptrace install issue
Reported by: | schnide (Joe Schnide) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | snappy-pickle, axxelk (axel), basmac | |
Port: | tcptrace |
Description
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
Attachments (3)
Change History (11)
Changed 8 years ago by schnide (Joe Schnide)
Attachment: | macports-tcptrace.txt added |
---|
comment:1 Changed 8 years ago by snappy-pickle
Cc: | snappy-pickle added |
---|
Changed 8 years ago by snappy-pickle
Attachment: | macports-tcptrace-fetch-no-compile.txt added |
---|
comment:2 Changed 8 years ago 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.
comment:3 Changed 8 years ago by axxelk (axel)
Cc: | axxelk added |
---|
comment:4 Changed 8 years ago by axxelk (axel)
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 */
comment:5 Changed 8 years ago by basmac
Cc: | basmac added |
---|
comment:6 Changed 8 years ago 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"
Changed 8 years ago by alangebner
Attachment: | fix-tcptrace-52842.diff added |
---|
FIX to Portfile by applying community patch 6.6.7-3
comment:7 Changed 8 years ago by mf2k (Frank Schima)
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
comment:8 Changed 7 years ago by mf2k (Frank Schima)
Resolution: | → fixed |
---|---|
Status: | new → closed |
log file