ports/56620: tcptraceroute.c compile fails with: missing terminating " character
nospam at freebsd2.localnet10
nospam at freebsd2.localnet10
Tue Sep 9 04:20:14 UTC 2003
>Number: 56620
>Category: ports
>Synopsis: tcptraceroute.c compile fails with: missing terminating " character
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 08 21:20:12 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: none
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
>Description:
tcptraceroute.c:394:11: missing terminating " character
tcptraceroute.c: In function `usage':
tcptraceroute.c:395: error: `l' undeclared (first use in this function)
tcptraceroute.c:395: error: (Each undeclared identifier is reported only once
tcptraceroute.c:395: error: for each function it appears in.)
tcptraceroute.c:395: error: `packet' undeclared (first use in this function)
tcptraceroute.c:395: error: syntax error before "length"
tcptraceroute.c:397: error: stray '\' in program
tcptraceroute.c:397: error: stray '\' in program
tcptraceroute.c:397:70: missing terminating " character
tcptraceroute.c:1185:41: missing terminating " character
tcptraceroute.c: In function `initcapture':
tcptraceroute.c:1186: error: `tcp' undeclared (first use in this function)
tcptraceroute.c:1186: error: syntax error before "and"
tcptraceroute.c:1187:69: missing terminating " character
*** Error code 1
Stop in /usr/ports/net/tcptraceroute/work/tcptraceroute-1.4.
>How-To-Repeat:
>Fix:
*** tcptraceroute.c.orig Tue Jul 30 16:51:27 2002
--- tcptraceroute.c Mon Sep 8 02:42:30 2003
***************
*** 391,399 ****
void usage(void)
{
printf("\n%s\n%s\n", VERSION, BANNER);
! fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>]
! [-l <packet length>] [-q <number of queries>] [-t <tos>]
! [-m <max ttl>] [-pP] <source port>] [-s <source address>]
[-w <wait time>] <host> [destination port] [packet length]\n\n", name);
}
--- 391,399 ----
void usage(void)
{
printf("\n%s\n%s\n", VERSION, BANNER);
! fatal("Usage: %s [-nNFSAE] [-i <interface>] [-f <first ttl>] \
! [-l <packet length>] [-q <number of queries>] [-t <tos>] \
! [-m <max ttl>] [-pP] <source port>] [-s <source address>] \
[-w <wait time>] <host> [destination port] [packet length]\n\n", name);
}
***************
*** 1182,1189 ****
if (! (pcap = pcap_open_live(device, offset + SNAPLEN, 0, 10, errbuf)))
fatal("pcap_open_live failed: %s", errbuf);
! safe_snprintf(filter, TEXTSIZE, "
! (tcp and src host %s and src port %d and dst host %s)
or ((icmp[0] == 11 or icmp[0] == 3) and dst host %s)",
iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
--- 1182,1189 ----
if (! (pcap = pcap_open_live(device, offset + SNAPLEN, 0, 10, errbuf)))
fatal("pcap_open_live failed: %s", errbuf);
! safe_snprintf(filter, TEXTSIZE, " \
! (tcp and src host %s and src port %d and dst host %s) \
or ((icmp[0] == 11 or icmp[0] == 3) and dst host %s)",
iptos(dst_ip), dst_prt, iptos(src_ip), iptos(src_ip));
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list