From: John Stone (johns_at_ks.uiuc.edu)
Date: Wed Dec 07 2005 - 10:47:51 CST

Hi,
  In the compile line you listed below, I don't see any -ltcl or -ltk linker
options, which is likely the direct cause of your problem. You must link VMD
(and the plugins!) against Tcl/Tk in order for things to work correctly.
You'll have to set the Tcl/Tk include and link paths correctly in the
configure script and when building the plugins, but the rest should take
care of itself if you've done that correctly.

  John Stone
  vmd_at_ks.uiuc.edu

On Tue, Dec 06, 2005 at 06:55:11PM -0800, Do_Ba Duc wrote:
> Dear Mr. Stone!
> I'm trying to study VMD from your source code given, but I've met some problems. Could you please help me?
> I've finished compiling everything into objects (I've got *.o and *-s.o files), but in Linking process, it fails. This is error status:
>
> (The string "...." stands for a lot of *.o files)
> ================================================
> ......vmdsock.o vmddlopen.o pcre.o fitrms.o -L../plugins/LINUX/molfile -lmolfile_plugin -lm -ldl -Xlinker -export-dynamic ;
> Linking vmd_LINUX ...
> ln: `./foobar': File exists
> Stride.o: In function `ss_from_stride(DrawMolecule*)':
> Stride.C:(.text+0x3f): warning: the use of `tempnam' is dangerous, better use `mkstemp'
> ../plugins/LINUX/molfile/libmolfile_plugin.a(webpdbplugin-s.o): In function `open_file_read':
> webpdbplugin.c:(.text+0x1d0): undefined reference to `Tcl_CreateInterp'
> webpdbplugin.c:(.text+0x1ed): undefined reference to `Tcl_Init'
> webpdbplugin.c:(.text+0x210): undefined reference to `Tcl_PkgRequire'
> webpdbplugin.c:(.text+0x275): undefined reference to `Tcl__Eval'
> webpdbplugin.c:(.text+0x2a8): undefined reference to `Tcl__Eval'
> webpdbplugin.c:(.text+0x2c0): undefined reference to `Tcl_GetVar2'
> webpdbplugin.c:(.text+0x2e7): undefined reference to `Tcl_DeleteInterp'
> webpdbplugin.c:(.text+0x5df): undefined reference to `Tcl_DeleteInterp'
> collect2: ld returned 1 exit status
> make: *** [vmd_LINUX] Error 1
> ================================================
>
> I can't understand these, because I've already install tcl/tk8.4, even uninstalled and reinstalled them some times to resolve the problems. But I was unsuccessfull.
>
> I wish that you could help me as soon as possible.
> Thank you anyway!
>
>
>
>
>
>
> =================================
> +From: Do Ba Duc
> ------ Class K48CA - College of Technology (COT)
> ------ Ha Noi national university
> ------ 144 Xuan Thuy - Cau Giay - Ha Noi - Viet Nam
> +Email: hideflame2003_at_yahoo.com
> +Mobile: (+84)0989558517
>
> ---------------------------------
> Yahoo! Personals
> Single? There's someone we'd like you to meet.
> Lots of someones, actually. Try Yahoo! Personals

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078