Named common - tentative definition of size

David Bourne david@boomer.org
Sun May 18 05:42:00 GMT 2008


Hi

I've upgraded to a new computer, Intel Mac, and have reinstalled  
gfortran from the binaries at http://gcc.gnu.org/wiki/GFortranBinaries

I recompiled a larger program consisting of main plus multiple  
subroutines in different files. Each file is compiled to object files  
and linked to create the application. Previous compiles (with earlier  
compiler versions and PowerPC version) were error free but the most  
recent is giving link time errors.

ld warning: for symbol _string_ tentative definition of size 1136 from  
sub1.o is is smaller than the real definition of size 1127 from main.o

[Just noticed: 'is is' and the arithmetic is wrong??]

string is a named common containing four character variables, one an  
array. They are initialized in a common block.

I have been developing this program for some time. Are common blocks  
no longer recommended? Is this a bug? Character size declarations match.

Thanks, David

gfortran -v
Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: /tmp/gfortran-20080510/ibin/../gcc/configure -- 
prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/ 
tmp/gfortran-20080510/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.4.0 20080510 (experimental) [trunk revision 135154] (GCC)



More information about the Fortran mailing list