dear all

I have been trying to compile xplor on 

Ubuntu
Release:        12.04
Codename:       precise

I have tried 2.31.0 and failed with

./libxplor.so: undefined reference to `zfft3di_'
/home/garyt/programs/xplor-nih/2.31.0/bin.Linux_i686//libpy.so: undefined 
reference to `std::ios_base::ios_base()@GLIBCXX_3.4'
/home/garyt/programs/xplor-nih/2.31.0/bin.Linux_i686//libpy.so: undefined 
reference to `__cxa_guard_release@CXXABI_1.3'
/home/garyt/programs/xplor-nih/2.31.0/bin.Linux_i686//libpy.so: undefined 
reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
/home/garyt/programs/xplor-nih/2.31.0/bin.Linux_i686//libpy.so: undefined 
reference to `operator new[](unsigned int)@GLIBCXX_3.4'
/home/garyt/programs/xplor-nih/2.31.0/bin.Linux_i686//libpy.so: undefined 
reference to `vtable for std::basic_ifstream<char, std::char_traits<char> 
>@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make[2]: *** [xplor] Error 1
make[2]: Leaving directory 
`/home/garyt/programs/xplor-nih/2.31.0/source/bin.Linux_i686'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/garyt/programs/xplor-nih/2.31.0/source'
make: *** [xplor] Error 2


i have also tried 2.35.0 and get

./libxplor.so: undefined reference to `ribesl_'
./libxplor.so: undefined reference to `zfft3d_'
./libxplor.so: undefined reference to `internal_dynamics_'
./libxplor.so: undefined reference to `zfft3di_'

now strangely if i type 

nm -D /home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/libxplor.so | grep 
ribesl_ i get

         U ribesl_

now if I type nm -D 
/home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/libspecfun.so | grep 
ribesl_ i get
000018a0 T ribesl_

so this indicates libspecfun exports ribesl_

now the final link command is 

cc -o xplor xplor.o -L. -lxplorCmd -lxplor 
-L/home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/ -lfft -lintVar -lvmd 
-lpy -lswigpy-xplor -ltclXplor -lswigtcl8-xplor -lnmrPot -lcommon -lmarvin 
-lpthread -lgfortran -L/home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/ 
-llapack -L/home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/ -lblas 
-L/home/garyt/programs/xplor-nih/2.35.0/bin.Linux_i686/

now it seems that I can add -lspecfun anywhere on this command line (before or 
after -lxplor) and and it still doesn't work (I am aware that order matters 
here, linkage requirements must be declared before they are satisfied...)

not i am using 

cc --version                                                                    
               
cc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

gcc --version                                                                   
              
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3

gfortran --version
GNU Fortran (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3


any help deeply appreciated as usual..

regards
gary
_______________________________________________
Xplor-nih mailing list
Xplor-nih@cake.cit.nih.gov
http://cake.cit.nih.gov/mailman/listinfo/xplor-nih

Reply via email to