[Dock-fans] Compile accessories...

Scott Brozell sbrozell at rci.rutgers.edu
Wed Sep 30 14:06:48 PDT 2009


On Tue, Sep 22, 2009 at 04:32:51PM -0400, Yasser Almeida Hernández wrote:
> I'm trying to compile Dock 4.0.1 in a 64 bit machine with Ubuntu 9.04.  
> I use gfortran as Fortran compiler instead pgf77, because this last is  
> not free. In the compilation of accessories programs, using gfortran  
> (and also i tried with g95), y get this error:
> 
> gfortran   -c -o addprh.o addprh.f
> addprh.f:53.11:
> 
>       1    (chr.ne.'A')) goto 5
>             1
> Error: Operands of comparison operator '.ne.' at (1) are REAL(4)/CHARACTER(1)
> addprh.f:54.30:
> 
>        amber=((chr.eq.'a').or.(chr.eq.'A'))
>                                1
> Error: Operands of comparison operator '.eq.' at (1) are REAL(4)/CHARACTER(1)
> addprh.f:58.11:
> 
>       1    (chr.ne.'N')) goto 7
>             1
> Error: Operands of comparison operator '.ne.' at (1) are REAL(4)/CHARACTER(1)
> addprh.f:59.30:
> 
>        chged=((chr.eq.'y').or.(chr.eq.'Y'))
>                                1
> Error: Operands of comparison operator '.eq.' at (1) are REAL(4)/CHARACTER(1)
> make: *** [addprh.o] Error 1
> 
> Where is the problem? Is the compiler?
> I used the accessories of Dock 6.0 (sphgen, showspheres, showbox) but  
> i need the get_near_res, wich is absent in Dock 6.0.
> Wich program i can use for substitute get_near_res?

These errors are due to an incorrect implicit declaration for chr.
Note that there is no implicit statement in that file.
Eons ago fortran may have had an implicit implicit declaration, probably
implicit real(a-h,o-z).
While a fossil record exists, an investigation would be a sidebar.
:_)
http://en.wikipedia.org/wiki/Geologic_time_scale

Insert a declaration:
character chr

Good luck:
http://blur.compbio.ucsf.edu/pipermail/dock-fans/2009-September/002251.html

Scott



More information about the Dock-fans mailing list