compiling NAMD on a redhat-pentium-dell workstation

From: paul.dalhaimer_at_yale.edu
Date: Tue May 03 2005 - 11:54:56 CDT

I'm following the directions in the notes.txt file for the compilation
of namd2 and I get the following errors when I try to build the source
code in the newly created Linux-i686-g++ directory:

obj/mainfunc.o(.text+0x60): In function `main':
: multiple definition of `main'
obj/main.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 57 to 794 in
obj/mainfunc.o
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclUnixPipe.o)(.text+0xe0): In
function `TclpCreateTempFile':
: the use of `tmpnam' is dangerous, better use `mkstemp'
/home/mpaul/NAMD_2.5_Source/charm/net-linux/bin/../lib/libck.a(init.o)(.text+0xec6):
In function `_initCharm(int, char**)':
: undefined reference to `CkRegisterMainModule'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclBinary.o)(.text+0xbe4): In
function `Tcl_BinaryObjCmd':
: undefined reference to `__ctype_b'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclBinary.o)(.text+0xc5d): In
function `Tcl_BinaryObjCmd':
: undefined reference to `__ctype_b'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclBinary.o)(.text+0x1617): In
function `GetFormatSpec':
: undefined reference to `__ctype_b'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclCmdAH.o)(.text+0x185): In
function `Tcl_CaseObjCmd':
: undefined reference to `__ctype_b'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclCmdAH.o)(.text+0x22f5): In
function `Tcl_FormatObjCmd':
: undefined reference to `__ctype_b'
/home/mpaul/tcl/linux/lib/libtcl8.3.a(tclCmdAH.o)(.text+0x23f8): more
undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status

It looks like the linker is messed up? Any thoughts?

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:40:43 CST