From: Axel Kohlmeyer (akohlmey_at_vitae.cmm.upenn.edu)
Date: Tue Nov 08 2005 - 07:01:51 CST

On Tue, 8 Nov 2005, Bram Stolk wrote:

BS> Hi there,

hi,

BS> -L../lib/cave/lib_IRIX6 -L../lib/tcl/lib_IRIX6 -L../lib/tk/lib_IRIX6
BS> -L../plugins/IRIX6/molfile -L../lib/fltk/IRIX6 -lGL -lGLU -lcave_ogl -lXi -lGL
BS> -lpthread -ltk8.4 -lX11 -ltcl8.4 -lmolfile_plugin -lfltk -lX11 -lm -lGL -n32
BS> -mips3 -O3 ;
BS> Linking vmd_IRIX6 ...
BS> ld32: ERROR 33 : Unresolved text symbol "Tcl_PkgRequire" -- 1st referenced by
BS> ../plugins/IRIX6/molfile/libmolfile_plugin.a(webpdbplugin-s.o).
BS> Use linker option -v to see when and which objects, archives and dsos
BS> are loaded.

i have not compiled anything on irix in a long time, but try putting
-ltcl8.4 _after_ -lmolfile_plugin. for some linkers order matters.
sometimes, in case of circular dependencies, you even have to specify
all libraries twice.

good luck,
     axel.

BS> ld32: ERROR 33 : Unresolved text symbol "Tcl_GetVar2" -- 1st referenced by
BS> ../plugins/IRIX6/molfile/libmolfile_plugin.a(webpdbplugin-s.o).
BS> Use linker option -v to see when and which objects, archives and dsos
BS> are loaded.
BS> ld32: INFO 152: Output file removed because of error.
BS> gmake: *** [vmd_IRIX6] Error 2
BS>
BS> bram_at_vger:~/src/vmd/vmd/src$ nm -gC /usr/lib32/libtcl8.4.so | grep PkgRequire
BS> [794] | 87365200| 52|FUNC |GLOB |DEFAULT |MIPS_TEXT|Tcl_PkgRequire
BS> [795] | 87365264| 1096|FUNC |GLOB |DEFAULT |MIPS_TEXT|Tcl_PkgRequireEx
BS>
BS>
BS>

-- 
=======================================================================
Axel Kohlmeyer  e-mail: akohlmey_at_cmm.upenn.edu, web: www.cmm.upenn.edu
   Center for Molecular Modeling   --   University of Pennsylvania
Department of Chemistry, 231 S.34th Street, Philadelphia, PA 19104-6323
tel: 1-215-898-1582,  fax: 1-215-573-6233,  office-tel: 1-215-898-5425
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.