[GE users] 60u7 compile error

V01D phreakuencies at gmail.com
Mon Mar 6 04:53:50 GMT 2006


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Hi,
I tried to compile 6.0u7 on Slackware 10.2 (first with a 2.4 kernel, 
then with a 2.6, both with corresponding headers) and I got a wierd 
error inside standard headers. I googled for it and other projects got 
the same error, so I'm suspecting that maybe there's a bug on my gcc or 
set of headers or something like that. The error is as follows:

_________C_O_R_E__S_Y_S_T_E_M_____________
gcc -O3 -Wall -Werror -Wstrict-prototypes -D__GRIDENGINE_FD_SETSIZE=8192 
-DLINUX -DLINUX86 -DLINUX86_26 -D_GNU_SOURCE -DGETHOSTBYNAME_R6 
-DGETHOSTBYADDR_R8  -DHAS_IN_PORT_T -DLOAD_OPENSSL -I/usr/include/ 
-DTARGET_32BIT -DQCONF_FLATFILE  -DSPOOLING_dynamic -DSECURE 
-I/usr/include -DCOMPILE_DC -D__SGE_COMPILE_WITH_GETTEXT__ 
-D__SGE_NO_USERMAPPING__ -I../common -I../libs -I../libs/uti 
-I../libs/gdi -I../libs/japi -I../libs/sgeobj -I../libs/cull 
-I../libs/rmon -I../libs/comm -I../libs/comm/lists -I../libs/sched 
-I../libs/evc -I../libs/evm -I../libs/mir -I../libs/lck 
-I../daemons/common -I../daemons/qmaster -I../daemons/execd 
-I../daemons/schedd -I../clients/common -I. -I/usr/include 
-I/usr/include/linux -fPIC -c ../libs/sgeobj/config.c
In file included from /usr/include/_G_config.h:44,
                  from /usr/include/libio.h:32,
                  from /usr/include/stdio.h:72,
                  from ../libs/sgeobj/config.c:33:
/usr/include/gconv.h:72: error: syntax error before "size_t"
/usr/include/gconv.h:88: error: syntax error before "size_t"
/usr/include/gconv.h:97: error: syntax error before "size_t"
/usr/include/gconv.h:174: error: syntax error before "size_t"
/usr/include/gconv.h:177: error: syntax error before '}' token
In file included from /usr/include/libio.h:32,
                  from /usr/include/stdio.h:72,
                  from ../libs/sgeobj/config.c:33:
/usr/include/_G_config.h:47: error: field `__cd' has incomplete type
/usr/include/_G_config.h:50: error: field `__cd' has incomplete type
In file included from /usr/include/stdio.h:72,
                  from ../libs/sgeobj/config.c:33:
/usr/include/libio.h:354: error: syntax error before "size_t"
/usr/include/libio.h:363: error: syntax error before "size_t"
/usr/include/libio.h:479: error: syntax error before "_IO_sgetn"
/usr/include/libio.h:479: error: syntax error before "size_t"
In file included from ../libs/sgeobj/config.c:33:
/usr/include/stdio.h:284: error: syntax error before "size_t"
/usr/include/stdio.h:290: error: syntax error before "size_t"
/usr/include/stdio.h:302: error: syntax error before "size_t"
/usr/include/stdio.h:309: error: syntax error before "size_t"
/usr/include/stdio.h:351: error: syntax error before "size_t"
/usr/include/stdio.h:355: error: syntax error before "size_t"
/usr/include/stdio.h:560: error: syntax error before "size_t"
/usr/include/stdio.h:563: error: syntax error before "size_t"
/usr/include/stdio.h:573: error: syntax error before "size_t"
/usr/include/stdio.h:603: error: syntax error before "fread"
/usr/include/stdio.h:603: error: syntax error before "size_t"
/usr/include/stdio.h:609: error: syntax error before "fwrite"
/usr/include/stdio.h:609: error: syntax error before "size_t"
/usr/include/stdio.h:631: error: syntax error before "fread_unlocked"
/usr/include/stdio.h:631: error: syntax error before "size_t"
/usr/include/stdio.h:633: error: syntax error before "fwrite_unlocked"
/usr/include/stdio.h:633: error: syntax error before "size_t"
In file included from /usr/include/stdio.h:828,
                  from ../libs/sgeobj/config.c:33:
