[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] JNI and NS
I'm still having problems. Using the standard build, with no modifications,
everything compiles, links and runs fine. In /usr/local/lib/tcl8.0 there is
init.tcl.
However if I put in an extra link to libjava.so in the Makefile, it comes up
with the error that I mentioned before. init.tcl is still in
/usr/local/lib/tcl8.0.
From Makefile:
LIB = \
-L/usr/local/jdk1.1.8/lib/i386/green_threads -ljava
-L/ns/ns-allinon
e-2.1b6/tclcl-1.0b9 -ltclcl -L/usr/local/lib -lotcl
-L/ns/ns-allinone-2.1b6/tk8.
0.4/unix -ltk80 -L/ns/ns-allinone-2.1b6/tcl8.0.4/unix -ltcl80 \
-L/usr/X11R6/lib -lXext -lX11 \
\
-lm
# -L${exec_prefix}/lib \
(The extra library is on the first line, although I have tried it as the
last library as well with the same results)
Could this be anything to do with linking ? As far as I know, only if the
library is called should any linking be done anyhow (I don't put in any
extra code). So I'm at a bit of a loss.
Mark
>From: Lloyd Wood <[email protected]>
>Reply-To: [email protected]
>To: Mark Butler <[email protected]>
>CC: [email protected]
>Subject: Re: [ns] JNI and NS
>Date: Thu, 17 Aug 2000 16:01:03 +0100 (BST)
>
>On Thu, 17 Aug 2000, Mark Butler wrote:
>
> > application-specific initialization failed: Can't find a usable init.tcl
>in
> > the following directories:
> > /usr/local/lib/tcl8.0 /ns/ns-allinone-2.1b6/lib/tcl8.0
>/ns/lib/tcl8.0
> > /ns/ns-allinone-2.1b6/library /ns/library /ns/tcl8.0/library
>/tcl8.0/library
> >
> > /usr/local/lib/tcl8.0/init.tcl: couldn't read file
> > "/usr/local/lib/tcl8.0/init.tcl": bad file number
>
>[..]
>
> > This probably means that Tcl wasn't installed properly.
>
>We've run into that a _lot_ here; pretty much every install of the
>standard ns. As you can see, the guesses involve almost every
>directory around the directory where init.tcl is living, but not that
>directory.
>
>After many tedious recompiles of everything that didn't fix it and a
>lot of swearing, we just put a symlink to the actual init.tcl in one
>of the directories ns looks in. Voila, problem vanishes.
>
>this should probably be listed as a FAQ, although I think it would be
>nice to take care of it properly in the configure processes.
>
>L.
>
><[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
>
>
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com