[gmx-users] Gridcount

Kamil Tamiola kamilt at ibmb.uni.wroc.pl
Sat Apr 17 22:50:01 CEST 2004


Hi,

I've got problems with gridcount  compilation.(software contributet by  
Olivier Backstein ) I've used the typical standalone approach, described 
in INSTALL file, but compilation failed. I was given these messages:

g_ri3Dc.c:269: warning: (near initialization for `fnm[1]')
g_ri3Dc.c:269: warning: excess elements in scalar initializer
g_ri3Dc.c:269: warning: (near initialization for `fnm[1]')
g_ri3Dc.c:269: error: `ffREAD' undeclared here (not in a function)
g_ri3Dc.c:269: warning: excess elements in scalar initializer
g_ri3Dc.c:269: warning: (near initialization for `fnm[1]')
g_ri3Dc.c:269: error: initializer element is not constant
g_ri3Dc.c:269: error: (near initialization for `fnm[1]')
g_ri3Dc.c:270: warning: braces around scalar initializer
g_ri3Dc.c:270: warning: (near initialization for `fnm[2]')
g_ri3Dc.c:270: error: `efNDX' undeclared here (not in a function)
g_ri3Dc.c:270: error: initializer element is not constant
g_ri3Dc.c:270: error: (near initialization for `fnm[2]')
g_ri3Dc.c:270: warning: excess elements in scalar initializer
g_ri3Dc.c:270: warning: (near initialization for `fnm[2]')
g_ri3Dc.c:270: warning: excess elements in scalar initializer
g_ri3Dc.c:270: warning: (near initialization for `fnm[2]')
g_ri3Dc.c:270: error: `ffOPTRD' undeclared here (not in a function)
g_ri3Dc.c:270: warning: excess elements in scalar initializer
g_ri3Dc.c:270: warning: (near initialization for `fnm[2]')
g_ri3Dc.c:270: error: initializer element is not constant
g_ri3Dc.c:270: error: (near initialization for `fnm[2]')
g_ri3Dc.c:271: warning: braces around scalar initializer
g_ri3Dc.c:271: warning: (near initialization for `fnm[3]')
g_ri3Dc.c:271: error: `efDAT' undeclared here (not in a function)
g_ri3Dc.c:271: error: initializer element is not constant
g_ri3Dc.c:271: error: (near initialization for `fnm[3]')
g_ri3Dc.c:271: warning: excess elements in scalar initializer
g_ri3Dc.c:271: warning: (near initialization for `fnm[3]')
g_ri3Dc.c:271: warning: excess elements in scalar initializer
g_ri3Dc.c:271: warning: (near initialization for `fnm[3]')
g_ri3Dc.c:271: error: `ffWRITE' undeclared here (not in a function)
g_ri3Dc.c:271: warning: excess elements in scalar initializer
g_ri3Dc.c:271: warning: (near initialization for `fnm[3]')
g_ri3Dc.c:271: error: initializer element is not constant
g_ri3Dc.c:271: error: (near initialization for `fnm[3]')
g_ri3Dc.c:272: warning: data definition has no type or storage class
g_ri3Dc.c:275: error: syntax error before "tgrid"
g_ri3Dc.c:275: warning: type defaults to `int' in declaration of `tgrid'
g_ri3Dc.c:275: error: conflicting types for `tgrid'
grid3D.h:77: error: previous declaration of `tgrid'
g_ri3Dc.c:275: warning: data definition has no type or storage class
g_ri3Dc.c:276: error: syntax error before '*' token
g_ri3Dc.c:276: warning: type defaults to `int' in declaration of `top'
g_ri3Dc.c:276: warning: data definition has no type or storage class
g_ri3Dc.c:279: error: syntax error before "weight"
g_ri3Dc.c:279: warning: type defaults to `int' in declaration of `weight'
g_ri3Dc.c:279: warning: data definition has no type or storage class
g_ri3Dc.c:280: error: syntax error before '*' token
g_ri3Dc.c:280: warning: type defaults to `int' in declaration of `x'
g_ri3Dc.c:280: error: `x' used prior to declaration
g_ri3Dc.c:280: warning: type defaults to `int' in declaration of `x_s'
g_ri3Dc.c:280: warning: data definition has no type or storage class
g_ri3Dc.c:281: error: syntax error before '*' token
g_ri3Dc.c:281: warning: type defaults to `int' in declaration of `xmol_cm'
g_ri3Dc.c:281: warning: data definition has no type or storage class
g_ri3Dc.c:282: error: syntax error before "box"
g_ri3Dc.c:282: warning: type defaults to `int' in declaration of `box'
g_ri3Dc.c:282: warning: data definition has no type or storage class
g_ri3Dc.c:283: error: syntax error before "t"
g_ri3Dc.c:283: warning: type defaults to `int' in declaration of `t'
g_ri3Dc.c:283: warning: type defaults to `int' in declaration of `tlast'
g_ri3Dc.c:283: warning: type defaults to `int' in declaration of `dt'
g_ri3Dc.c:283: error: `dt' used prior to declaration
g_ri3Dc.c:283: warning: data definition has no type or storage class
g_ri3Dc.c:290: error: syntax error before '*' token
g_ri3Dc.c:290: warning: type defaults to `int' in declaration of `molndx'
g_ri3Dc.c:290: warning: data definition has no type or storage class
g_ri3Dc.c:291: error: syntax error before '*' token
g_ri3Dc.c:291: warning: type defaults to `int' in declaration of `index'
g_ri3Dc.c:291: warning: built-in function `index' declared as non-function
g_ri3Dc.c:291: warning: data definition has no type or storage class
g_ri3Dc.c:292: error: syntax error before '*' token
g_ri3Dc.c:292: warning: type defaults to `int' in declaration of `mols'
g_ri3Dc.c:292: warning: data definition has no type or storage class
g_ri3Dc.c:293: error: `STRLEN' undeclared here (not in a function)
g_ri3Dc.c:299: error: syntax error before "__extension__"
g_ri3Dc.c:301: error: syntax error before '[' token
g_ri3Dc.c:301: warning: type defaults to `int' in declaration of `CopyRight'
g_ri3Dc.c:301: warning: data definition has no type or storage class
g_ri3Dc.c:302: error: syntax error before string constant
g_ri3Dc.c:302: warning: type defaults to `int' in declaration of `fprintf'
g_ri3Dc.c:302: warning: conflicting types for built-in function `fprintf'
g_ri3Dc.c:302: warning: data definition has no type or storage class
g_ri3Dc.c:304: error: syntax error before '&' token
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of 
`parse_common_args'
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `fnm'
g_ri3Dc.c:305: error: conflicting types for `fnm'
g_ri3Dc.c:267: error: previous declaration of `fnm'
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `asize'
g_ri3Dc.c:305: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `pa'
g_ri3Dc.c:305: error: conflicting types for `pa'
g_ri3Dc.c:248: error: previous declaration of `pa'
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `asize'
g_ri3Dc.c:305: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `desc'
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `asize'
g_ri3Dc.c:305: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:305: warning: type defaults to `int' in declaration of `bugs'
g_ri3Dc.c:305: error: syntax error before ')' token
g_ri3Dc.c:309: error: syntax error before string constant
g_ri3Dc.c:309: warning: type defaults to `int' in declaration of `dfprintf'
g_ri3Dc.c:309: error: conflicting types for `dfprintf'
utilgmx.h:49: error: previous declaration of `dfprintf'
g_ri3Dc.c:309: warning: data definition has no type or storage class
g_ri3Dc.c:310: error: syntax error before string constant
g_ri3Dc.c:310: warning: type defaults to `int' in declaration of `dfprintf'
g_ri3Dc.c:310: warning: data definition has no type or storage class
g_ri3Dc.c:312: error: syntax error before string constant
g_ri3Dc.c:312: warning: type defaults to `int' in declaration of `dmsg'
g_ri3Dc.c:312: error: conflicting types for `dmsg'
utilgmx.h:47: error: previous declaration of `dmsg'
g_ri3Dc.c:312: warning: data definition has no type or storage class
g_ri3Dc.c:316: warning: type defaults to `int' in declaration of `top'
g_ri3Dc.c:316: error: conflicting types for `top'
g_ri3Dc.c:276: error: previous declaration of `top'
g_ri3Dc.c:316: warning: implicit declaration of function `read_top'
g_ri3Dc.c:316: warning: implicit declaration of function `ftp2fn_null'
g_ri3Dc.c:316: error: `efTPS' undeclared here (not in a function)
g_ri3Dc.c:316: warning: data definition has no type or storage class
g_ri3Dc.c:317: error: syntax error before '&' token
g_ri3Dc.c:317: warning: type defaults to `int' in declaration of `get_index'
g_ri3Dc.c:317: error: syntax error before '(' token
g_ri3Dc.c:317: warning: type defaults to `int' in declaration of 
`ftp2fn_null'
g_ri3Dc.c:317: warning: type defaults to `int' in declaration of `fnm'
g_ri3Dc.c:317: error: syntax error before ')' token
g_ri3Dc.c:321: warning: type defaults to `int' in declaration of `mols'
g_ri3Dc.c:321: error: conflicting types for `mols'
g_ri3Dc.c:292: error: previous declaration of `mols'
g_ri3Dc.c:321: error: invalid type argument of `->'
g_ri3Dc.c:321: error: `ebMOLS' undeclared here (not in a function)
g_ri3Dc.c:321: warning: data definition has no type or storage class
g_ri3Dc.c:324: warning: type defaults to `int' in declaration of `molndx'
g_ri3Dc.c:324: error: conflicting types for `molndx'
g_ri3Dc.c:290: error: previous declaration of `molndx'
g_ri3Dc.c:324: warning: data definition has no type or storage class
g_ri3Dc.c:325: warning: type defaults to `int' in declaration of `gnmol'
g_ri3Dc.c:325: warning: data definition has no type or storage class
g_ri3Dc.c:326: error: syntax error before "if"
g_ri3Dc.c:329: error: syntax error before '->' token
g_ri3Dc.c:329: warning: type defaults to `int' in declaration of `snew'
g_ri3Dc.c:329: warning: data definition has no type or storage class
g_ri3Dc.c:333: error: syntax error before string constant
g_ri3Dc.c:333: warning: type defaults to `int' in declaration of `msg'
g_ri3Dc.c:333: error: conflicting types for `msg'
utilgmx.h:46: error: previous declaration of `msg'
g_ri3Dc.c:333: warning: data definition has no type or storage class
g_ri3Dc.c:334: error: syntax error before string constant
g_ri3Dc.c:334: warning: type defaults to `int' in declaration of `msg'
g_ri3Dc.c:334: warning: data definition has no type or storage class
g_ri3Dc.c:335: error: syntax error before string constant
g_ri3Dc.c:335: warning: type defaults to `int' in declaration of `msg'
g_ri3Dc.c:335: warning: data definition has no type or storage class
g_ri3Dc.c:337: warning: type defaults to `int' in declaration of `snew'
g_ri3Dc.c:337: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:337: warning: data definition has no type or storage class
g_ri3Dc.c:338: error: syntax error before '}' token
g_ri3Dc.c:340: warning: type defaults to `int' in declaration of `dt'
g_ri3Dc.c:340: warning: implicit declaration of function `ftp2fn'
g_ri3Dc.c:340: error: `efTRX' undeclared here (not in a function)
g_ri3Dc.c:340: warning: passing arg 1 of `get_timestep' makes pointer 
from integer without a cast
g_ri3Dc.c:340: error: initializer element is not constant
g_ri3Dc.c:340: warning: data definition has no type or storage class
g_ri3Dc.c:342: warning: type defaults to `int' in declaration of `natoms'
g_ri3Dc.c:342: warning: implicit declaration of function `read_first_x'
g_ri3Dc.c:342: error: `efTRX' undeclared here (not in a function)
g_ri3Dc.c:342: error: initializer element is not constant
g_ri3Dc.c:342: warning: data definition has no type or storage class
g_ri3Dc.c:343: warning: type defaults to `int' in declaration of `snew'
g_ri3Dc.c:343: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:343: warning: data definition has no type or storage class
g_ri3Dc.c:344: warning: type defaults to `int' in declaration of `tlast'
g_ri3Dc.c:344: error: initializer element is not constant
g_ri3Dc.c:344: warning: data definition has no type or storage class
g_ri3Dc.c:349: error: syntax error before string constant
g_ri3Dc.c:349: warning: type defaults to `int' in declaration of `msg'
g_ri3Dc.c:349: warning: data definition has no type or storage class
g_ri3Dc.c:350: error: syntax error before '&' token
g_ri3Dc.c:350: warning: type defaults to `int' in declaration of 
`autoset_cavity'
g_ri3Dc.c:350: warning: type defaults to `int' in declaration of `pa'
g_ri3Dc.c:350: error: syntax error before ')' token
g_ri3Dc.c:360: warning: type defaults to `int' in declaration of `sumP'
g_ri3Dc.c:360: error: conflicting types for `sumP'
g_ri3Dc.c:277: error: previous declaration of `sumP'
g_ri3Dc.c:360: warning: data definition has no type or storage class
g_ri3Dc.c:361: warning: type defaults to `int' in declaration of `T_tot'
g_ri3Dc.c:361: error: conflicting types for `T_tot'
g_ri3Dc.c:278: error: previous declaration of `T_tot'
g_ri3Dc.c:361: warning: data definition has no type or storage class
g_ri3Dc.c:362: error: syntax error before "do"
g_ri3Dc.c:364: warning: type defaults to `int' in declaration of `tlast'
g_ri3Dc.c:364: error: redefinition of `tlast'
g_ri3Dc.c:344: error: `tlast' previously defined here
g_ri3Dc.c:364: error: initializer element is not constant
g_ri3Dc.c:364: warning: data definition has no type or storage class
g_ri3Dc.c:365: error: syntax error before '+=' token
g_ri3Dc.c:366: warning: type defaults to `int' in declaration of `weight'
g_ri3Dc.c:366: error: `bdtWeight' undeclared here (not in a function)
g_ri3Dc.c:366: warning: data definition has no type or storage class
g_ri3Dc.c:367: error: syntax error before "if"
g_ri3Dc.c:402: warning: type defaults to `int' in declaration of `dV'
g_ri3Dc.c:402: error: initializer element is not constant
g_ri3Dc.c:402: warning: data definition has no type or storage class
g_ri3Dc.c:404: error: syntax error before "for"
g_ri3Dc.c:411: warning: type defaults to `int' in declaration of `strcpy'
g_ri3Dc.c:411: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:411: warning: data definition has no type or storage class
g_ri3Dc.c:412: error: syntax error before numeric constant
g_ri3Dc.c:422: warning: type defaults to `int' in declaration of `header'
g_ri3Dc.c:422: error: conflicting types for `header'
g_ri3Dc.c:246: error: previous declaration of `header'
g_ri3Dc.c:422: warning: data definition has no type or storage class
g_ri3Dc.c:423: error: syntax error before string constant
g_ri3Dc.c:423: warning: type defaults to `int' in declaration of `msg'
g_ri3Dc.c:423: warning: data definition has no type or storage class
g_ri3Dc.c:425: warning: type defaults to `int' in declaration of `fGrid'
g_ri3Dc.c:425: error: conflicting types for `fGrid'
g_ri3Dc.c:274: error: previous declaration of `fGrid'
g_ri3Dc.c:425: warning: implicit declaration of function `ffopen'
g_ri3Dc.c:425: warning: implicit declaration of function `opt2fn'
g_ri3Dc.c:425: warning: data definition has no type or storage class
g_ri3Dc.c:426: error: syntax error before "if"
g_ri3Dc.c:430: error: syntax error before '&' token
g_ri3Dc.c:430: warning: type defaults to `int' in declaration of 
`free_tgrid'
g_ri3Dc.c:430: error: conflicting types for `free_tgrid'
grid3D.h:91: error: previous declaration of `free_tgrid'
g_ri3Dc.c:430: warning: data definition has no type or storage class
g_ri3Dc.c:432: error: syntax error before string constant
g_ri3Dc.c:432: warning: type defaults to `int' in declaration of `fprintf'
g_ri3Dc.c:432: warning: data definition has no type or storage class
g_ri3Dc.c:433: warning: type defaults to `int' in declaration of `close_trj'
g_ri3Dc.c:433: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:433: warning: data definition has no type or storage class
g_ri3Dc.c:434: warning: type defaults to `int' in declaration of `fclose'
g_ri3Dc.c:434: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:434: warning: data definition has no type or storage class
g_ri3Dc.c:435: warning: type defaults to `int' in declaration of `thanx'
g_ri3Dc.c:435: warning: parameter names (without types) in function 
declaration
g_ri3Dc.c:435: warning: data definition has no type or storage class
g_ri3Dc.c:437: error: syntax error before "return"
g_ri3Dc.c:293: error: storage size of `s_tmp' isn't known
make: *** [g_ri3Dc.o] Error 1

What should I do...

I've got Gromacs 3.2.1 , installed in the default directory /usr/local/






More information about the gromacs.org_gmx-users mailing list