From: John Stone (johns_at_ks.uiuc.edu)
Date: Tue Mar 31 2009 - 14:26:31 CDT

Vlad,
  It appears that your CVS tree for VMD itself is somewhat out of
date. You'll need to do a "cvs update -PAd" to make sure you're not
missing various new source files etc, and you'll also need to re-run
the 'configure' script since new source files were added. Let me know
if you need more help with this. I think this is just a symptom of having
some of your VMD build areas out of date. You'll want to make sure to do
a "make veryclean" before re-running make following the ./configure command.

Cheers,
  John

On Tue, Mar 31, 2009 at 09:22:15PM +0200, Cojocaru,Vlad wrote:
> Dear John, vmd developers
>
> Another problem I couldn't figure out. When compiling VMD, I get the undefined reference errors below
>
> I modified the configure file as such to modify the path to CUDA (I have it in /usr/local/cuda) ...
> See the configure file attached
>
> I installed CUDA 2.1 strictly following the instructions on the NVIDIA website. All the tests from the NVIDIA website past correctly
>
> cheers
> vlad
>
> ...CUDAAccel.o: In function `CUDAAccel::devpool_wait()':
> CUDAAccel.C:(.text+0x55a): undefined reference to `vmd_cuda_devpool_wait'
> CUDAAccel.o: In function `CUDAAccel::devpool_launch(void* (*)(void*), void*, int)':
> CUDAAccel.C:(.text+0x57a): undefined reference to `vmd_cuda_devpool_launch'
> VolMapCreate.o: In function `VolMapCreateCoulombPotential::compute_frame(int, float*)':
> VolMapCreate.C:(.text+0x1ccd): undefined reference to `Msmpot_create'
> VolMapCreate.C:(.text+0x1d1a): undefined reference to `Msmpot_compute'
> VolMapCreate.C:(.text+0x1d28): undefined reference to `Msmpot_destroy'
> VolMapCreate.C:(.text+0x1d59): undefined reference to `Msmpot_error_string'
> VolMapCreateILS.o: In function `VolMapCreateILS::compute_frame(int, float*)':
> VolMapCreateILS.C:(.text+0x5266): undefined reference to `vmd_cuda_evaluate_occupancy_map(int, int, int, float*, float, float, float, float, float, float, float, float, float, float, float, int, int, int, float const*, float const*, int, char const*, int, float const*, int, float const*, int, float const*, int, float const*)'
> CUDAUtil.o: In function `vmd_cuda_devpool_setdevice':
> tmpxft_00005f8d_00000000-11_CUDAUtil.i:(.text+0x123): undefined reference to `vmd_cuda_devpool_slave_getid'
> tmpxft_00005f8d_00000000-11_CUDAUtil.i:(.text+0x130): undefined reference to `vmd_cuda_devpool_slave_getdata'
> tmpxft_00005f8d_00000000-11_CUDAUtil.i:(.text+0x13d): undefined reference to `vmd_cuda_devpool_slave_getdevid'
> collect2: ld returned 1 exit status
> make: *** [vmd_LINUXAMD64] Error 1
>

-- 
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