Date: Wed, 26 Mar 2003 16:58:56 -0500 (EST) From: David Magda <dmagda+fbugs@magda.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/50324: net/ns fails to build Message-ID: <200303262158.h2QLwugb017235@number6.magda.ca>
next in thread | raw e-mail | index | archive | help
>Number: 50324 >Category: ports >Synopsis: net/ns fails to build >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: Wed Mar 26 14:00:21 PST 2003 >Closed-Date: >Last-Modified: >Originator: David Magda >Release: FreeBSD 4.8-PRERELEASE i386 >Organization: We're orgaznized? >Environment: System: FreeBSD number6.magda.ca 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #1: Fri Feb 21 18:37:45 EST 2003 dave@number6.magda.ca:/usr/obj/usr/src/sys/MYKERNELE i386 >Description: The net/ns port fails to build/compile. >How-To-Repeat: cd /usr/ports/net/ns make build >Fix: The first compile time error is: [...] tools/queue-monitor.cc: In method `void QueueMonitor::printStats()': tools/queue-monitor.cc:129: syntax error before string constant *** Error code 1 Stop in /usr/ports/net/ns/work/ns-2.1b9. *** Error code 1 To fix this, change line 129 of tools/queue-monitor.cc from: sprintf(wrk, "q -t "TIME_FORMAT" -s %d -d %d -l %d -p %d", now, srcId_, dstId_, size_, pkts_); [all one line] to sprintf(wrk, "q -t \"TIME_FORMAT\" -s %d -d %d -l %d -p %d", now, srcId_, dstId_, size_, pkts_); [all one line] The issue (I believe) is that the quotation marks around TIME_FORMAT to be escaped. The compiling can then continue. The second error is: [...] queue/red.cc: In method `void REDQueue::enque(Packet *)': queue/red.cc:656: `Trace' undeclared (first use this function) queue/red.cc:656: (Each undeclared identifier is reported only once queue/red.cc:656: for each function it appears in.) queue/red.cc:656: syntax error before `)' queue/red.cc:684: confused by earlier errors, bailing out *** Error code 1 Stop in /usr/ports/net/ns/work/ns-2.1b9. *** Error code 1 Stop in /usr/ports/net/ns. I do not know how to solve this problem. The code of around line 656 is: // this packet will not be traced as a special case. if (EDTrace != NULL) Line 656 ----> ((Trace *)EDTrace)->recvOnly(pkt); reportDrop(pkt); de_drop_->recv(pkt); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303262158.h2QLwugb017235>