/usr/include/bits/stdio.h:102: error: syntax error before "size_t"
/usr/include/bits/stdio.h: In function `getline':
/usr/include/bits/stdio.h:104: error: `__lineptr' undeclared (first use 
in this function)
/usr/include/bits/stdio.h:104: error: (Each undeclared identifier is 
reported only once
/usr/include/bits/stdio.h:104: error: for each function it appears in.)
/usr/include/bits/stdio.h:104: error: `__n' undeclared (first use in 
this function)
/usr/include/bits/stdio.h:104: error: `__stream' undeclared (first use 
in this function)
In file included from ../libs/sgeobj/config.c:35:
/usr/include/strings.h: At top level:
/usr/include/strings.h:34: error: syntax error before "size_t"
/usr/include/strings.h:38: error: syntax error before "size_t"
/usr/include/strings.h:41: error: syntax error before "size_t"
/usr/include/strings.h:58: error: syntax error before "size_t"
In file included from ../libs/sgeobj/config.c:37:
/usr/include/stdlib.h:140: error: syntax error before 
"__ctype_get_mb_cur_max"
In file included from /usr/include/sys/types.h:133,
                  from /usr/include/stdlib.h:433,
                  from ../libs/sgeobj/config.c:37:
/usr/include/linux/time.h:13: error: syntax error before "time_t"
/usr/include/linux/time.h:15: error: syntax error before '}' token
/usr/include/linux/time.h:19: error: syntax error before "time_t"
/usr/include/linux/time.h:135: error: field `it_interval' has incomplete 
type
/usr/include/linux/time.h:136: error: field `it_value' has incomplete type
/usr/include/linux/time.h:140: error: field `it_interval' has incomplete 
type
/usr/include/linux/time.h:141: error: field `it_value' has incomplete type
In file included from /usr/include/sys/types.h:266,
                  from /usr/include/stdlib.h:433,
                  from ../libs/sgeobj/config.c:37:
/usr/include/bits/pthreadtypes.h:48: error: syntax error before "size_t"
/usr/include/bits/pthreadtypes.h:51: error: syntax error before 
"__stacksize"
In file included from ../libs/sgeobj/config.c:37:
/usr/include/stdlib.h:450: error: syntax error before "size_t"
/usr/include/stdlib.h:480: error: syntax error before "size_t"
/usr/include/stdlib.h:584: error: syntax error before "__size"
/usr/include/stdlib.h:586: error: syntax error before "__nmemb"
/usr/include/stdlib.h:595: error: syntax error before "size_t"
In file included from /usr/include/stdlib.h:606,
                  from ../libs/sgeobj/config.c:37:
/usr/include/alloca.h:33: error: syntax error before "__size"
In file included from ../libs/sgeobj/config.c:37:
/usr/include/stdlib.h:611: error: syntax error before "__size"
/usr/include/stdlib.h:616: error: syntax error before "size_t"
/usr/include/stdlib.h:768: error: syntax error before "size_t"
/usr/include/stdlib.h:773: error: syntax error before "size_t"
/usr/include/stdlib.h:846: error: syntax error before "size_t"
/usr/include/stdlib.h:849: error: syntax error before "size_t"
/usr/include/stdlib.h:853: error: syntax error before "size_t"
/usr/include/stdlib.h:857: error: syntax error before "size_t"
/usr/include/stdlib.h:866: error: syntax error before "size_t"
/usr/include/stdlib.h:869: error: syntax error before '*' token
/usr/include/stdlib.h:873: error: syntax error before "wchar_t"
/usr/include/stdlib.h:877: error: syntax error before "mbstowcs"
/usr/include/stdlib.h:877: error: syntax error before '*' token
/usr/include/stdlib.h:880: error: syntax error before "wcstombs"
/usr/include/stdlib.h:881: error: syntax error before '*' token
/usr/include/stdlib.h:943: error: syntax error before "size_t"
In file included from ../libs/cull/cull_list.h:40,
                  from ../libs/cull/cull_listP.h:35,
                  from ../libs/cull/cull.h:36,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/pack.h:101: error: syntax error before "size_t"
