You do need to link with those libraries. libnsthread and libnsd are necessary for linking nsjk2 and the javatclbridge because they use AOLserver calls which are defined in those libraries.
The compile expects to find them in $aolserver.home/lib directory which is reflected in your compile line as: -L/winchester/bwd_home/pl5813/cvs_sandboxes/nsoracle/bwd/src/aolserver-4.0.7/lib (comes from the definition for aolserver in build.properties) Are the libnsd.so and libnsthread.so files in that directory? -Elizabeth David Mott wrote on 8/2/04, 4:52 PM: > To all, > > I am having a compiler issue. I am getting an error message > (see below) stating it cannot find "-lnsthread". When i > remove this option from the javatcl.xml file, it then says > it cannot find "-lnsd". When i remove these options the > rest compiles fine...however nsjk2 isnt fully integrated > with tomcat/aolserver because the options are missing. > > 1. What are the options "-lnsthread" and "-lnsd" used for? > 2. Assuming this is a compiler issue, what is the earliest > standard version of gcc I should be using to compile nsjk2? > I am using gcc version 3.0.4...... > > Any feedback would be greatly appreciated. > > thanks > > David Mott > x4542 > > > > [so] Command:/bwd/java/apr/build/libtool --mode=link > gcc -module -avoid-version -rpath > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG -o > libjavatclbridge.la > -L/winchester/bwd_home/pl5813/cvs_sandboxes/nsoracle/bwd/src/aolserver-4.0.7/lib > > -lnsthread -lnsd > -L/winchester/bwd_home/pl5813/cvs_sandboxes/nsoracle/bwd/src/tcl8.4.5/lib > -ltcl8.4 -lpthread > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/nsadp.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/nslog.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/nstcl.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/nstclcommand.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/tclinterp.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/tclscript.lo > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/util.lo > > [so] Output: > [so] gcc -shared > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/nsadp.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/nslog.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/nstcl.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/nstclcommand.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/tclinterp.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/tclscript.o > > > /winchester/bwd/java/nsjk2_v3/build/SunOS_5.8_DBG/util/native2/javatcl/.libs/util.o > > > -L/winchester/bwd_home/pl5813/cvs_sandboxes/nsoracle/bwd/src/aolserver-4.0.7/lib > > -lnsthread -lnsd > -L/winchester/bwd_home/pl5813/cvs_sandboxes/nsoracle/bwd/src/tcl8.4.5/lib > -ltcl8.4 -lpthread -lc -Wl,-soname -Wl,libjavatclbridge.so > -o .libs/libjavatclbridge.so > [so] StdErr: > [so] > /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.4/../../../../sparc-sun-solaris2.8/bin/ld: > > cannot find -lnsthread > [so] collect2: ld returned 1 exit status > > BUILD FAILED > /winchester/bwd/java/nsjk2_v3/build.xml:172: Following error > occured while executing this line > /winchester/bwd/java/nsjk2_v3/ant/javatcl/javatcl.xml:48: > Link failed libjavatclbridge > > Total time: 1 minute 9 seconds > > > -- > AOLserver - http://www.aolserver.com/ > > To Remove yourself from this list, simply send an email to > <[EMAIL PROTECTED]> with the > body of "SIGNOFF AOLSERVER" in the email message. You can leave the > Subject: field of your email blank. -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.
