You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_dtcl@tcl.apache.org by Steve Szabo <st...@fundserv.com> on 2002/02/20 17:54:46 UTC

ld failes

celeborn [/home/celeborn/src/apache_1.3.23] $ echo $LD_LIBRARY_PATH
/app/tcl/lib:/usr/local/lib

celeborn [/home/celeborn/src/apache_1.3.23] $ ls /app/tcl/lib
libtcl8.3.so*     libtclx8.3.so*    libtkx8.3.a       tclConfig.sh
tk8.3/            tkxConfig.sh
libtclstub8.3.a   libtk8.3.so*      libtkx8.3.so*     tclX8.3/
tkConfig.sh
libtclx8.3.a      libtkstub8.3.a    tcl8.3/           tclxConfig.sh
tkX8.3/

celeborn [/home/celeborn/src/apache_1.3.23] $ echo $EXTRA_LIBS
-ltcl8.3 -lm

celeborn [/home/celeborn/src/apache_1.3.23] $ make -e
===> src
make[1]: Entering directory `/home/celeborn/src/apache_1.3.23'
make[2]: Entering directory `/home/celeborn/src/apache_1.3.23/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
gcc  -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
`../apaci`   -o gen_test_char gen_test_char.o -ltcl8.3 -lm -lsocket -lnsl
/usr/local/bin/ld: cannot find -ltcl8.3
collect2: ld returned 1 exit status
make[3]: *** [gen_test_char] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/celeborn/src/apache_1.3.23/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/celeborn/src/apache_1.3.23'
make: *** [build] Error 2
celeborn [/home/celeborn/src/apache_1.3.23] $ 


thanks
---------------------------------------------------------
---------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org


Re: ld failes

Posted by "David N. Welton" <da...@dedasys.com>.
Steve Szabo <st...@fundserv.com> writes:

> celeborn [/home/celeborn/src/apache_1.3.23] $ echo $LD_LIBRARY_PATH
> /app/tcl/lib:/usr/local/lib

This isn't enough - this is for programs that are being run, not
compiled.
 
> gcc  -DSOLARIS2=280 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> `../apaci`   -o gen_test_char gen_test_char.o -ltcl8.3 -lm -lsocket -lnsl
> /usr/local/bin/ld: cannot find -ltcl8.3

It's missing the -L/app/tcl/lib

What you want, I think is:

`LIBRARY_PATH'
     The value of `LIBRARY_PATH' is a colon-separated list of
     directories, much like `PATH'.  When configured as a native
     compiler, GCC tries the directories thus specified when searching
     for special linker files, if it can't find them using
     `GCC_EXEC_PREFIX'.  Linking using GCC also uses these directories
     when searching for ordinary libraries for the `-l' option (but
     directories specified with `-L' come first).

Try that!

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: mod_dtcl-unsubscribe@tcl.apache.org
For additional commands, e-mail: mod_dtcl-help@tcl.apache.org