../libs/cull/pack.h:101: warning: no semicolon at end of struct or union
../libs/cull/pack.h:102: warning: type defaults to `int' in declaration 
of `bytes_used'
../libs/cull/pack.h:102: warning: data definition has no type or storage 
class
../libs/cull/pack.h:105: error: syntax error before '}' token
../libs/cull/pack.h:105: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:105: warning: data definition has no type or storage 
class
../libs/cull/pack.h:108: error: syntax error before '*' token
../libs/cull/pack.h:108: warning: function declaration isn't a prototype
../libs/cull/pack.h:111: error: syntax error before '*' token
../libs/cull/pack.h:111: warning: function declaration isn't a prototype
../libs/cull/pack.h:114: error: syntax error before '*' token
../libs/cull/pack.h:114: warning: function declaration isn't a prototype
../libs/cull/pack.h:116: error: syntax error before '*' token
../libs/cull/pack.h:116: warning: function declaration isn't a prototype
../libs/cull/pack.h:117: error: syntax error before '*' token
../libs/cull/pack.h:117: warning: function declaration isn't a prototype
../libs/cull/pack.h:118: error: syntax error before '*' token
../libs/cull/pack.h:118: warning: function declaration isn't a prototype
../libs/cull/pack.h:120: error: syntax error before '*' token
../libs/cull/pack.h:120: warning: function declaration isn't a prototype
../libs/cull/pack.h:121: error: syntax error before '*' token
../libs/cull/pack.h:121: warning: function declaration isn't a prototype
../libs/cull/pack.h:123: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:123: error: syntax error before '*' token
../libs/cull/pack.h:123: warning: function declaration isn't a prototype
../libs/cull/pack.h:124: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:124: error: syntax error before '*' token
../libs/cull/pack.h:124: warning: function declaration isn't a prototype
../libs/cull/pack.h:125: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:125: error: syntax error before '*' token
../libs/cull/pack.h:125: warning: function declaration isn't a prototype
../libs/cull/pack.h:126: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:126: error: syntax error before '*' token
../libs/cull/pack.h:126: warning: function declaration isn't a prototype
../libs/cull/pack.h:127: error: syntax error before '*' token
../libs/cull/pack.h:127: warning: function declaration isn't a prototype
../libs/cull/pack.h:128: error: syntax error before '*' token
../libs/cull/pack.h:128: warning: function declaration isn't a prototype
../libs/cull/pack.h:130: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:130: error: syntax error before '*' token
../libs/cull/pack.h:130: warning: function declaration isn't a prototype
../libs/cull/pack.h:131: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:131: error: syntax error before '*' token
../libs/cull/pack.h:131: warning: function declaration isn't a prototype
../libs/cull/pack.h:132: warning: type defaults to `int' in declaration 
of `sge_pack_buffer'
../libs/cull/pack.h:132: error: syntax error before '*' token
../libs/cull/pack.h:132: warning: function declaration isn't a prototype
../libs/cull/pack.h:133: error: syntax error before '*' token
../libs/cull/pack.h:133: warning: function declaration isn't a prototype
../libs/cull/pack.h:134: error: syntax error before '*' token
../libs/cull/pack.h:134: warning: function declaration isn't a prototype
In file included from ../libs/cull/cull_listP.h:35,
                  from ../libs/cull/cull.h:36,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/cull_list.h:234: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_list.h:234: warning: function declaration isn't a 
prototype
../libs/cull/cull_list.h:238: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_list.h:238: warning: function declaration isn't a 
prototype
In file included from ../libs/cull/cull_what.h:41,
                  from ../libs/cull/cull.h:39,
                  from ../libs/sgeobj/config.c:39:
