Death by CustomBuild

XTJoeyTX

New member
Joined
Jul 29, 2007
Messages
2
Well, I pretty much murdered everything. Apache. Php. Mysql? Etc.

Getting some errors about 'syntax error before "size_t"' and then a couple of more problems about size_t in stdlib.h etc.

Know a fix? Post plz. =[

Shell said:
In file included from ltdl.c:29:
./config.h:164: error: syntax error before ':' token
./config.h:166: error: missing terminating " character
In file included from ltdl.c:33:
/usr/include/unistd.h:312: error: syntax error before "size_t"
/usr/include/unistd.h:318: error: syntax error before "size_t"
/usr/include/unistd.h:448: error: syntax error before "size_t"
In file included from ltdl.c:33:
/usr/include/unistd.h:544: error: syntax error before "confstr"
/usr/include/unistd.h:544: error: syntax error before "size_t"
/usr/include/unistd.h:712: error: syntax error before "size_t"
/usr/include/unistd.h:740: error: syntax error before "size_t"
/usr/include/unistd.h:769: error: syntax error before "size_t"
In file included from ltdl.c:33:
/usr/include/unistd.h:791: error: syntax error before "size_t"
/usr/include/unistd.h:798: error: syntax error before "size_t"
/usr/include/unistd.h:809: error: syntax error before "size_t"
/usr/include/unistd.h:811: error: syntax error before "size_t"
/usr/include/unistd.h:829: error: syntax error before "size_t"
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from ltdl.c:37:
/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 ltdl.c:37:
/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 ltdl.c:37:
/usr/include/libio.h:328: error: syntax error before "size_t"
/usr/include/libio.h:332: error: `size_t' undeclared here (not in a function)
/usr/include/libio.h:334: error: syntax error before '}' token
/usr/include/libio.h:360: error: syntax error before "size_t"
/usr/include/libio.h:369: error: syntax error before "size_t"
/usr/include/libio.h:485: error: syntax error before "_IO_sgetn"
/usr/include/libio.h:485: error: syntax error before "size_t"
In file included from ltdl.c:37:
/usr/include/stdio.h:304: error: syntax error before "size_t"
/usr/include/stdio.h:311: error: syntax error before "size_t"
/usr/include/stdio.h:353: error: syntax error before "size_t"
/usr/include/stdio.h:357: error: syntax error before "size_t"
/usr/include/stdio.h:605: error: syntax error before "fread"
/usr/include/stdio.h:605: error: syntax error before "size_t"
/usr/include/stdio.h:611: error: syntax error before "fwrite"
/usr/include/stdio.h:611: error: syntax error before "size_t"
/usr/include/stdio.h:633: error: syntax error before "fread_unlocked"
/usr/include/stdio.h:633: error: syntax error before "size_t"
/usr/include/stdio.h:635: error: syntax error before "fwrite_unlocked"
/usr/include/stdio.h:635: error: syntax error before "size_t"
In file included from /usr/include/stdio.h:830,
from ltdl.c:37:
/usr/include/bits/stdio.h: In function `getc_unlocked':
/usr/include/bits/stdio.h:52: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:52: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:52: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `getchar_unlocked':
/usr/include/bits/stdio.h:59: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:59: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:59: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `fputc_unlocked':
/usr/include/bits/stdio.h:77: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:77: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:77: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `putc_unlocked':
/usr/include/bits/stdio.h:87: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:87: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:87: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `putchar_unlocked':
/usr/include/bits/stdio.h:94: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:94: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h:94: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `feof_unlocked':
/usr/include/bits/stdio.h:114: error: dereferencing pointer to incomplete type
/usr/include/bits/stdio.h: In function `ferror_unlocked':
/usr/include/bits/stdio.h:121: error: dereferencing pointer to incomplete type
In file included from ltdl.c:43:
/usr/include/stdlib.h: At top level:
/usr/include/stdlib.h:140: error: syntax error before "__ctype_get_mb_cur_max"
In file included from /usr/include/sys/types.h:266,
from /usr/include/stdlib.h:433,
from ltdl.c:43:
/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 ltdl.c:43:
/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 ltdl.c:43:
/usr/include/alloca.h:33: error: syntax error before "__size"
In file included from ltdl.c:43:
/usr/include/stdlib.h:611: error: syntax error before "__size"
/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:870: error: syntax error before "size_t"
/usr/include/stdlib.h:877: error: syntax error before "mbstowcs"
/usr/include/stdlib.h:878: error: syntax error before "size_t"
/usr/include/stdlib.h:880: error: syntax error before "wcstombs"
/usr/include/stdlib.h:881: error: syntax error before "size_t"
In file included from ltdl.c:51:
/usr/include/string.h:39: error: syntax error before "size_t"
/usr/include/string.h:43: error: syntax error before "size_t"
/usr/include/string.h:52: error: syntax error before "size_t"
/usr/include/string.h:59: error: syntax error before "size_t"
/usr/include/string.h:62: error: syntax error before "size_t"
/usr/include/string.h:66: error: syntax error before "size_t"
/usr/include/string.h:88: error: syntax error before "size_t"
/usr/include/string.h:96: error: syntax error before "size_t"
/usr/include/string.h:102: error: syntax error before "size_t"
/usr/include/string.h:109: error: syntax error before "strxfrm"
/usr/include/string.h:110: error: syntax error before "size_t"
/usr/include/string.h:184: error: syntax error before "strcspn"
/usr/include/string.h:188: error: syntax error before "strspn"
/usr/include/string.h:242: error: syntax error before "strlen"
/usr/include/string.h:281: error: syntax error before "size_t"
/usr/include/string.h:288: error: syntax error before "size_t"
/usr/include/string.h:292: error: syntax error before "size_t"
/usr/include/string.h:296: error: syntax error before "size_t"
/usr/include/string.h:299: error: syntax error before "size_t"
/usr/include/string.h:329: error: syntax error before "size_t"
In file included from /usr/include/string.h:417,
from ltdl.c:51:
/usr/include/bits/string2.h:969: error: syntax error before "__strcspn_c1"
/usr/include/bits/string2.h:971: error: syntax error before "__strcspn_c1"
/usr/include/bits/string2.h: In function `__strcspn_c1':
/usr/include/bits/string2.h:973: error: syntax error before "__result"
/usr/include/bits/string2.h:974: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h:974: error: (Each undeclared identifier is reported only once
/usr/include/bits/string2.h:974: error: for each function it appears in.)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:979: error: syntax error before "__strcspn_c2"
/usr/include/bits/string2.h:982: error: syntax error before "__strcspn_c2"
/usr/include/bits/string2.h: In function `__strcspn_c2':
/usr/include/bits/string2.h:984: error: syntax error before "__result"
/usr/include/bits/string2.h:985: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:991: error: syntax error before "__strcspn_c3"
/usr/include/bits/string2.h:994: error: syntax error before "__strcspn_c3"
/usr/include/bits/string2.h: In function `__strcspn_c3':
/usr/include/bits/string2.h:997: error: syntax error before "__result"
/usr/include/bits/string2.h:998: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1045: error: syntax error before "__strspn_c1"
/usr/include/bits/string2.h:1047: error: syntax error before "__strspn_c1"
/usr/include/bits/string2.h: In function `__strspn_c1':
/usr/include/bits/string2.h:1049: error: syntax error before "__result"
/usr/include/bits/string2.h:1051: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1056: error: syntax error before "__strspn_c2"
/usr/include/bits/string2.h:1059: error: syntax error before "__strspn_c2"
/usr/include/bits/string2.h: In function `__strspn_c2':
/usr/include/bits/string2.h:1061: error: syntax error before "__result"
/usr/include/bits/string2.h:1063: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1068: error: syntax error before "__strspn_c3"
/usr/include/bits/string2.h:1071: error: syntax error before "__strspn_c3"
/usr/include/bits/string2.h: In function `__strspn_c3':
/usr/include/bits/string2.h:1073: error: syntax error before "__result"
/usr/include/bits/string2.h:1075: error: `__result' undeclared (first use in this function)
/usr/include/bits/string2.h: In function `__strpbrk_c2':
/usr/include/bits/string2.h:1129: error: syntax error before "__s"
/usr/include/bits/string2.h: In function `__strpbrk_c3':
/usr/include/bits/string2.h:1142: error: syntax error before "__s"
/usr/include/bits/string2.h: At top level:
/usr/include/bits/string2.h:1323: error: syntax error before "size_t"
In file included from ltdl.c:120:
/usr/include/argz.h:44: error: syntax error before "size_t"
/usr/include/argz.h:46: error: syntax error before "size_t"
/usr/include/argz.h:54: error: syntax error before "size_t"
/usr/include/argz.h:57: error: syntax error before "size_t"
/usr/include/argz.h:60: error: syntax error before "__argz_count"
/usr/include/argz.h:60: error: syntax error before "size_t"
/usr/include/argz.h:62: error: syntax error before "argz_count"
/usr/include/argz.h:62: error: syntax error before "size_t"
/usr/include/argz.h:67: error: syntax error before "size_t"
/usr/include/argz.h:69: error: syntax error before "size_t"
/usr/include/argz.h:74: error: syntax error before "size_t"
/usr/include/argz.h:75: error: syntax error before "size_t"
/usr/include/argz.h:79: error: syntax error before "size_t"
/usr/include/argz.h:83: error: syntax error before "size_t"
/usr/include/argz.h:89: error: syntax error before "size_t"
/usr/include/argz.h:92: error: syntax error before "size_t"
/usr/include/argz.h:98: error: syntax error before "size_t"
/usr/include/argz.h:102: error: syntax error before "size_t"
/usr/include/argz.h:108: error: syntax error before "size_t"
/usr/include/argz.h:111: error: syntax error before "size_t"
/usr/include/argz.h:121: error: syntax error before "size_t"
/usr/include/argz.h:125: error: syntax error before "size_t"
/usr/include/argz.h:133: error: syntax error before "size_t"
/usr/include/argz.h:138: error: syntax error before "size_t"
/usr/include/argz.h:157: error: syntax error before "size_t"
/usr/include/argz.h:159: error: syntax error before "size_t"
/usr/include/argz.h:164: error: syntax error before "size_t"
/usr/include/argz.h: In function `__argz_next':
/usr/include/argz.h:167: error: `__entry' undeclared (first use in this function)
/usr/include/argz.h:169: error: `__argz' undeclared (first use in this function)
/usr/include/argz.h:169: error: `__argz_len' undeclared (first use in this function)
/usr/include/argz.h: At top level:
/usr/include/argz.h:178: error: syntax error before "size_t"
/usr/include/argz.h: In function `argz_next':
/usr/include/argz.h:181: error: `__argz' undeclared (first use in this function)
/usr/include/argz.h:181: error: `__argz_len' undeclared (first use in this function)
/usr/include/argz.h:181: error: `__entry' undeclared (first use in this function)
In file included from ltdl.c:129:
ltdl.h: At top level:
ltdl.h:210: error: syntax error before "size"
ltdl.h:211: error: syntax error before "size_t"
ltdl.c:219: error: syntax error before "size"
ltdl.c:220: error: syntax error before "size_t"
ltdl.c:226: error: syntax error before "size"
ltdl.c:227: error: syntax error before "size_t"
ltdl.c:228: error: syntax error before "size_t"
ltdl.c:229: error: syntax error before "size_t"
ltdl.c:324:1: warning: "strchr" redefined
In file included from /usr/include/string.h:417,
from ltdl.c:51:
/usr/include/bits/string2.h:396:1: warning: this is the location of the previous definition
ltdl.c:386: error: syntax error before "size_t"
ltdl.c: In function `rpl_memcpy':
ltdl.c:392: error: syntax error before "size_t"
ltdl.c:396: error: syntax error before "i"
ltdl.c:398: error: `i' undeclared (first use in this function)
ltdl.c: At top level:
ltdl.c:412: error: syntax error before "size_t"
ltdl.c: In function `rpl_memmove':
ltdl.c:418: error: syntax error before "size_t"
ltdl.c:422: error: syntax error before "i"
ltdl.c:425: error: `i' undeclared (first use in this function)
ltdl.c: At top level:
ltdl.c:575: error: syntax error before "size_t"
ltdl.c: In function `rpl_argz_append':
ltdl.c:581: error: syntax error before "size_t"
ltdl.c:583: error: syntax error before "size_t"
ltdl.c:585: error: syntax error before "argz_len"
ltdl.c:590: error: invalid type argument of `unary *'
ltdl.c:590: error: invalid type argument of `unary *'
ltdl.c:597: error: `argz_len' undeclared (first use in this function)
ltdl.c:597: error: invalid type argument of `unary *'
ltdl.c:603: error: invalid type argument of `unary *'
ltdl.c:607: error: invalid type argument of `unary *'
ltdl.c: At top level:
ltdl.c:617: error: syntax error before "size_t"
ltdl.c: In function `rpl_argz_create_sep':
ltdl.c:625: error: syntax error before "size_t"
ltdl.c:627: error: syntax error before "argz_len"
ltdl.c:636: error: `argz_len' undeclared (first use in this function)
ltdl.c:670: error: invalid type argument of `unary *'
ltdl.c: At top level:
ltdl.c:680: error: syntax error before "size_t"
ltdl.c: In function `rpl_argz_insert':
ltdl.c:686: error: syntax error before "size_t"
ltdl.c:706: error: syntax error before "entry_len"
ltdl.c:709: error: `argz_len' undeclared (first use in this function)
ltdl.c:716: error: `offset' undeclared (first use in this function)
ltdl.c:721: error: `entry_len' undeclared (first use in this function)
ltdl.c:721: error: invalid type argument of `unary *'
ltdl.c:726: error: invalid type argument of `unary *'
ltdl.c: At top level:
ltdl.c:737: error: syntax error before "size_t"
ltdl.c: In function `rpl_argz_next':
ltdl.c:743: error: syntax error before "size_t"
ltdl.c: At top level:
ltdl.c:782: error: syntax error before "size_t"
ltdl.c: In function `rpl_argz_stringify':
ltdl.c:788: error: syntax error before "size_t"
ltdl.c: At top level:
ltdl.c:878: error: missing terminating " character
ltdl.c:878: error: syntax error before ';' token
ltdl.c:1024: error: syntax error before "size_t"
ltdl.c:1024: warning: data definition has no type or storage class
ltdl.c: In function `lt_erealloc':
ltdl.c:1035: error: syntax error before "size_t"
ltdl.c: At top level:
ltdl.c:2169: error: syntax error before "size_t"
ltdl.c:2195: error: syntax error before "size_t"
ltdl.c:2199: error: syntax error before "size_t"
ltdl.c:2202: error: syntax error before "size_t"
ltdl.c:2209: error: syntax error before "size_t"
ltdl.c: In function `tryall_dlopen_module':
ltdl.c:2496: error: syntax error before "filename_len"
ltdl.c:2508: error: `dirname_len' undeclared (first use in this function)
ltdl.c:2511: error: `filename_len' undeclared (first use in this function)
ltdl.c: In function `canonicalize_path':
ltdl.c:2600: error: syntax error before "dest"
ltdl.c:2602: error: `src' undeclared (first use in this function)
ltdl.c:2609: error: `dest' undeclared (first use in this function)
ltdl.c: In function `argzize_path':
ltdl.c:2652: error: syntax error before "size_t"
ltdl.c: In function `foreach_dirinpath':
ltdl.c:2692: error: syntax error before "lenbase"
ltdl.c:2709: error: `argz_len' undeclared (first use in this function)
ltdl.c:2716: error: syntax error before "lendir"
ltdl.c:2718: error: `lendir' undeclared (first use in this function)
ltdl.c:2718: error: `lenbase' undeclared (first use in this function)
ltdl.c: In function `find_file_callback':
ltdl.c:2773: warning: initialization discards qualifiers from pointer target type
ltdl.c: In function `trim':
ltdl.c:3031: error: syntax error before "len"
ltdl.c:3039: error: `len' undeclared (first use in this function)
ltdl.c: In function `try_dlopen':
ltdl.c:3125: warning: assignment discards qualifiers from pointer target type
ltdl.c:3128: error: syntax error before "dirlen"
ltdl.c:3130: error: `dirlen' undeclared (first use in this function)
ltdl.c:3158: error: syntax error before "line_len"
ltdl.c:3175: error: syntax error before "i"
ltdl.c:3176: error: `i' undeclared (first use in this function)
ltdl.c:3240: error: `line_len' undeclared (first use in this function)
ltdl.c:3320: warning: assignment discards qualifiers from pointer target type
ltdl.c: In function `lt_dlopenext':
ltdl.c:3487: error: syntax error before "len"
ltdl.c:3497: error: `len' undeclared (first use in this function)
ltdl.c:3498: warning: assignment discards qualifiers from pointer target type
ltdl.c: In function `lt_argz_insert':
ltdl.c:3570: error: syntax error before "size_t"
ltdl.c: In function `lt_argz_insertinorder':
ltdl.c:3603: error: syntax error before "size_t"
ltdl.c:3613: error: invalid type argument of `unary *'
ltdl.c: In function `lt_argz_insertdir':
ltdl.c:3627: error: syntax error before "size_t"
ltdl.c:3632: error: syntax error before "buf_len"
ltdl.c:3634: error: syntax error before "end_offset"
ltdl.c:3642: error: `dir_len' undeclared (first use in this function)
ltdl.c:3643: error: dereferencing pointer to incomplete type
ltdl.c:3643: error: dereferencing pointer to incomplete type
ltdl.c:3648: error: dereferencing pointer to incomplete type
ltdl.c:3659: error: dereferencing pointer to incomplete type
ltdl.c:3668: error: `end_offset' undeclared (first use in this function)
ltdl.c:3668: error: dereferencing pointer to incomplete type
ltdl.c:3669: error: `buf_len' undeclared (first use in this function)
ltdl.c:3678: error: dereferencing pointer to incomplete type
ltdl.c: In function `list_files_by_dir':
ltdl.c:3694: error: syntax error before "size_t"
ltdl.c:3696: error: `DIR' undeclared (first use in this function)
ltdl.c:3696: error: `dirp' undeclared (first use in this function)
ltdl.c:3709: warning: assignment makes pointer from integer without a cast
ltdl.c:3710: error: dereferencing pointer to incomplete type
ltdl.c: In function `foreachfile_callback':
ltdl.c:3739: error: syntax error before "argz_len"
ltdl.c:3741: error: `argz_len' undeclared (first use in this function)
ltdl.c: In function `lt_dlforeachfile':
ltdl.c:3802: error: missing terminating " character
ltdl.c:3802: error: too few arguments to function `getenv'
ltdl.c: In function `lt_dlsym':
ltdl.c:3884: error: syntax error before "lensym"
ltdl.c:3902: error: `lensym' undeclared (first use in this function)
ltdl.c: In function `lt_dlpath_insertdir':
ltdl.c:3993: error: syntax error before "argz_len"
ltdl.c:4021: error: `argz_len' undeclared (first use in this function)
ltdl.c: At top level:
/usr/include/gconv.h:176: warning: array '__data' assumed to have one element
make[2]: *** [ltdl.lo] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libtool-1.5.24/libltdl'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/directadmin/custombuild/libtool-1.5.24/libltdl'
make: *** [all-recursive] Error 1
 
Last edited:
Hello,

/usr/include/unistd.h
/usr/include/libio.h
/usr/include/string.h
/usr/include/stdio.h
etc..

are all very low level compile header files.
If those are messed up, the gcc install is likely messed up somehow.

What you would probably want to do would be to remove gcc and libraries that it requires..... and reinstall them with yum. The only catch is if any of them are required by essentiall services like sshd.

You may need a format and a do-over if it's mixed up enough.

John
 
Personally I'd rather uninstall ssh and gcc, and then reinstall both, rather than a complete rebuild. But of course that would have to be done locally to the server as well; for obvious reasons it won't work under ssh ;) . Thanks, John.

Jeff
 
Back
Top