[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 642] Re: problem while making cbqmon
Chen Yu Wang wrote:
> When I compiled cbqmonitor, I had some trouble. I execute configure
> on the
> altq2-2/latency-tool/cbq-tool/cbqmon, and I was given a Makefile. To make
> the Makefile,
> I got the error message:
> % make all
> gcc -o cbqmonitor tk_view.0 common.o remote.o display.o window.o viewer.o
> node_emu.o -L/usr/local/lib -lBLT24 -ltk82 -ltcl82 -L/usr/X11R6/lib -lX11 -l
> pcap -lm
> /usr/local/lib/libBLT24.so: undefined reference to 'TclParseQuotes'
> /usr/local/lib/libBLT24.so: undefined reference to 'TclParseNestedCmd'
> /usr/local/lib/libBLT24.so: undefined reference to 'panic'
> /usr/local/lib/libBLT24.so: undefined reference to 'TclParseBraces'
> /usr/local/lib/libBLT24.so: undefined reference to 'TclExpandParseValue'
> ***Error Code 1
Apparently, you are trying to link cbqmonitor with tcl82/tk82 but your
libBLT is built with tcl80/tk80.
> Before making cbqmonitor, I already installed TTT(v1.1) and tcl
> tk 8.0.5/8.2.2, and BLT-2.4h. There is a executable program 'cbqmon.tcl' on
> altq2-2/latency-tool/cbq-tool/cbqmon, and I try to run it. It seemed to be
> still, and if
> I push the 'quit' button, a Error window will popup: Error:invaild command
> In according to the document TIPS.txt, "it is easier to first
> install TTT from the
> FreeBSD ports collection, which installs the required software for
> cbqmonitor." Since
> I can run TTT on my machine, why can't I compile the cbqmonitor? Do I miss
> something important?
Since you have a newer version of Tck/Tk than the ones used to build
libBLT. (BLT4.2h doesn't recognize 8.2 of Tck/Tk.)
A simple solution is to deinstall tcl82/tk82, or manually edit
cbqmonitor/Makefile to use tcl80/tk80.