../libs/uti/sge_dstring.h:65: error: syntax error before "size_t"
../libs/uti/sge_dstring.h:65: warning: no semicolon at end of struct or 
union
../libs/uti/sge_dstring.h:66: warning: type defaults to `int' in 
declaration of `size'
../libs/uti/sge_dstring.h:66: warning: data definition has no type or 
storage class
../libs/uti/sge_dstring.h:68: error: syntax error before '}' token
../libs/uti/sge_dstring.h:68: warning: type defaults to `int' in 
declaration of `dstring'
../libs/uti/sge_dstring.h:68: warning: data definition has no type or 
storage class
../libs/uti/sge_dstring.h:71: error: syntax error before '*' token
../libs/uti/sge_dstring.h:71: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:73: error: syntax error before '*' token
../libs/uti/sge_dstring.h:73: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:74: error: syntax error before '*' token
../libs/uti/sge_dstring.h:74: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:75: error: syntax error before '*' token
../libs/uti/sge_dstring.h:75: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:77: error: syntax error before '*' token
../libs/uti/sge_dstring.h:77: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:78: error: syntax error before '*' token
../libs/uti/sge_dstring.h:78: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:79: error: syntax error before '*' token
../libs/uti/sge_dstring.h:79: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:81: error: syntax error before '*' token
../libs/uti/sge_dstring.h:81: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:82: error: syntax error before '*' token
../libs/uti/sge_dstring.h:82: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:84: warning: type defaults to `int' in 
declaration of `dstring'
../libs/uti/sge_dstring.h:84: error: syntax error before '*' token
../libs/uti/sge_dstring.h:84: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:86: error: syntax error before '*' token
../libs/uti/sge_dstring.h:86: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:88: error: syntax error before '*' token
../libs/uti/sge_dstring.h:88: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:90: error: syntax error before 
"sge_dstring_strlen"
../libs/uti/sge_dstring.h:90: warning: type defaults to `int' in 
declaration of `dstring'
../libs/uti/sge_dstring.h:90: error: syntax error before '*' token
../libs/uti/sge_dstring.h:90: warning: type defaults to `int' in 
declaration of `sge_dstring_strlen'
../libs/uti/sge_dstring.h:90: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:90: warning: data definition has no type or 
storage class
../libs/uti/sge_dstring.h:92: error: syntax error before 
"sge_dstring_remaining"
../libs/uti/sge_dstring.h:92: warning: type defaults to `int' in 
declaration of `dstring'
../libs/uti/sge_dstring.h:92: error: syntax error before '*' token
../libs/uti/sge_dstring.h:92: warning: type defaults to `int' in 
declaration of `sge_dstring_remaining'
../libs/uti/sge_dstring.h:92: warning: function declaration isn't a 
prototype
../libs/uti/sge_dstring.h:92: warning: data definition has no type or 
storage class
../libs/uti/sge_dstring.h:94: error: syntax error before '*' token
../libs/uti/sge_dstring.h:94: warning: function declaration isn't a 
prototype
In file included from ../libs/cull/cull.h:41,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/cull_what_print.h:45: error: syntax error before "dstring"
../libs/cull/cull_what_print.h:45: warning: function declaration isn't a 
prototype
In file included from ../libs/cull/cull.h:42,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/cull_db.h:46: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_db.h:47: warning: function declaration isn't a prototype
../libs/cull/cull_db.h:51: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_db.h:51: warning: function declaration isn't a prototype
../libs/cull/cull_db.h:57: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_db.h:57: warning: function declaration isn't a prototype
../libs/cull/cull_db.h:60: error: syntax error before "sge_pack_buffer"
../libs/cull/cull_db.h:60: warning: function declaration isn't a prototype
In file included from ../libs/cull/cull.h:46,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/cull_pack.h:47: error: syntax error before '*' token
../libs/cull/cull_pack.h:47: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:49: error: syntax error before '*' token
../libs/cull/cull_pack.h:49: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:52: error: syntax error before '*' token
../libs/cull/cull_pack.h:53: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:56: error: syntax error before '*' token
../libs/cull/cull_pack.h:58: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:61: error: syntax error before '*' token
../libs/cull/cull_pack.h:62: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:71: error: syntax error before '*' token
../libs/cull/cull_pack.h:71: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:72: error: syntax error before '*' token
../libs/cull/cull_pack.h:72: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:74: error: syntax error before '*' token
../libs/cull/cull_pack.h:74: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:75: error: syntax error before '*' token
../libs/cull/cull_pack.h:76: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:83: error: syntax error before '*' token
../libs/cull/cull_pack.h:83: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:84: error: syntax error before '*' token
../libs/cull/cull_pack.h:84: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:91: error: syntax error before '*' token
../libs/cull/cull_pack.h:91: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:92: error: syntax error before '*' token
../libs/cull/cull_pack.h:92: warning: function declaration isn't a prototype
../libs/cull/cull_pack.h:97: error: syntax error before 
"cull_get_list_packsize"
../libs/cull/cull_pack.h:97: warning: type defaults to `int' in 
declaration of `cull_get_list_packsize'
../libs/cull/cull_pack.h:97: warning: data definition has no type or 
storage class
../libs/cull/cull_pack.h:98: error: syntax error before 
"cull_get_elem_packsize"
../libs/cull/cull_pack.h:98: warning: type defaults to `int' in 
declaration of `cull_get_elem_packsize'
../libs/cull/cull_pack.h:98: warning: data definition has no type or 
storage class
In file included from ../libs/cull/cull_hash.h:36,
                  from ../libs/cull/cull.h:49,
                  from ../libs/sgeobj/config.c:39:
../libs/uti/sge_htable.h:56: error: syntax error before "dstring"
../libs/uti/sge_htable.h:56: warning: function declaration isn't a prototype
In file included from ../libs/cull/cull.h:49,
                  from ../libs/sgeobj/config.c:39:
../libs/cull/cull_hash.h:58: error: syntax error before "dstring"
../libs/cull/cull_hash.h:58: warning: function declaration isn't a prototype
In file included from ../libs/uti/sge_parse_num_par.h:36,
                  from ../libs/sgeobj/config.c:40:
/usr/include/sys/time.h:57: error: redefinition of `struct timezone'
/usr/include/sys/time.h:94: error: syntax error before numeric constant
/usr/include/sys/time.h:108: error: redefinition of `struct itimerval'
In file included from ../libs/sgeobj/config.c:44:
../libs/uti/sge_string.h:90: error: syntax error before "sge_strlcpy"
../libs/uti/sge_string.h:90: error: syntax error before "size_t"
../libs/uti/sge_string.h:90: warning: type defaults to `int' in 
declaration of `sge_strlcpy'
../libs/uti/sge_string.h:90: warning: function declaration isn't a prototype
../libs/uti/sge_string.h:90: warning: data definition has no type or 
storage class
../libs/uti/sge_string.h:104: error: syntax error before "dstring"
../libs/uti/sge_string.h:104: warning: function declaration isn't a 
prototype
In file included from ../libs/sgeobj/config.c:45:
../libs/sgeobj/sge_answer.h:100: error: syntax error before "dstring"
../libs/sgeobj/sge_answer.h:100: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_answer.h:102: error: syntax error before "dstring"
../libs/sgeobj/sge_answer.h:102: warning: function declaration isn't a 
prototype
In file included from ../libs/sgeobj/config.c:48:
../libs/sgeobj/sge_attr.h:87: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:87: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:89: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:89: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:91: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:91: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:93: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:93: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:95: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:95: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:97: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:97: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:99: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:99: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:102: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:102: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:104: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:104: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:106: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:106: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:108: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:108: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:110: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:110: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_attr.h:113: error: syntax error before "dstring"
../libs/sgeobj/sge_attr.h:115: warning: function declaration isn't a 
prototype
In file included from ../libs/sgeobj/config.c:49:
../libs/sgeobj/sge_object.h:198: error: syntax error before "dstring"
../libs/sgeobj/sge_object.h:198: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_object.h:202: error: syntax error before "dstring"
../libs/sgeobj/sge_object.h:203: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_object.h:206: error: syntax error before "dstring"
../libs/sgeobj/sge_object.h:207: warning: function declaration isn't a 
prototype
In file included from ../libs/sgeobj/config.c:50:
../libs/sgeobj/sge_ulong.h:41: error: syntax error before "dstring"
../libs/sgeobj/sge_ulong.h:41: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_ulong.h:44: error: syntax error before "dstring"
../libs/sgeobj/sge_ulong.h:44: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_ulong.h:47: error: syntax error before "dstring"
../libs/sgeobj/sge_ulong.h:47: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_ulong.h:50: error: syntax error before "dstring"
../libs/sgeobj/sge_ulong.h:50: warning: function declaration isn't a 
prototype
../libs/sgeobj/sge_ulong.h:53: error: syntax error before "dstring"
../libs/sgeobj/sge_ulong.h:53: warning: function declaration isn't a 
prototype
../libs/sgeobj/config.c: In function `read_config_list':
../libs/sgeobj/config.c:112: warning: implicit declaration of function 
`strcmp'
../libs/sgeobj/config.c:122: warning: implicit declaration of function 
`strchr'
../libs/sgeobj/config.c:137: warning: implicit declaration of function 
`strlen'
../libs/sgeobj/config.c: At top level:
/usr/include/gconv.h:176: warning: array `__data' assumed to have one 
element
make: *** [config.o] Error 1
not done

This is the SlackBuild (a plain bash script) that takes care of the 
compile process, so you see all flags passed:
CWD=`pwd`
if [ "$TMP" = "" ]; then
   TMP=/tmp
fi
PKG=$TMP/package-sge

VERSION=60u7
ARCH=${ARCH:-i486}
BUILD=1

if [ ! -d $TMP ]; then
   mkdir -p $TMP # location to build the source
fi
rm -rf $PKG
if [ ! -d $PKG ]; then
   mkdir -p $PKG # place for the package to be built
fi

if [ "$ARCH" = "i386" ]; then
   SLKCFLAGS="-O3 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
   SLKCFLAGS="-O3 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
   SLKCFLAGS="-O3"
elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O3"
fi

# Explode the package framework:
# cd $PKG
# explodepkg $CWD/_inetd.tar.gz

cd $TMP
echo -n 'Deleting old tree... '
rm -rf gridengine
echo 'Done'

echo -n 'Decompressing... '
tar xzf $CWD/sge-V${VERSION}_TAG-src.tar.gz
echo 'Done'

cd gridengine

# First change aimk.site to modify BERKELEYDB_HOME
cd source
cat aimk.site | sed -re \
   "s,^set BERKELEYDB_HOME = .+\$,set BERKELEYDB_HOME = /usr,;\
    s,^set GROFFPATH = .+\$,set GROFFPATH = /usr/bin/groff,;\
    s,^set PERL = .+\$,set PERL = /usr/bin/perl,;\
    s,^set TCLSH = .+\$,set TCLSH = /usr/bin/tclsh,;\
    s,^set SWIG = .+\$,set SWIG = /usr/bin/swig,;\
    s,^set MAN2HTML = .+\$,set MAN2HTML = /usr/bin/man2html,;\
    s,^set OPENSSL_HOME = .+\$,set OPENSSL_HOME = /usr,;" > aimk.site2

echo 'set JAVA_HOME = /usr' >> aimk.site2
mv aimk.site2 aimk.site

# Now build sge_depend
./aimk -only-depend -no-java

# Now go create dependencies
./scripts/zerodepend
./aimk -no-java depend

# And Compile everything
./aimk -no-java
./aimk -man

# And install
yes | SGE_ROOT="$PKG" scripts/distinst -local -noexit -allall lx26-x86


NOTE: lx24-x86 was used when compiling against 2.4 kernel.
I'm using gcc 3.3.6. sge 5.3 seemed to compile without this error 
(altough I didn't finished the build process for it).

Any ideas?

Thank you

Matt.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list