libjpeg src prob parse errors
Posted: Fri Mar 11, 2005 1:19 am
Lots of em too, any ideas on why this would be doing something like this? (this is straight from CVS so I am not sure if it was ever completed or not)
also had this problem with libpng:
taking out the \ , CRs and extra spaces resolved the issue for the most part at any rate.
Could these be a problem with my local install of the GCC/SDK?
Also, I think there is a redundancy in the sdk/toolchain:
Code: Select all
Cory@home /usr/local/ps2dev/ps2sdk-ports/libjpeg
$ make
make -C src
make[1]: Entering directory `/usr/local/ps2dev/ps2sdk-ports/libjpeg/src'
ee-gcc -D_EE -O2 -G0 -Wall -I/usr/local/ps2dev/ps2sdk/ee/include -I/usr/local/p
s2dev/ps2sdk/common/include -I. -I../include -c jcapimin.c -o jcapimin.o
In file included from jcapimin.c:39:
jinclude.h:177: parse error before "size_t"
In file included from jcapimin.c:41:
../include/jpeglib.h:137: parse error before '*' token
../include/jpeglib.h:137: warning: type defaults to `int' in declaration of `JSAMPROW'
../include/jpeglib.h:137: warning: data definition has no type or storage class
../include/jpeglib.h:139: parse error before '*' token
../include/jpeglib.h:139: warning: type defaults to `int' in declaration of `JSAMPARRAY'
../include/jpeglib.h:139: warning: data definition has no type or storage class
../include/jpeglib.h:141: parse error before '*' token
../include/jpeglib.h:141: warning: type defaults to `int' in declaration of `JSAMPIMAGE'
../include/jpeglib.h:141: warning: data definition has no type or storage class
../include/jpeglib.h:511: syntax error before "struct"
../include/jpeglib.h:963: parse error before "JSAMPARRAY"
../include/jpeglib.h:963: warning: no semicolon at end of struct or union
../include/jpeglib.h:1183: parse error before '*' token
../include/jpeglib.h:1183: warning: type defaults to `int' in declaration of `sample_range_limit'
../include/jpeglib.h:1183: warning: data definition has no type or storage class
../include/jpeglib.h:1245: warning: `main' is usually a function
../include/jpeglib.h:1265: parse error before '}' token
../include/jpeglib.h:1533: parse error before "JSAMPARRAY"
../include/jpeglib.h:1533: warning: no semicolon at end of struct or union
../include/jpeglib.h:1575: parse error before '*' token
../include/jpeglib.h:1575: warning: type defaults to `int' in declaration of `JSAMPARRAY'
../include/jpeglib.h:1575: `JSAMPARRAY' declared as function returning a function
../include/jpeglib.h:1575: `JSAMPARRAY' redeclared as different kind of symbol
../include/jpeglib.h:139: previous declaration of `JSAMPARRAY'
../include/jpeglib.h:1575: warning: data definition has no type or storage class
../include/jpeglib.h:1611: parse error before '}' token
../include/jpeglib.h:1795: parse error before '(' token
../include/jpeglib.h:1795: warning: type defaults to `int' in declaration of `jpeg_CreateCompress'
../include/jpeglib.h:1885: parse error before "JSAMPARRAY"
../include/jpeglib.h:1897: parse error before "JSAMPIMAGE"
../include/jpeglib.h:1961: parse error before "JSAMPARRAY"
../include/jpeglib.h:1973: parse error before "JSAMPIMAGE"
In file included from ../include/jpeglib.h:2189,
from jcapimin.c:41:
jpegint.h:113: parse error before "JSAMPARRAY"
jpegint.h:137: parse error before "JSAMPARRAY"
jpegint.h:151: parse error before "JSAMPIMAGE"
jpegint.h:167: parse error before "JSAMPARRAY"
jpegint.h:185: parse error before "JSAMPIMAGE"
jpegint.h:211: parse error before "JSAMPARRAY"
jpegint.h:317: parse error before "JSAMPARRAY"
jpegint.h:335: parse error before "JSAMPIMAGE"
jpegint.h:363: parse error before "JSAMPIMAGE"
jpegint.h:439: parse error before "JSAMPARRAY"
jpegint.h:473: parse error before "JSAMPIMAGE"
jpegint.h:493: parse error before "JSAMPIMAGE"
jpegint.h:509: parse error before "JSAMPARRAY"
jpegint.h:743: parse error before "input_array"
In file included from ../include/jpeglib.h:2191,
from jcapimin.c:41:
jerror.h:411: parse error before '->' token
jerror.h:535: warning: type defaults to `int' in declaration of `_mp'
jerror.h:535: `p1' undeclared here (not in a function)
jerror.h:535: warning: data definition has no type or storage class
jerror.h:535: warning: type defaults to `int' in declaration of `_mp'
jerror.h:535: conflicting types for `_mp'
jerror.h:535: previous declaration of `_mp'
jerror.h:535: `p2' undeclared here (not in a function)
jerror.h:535: warning: data definition has no type or storage class
jerror.h:535: warning: type defaults to `int' in declaration of `_mp'
jerror.h:535: conflicting types for `_mp'
jerror.h:535: previous declaration of `_mp'
jerror.h:535: `p3' undeclared here (not in a function)
jerror.h:535: warning: data definition has no type or storage class
jerror.h:535: parse error before '->' token
jerror.h:535: parse error before '->' token
jerror.h:545: warning: type defaults to `int' in declaration of `_mp'
jerror.h:545: conflicting types for `_mp'
jerror.h:535: previous declaration of `_mp'
jerror.h:545: `p1' undeclared here (not in a function)
jerror.h:545: warning: data definition has no type or storage class
jerror.h:545: warning: type defaults to `int' in declaration of `_mp'
jerror.h:545: conflicting types for `_mp'
jerror.h:545: previous declaration of `_mp'
jerror.h:545: `p2' undeclared here (not in a function)
jerror.h:545: warning: data definition has no type or storage class
jerror.h:545: warning: type defaults to `int' in declaration of `_mp'
jerror.h:545: conflicting types for `_mp'
jerror.h:545: previous declaration of `_mp'
jerror.h:545: `p3' undeclared here (not in a function)
jerror.h:545: warning: data definition has no type or storage class
jerror.h:545: warning: type defaults to `int' in declaration of `_mp'
jerror.h:545: conflicting types for `_mp'
jerror.h:545: previous declaration of `_mp'
jerror.h:545: `p4' undeclared here (not in a function)
jerror.h:545: warning: data definition has no type or storage class
jerror.h:545: parse error before '->' token
jerror.h:545: parse error before '->' token
jerror.h:557: warning: type defaults to `int' in declaration of `_mp'
jerror.h:557: conflicting types for `_mp'
jerror.h:545: previous declaration of `_mp'
jerror.h:557: `p1' undeclared here (not in a function)
jerror.h:557: warning: data definition has no type or storage class
jerror.h:557: warning: type defaults to `int' in declaration of `_mp'
jerror.h:557: conflicting types for `_mp'
jerror.h:557: previous declaration of `_mp'
jerror.h:557: `p2' undeclared here (not in a function)
jerror.h:557: warning: data definition has no type or storage class
jerror.h:557: warning: type defaults to `int' in declaration of `_mp'
jerror.h:557: conflicting types for `_mp'
jerror.h:557: previous declaration of `_mp'
jerror.h:557: `p3' undeclared here (not in a function)
jerror.h:557: warning: data definition has no type or storage class
jerror.h:557: warning: type defaults to `int' in declaration of `_mp'
jerror.h:557: conflicting types for `_mp'
jerror.h:557: previous declaration of `_mp'
jerror.h:557: `p4' undeclared here (not in a function)
jerror.h:557: warning: data definition has no type or storage class
jerror.h:557: warning: type defaults to `int' in declaration of `_mp'
jerror.h:557: conflicting types for `_mp'
jerror.h:557: previous declaration of `_mp'
jerror.h:557: `p5' undeclared here (not in a function)
jerror.h:557: warning: data definition has no type or storage class
jerror.h:557: parse error before '->' token
jerror.h:557: parse error before '->' token
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:557: previous declaration of `_mp'
jerror.h:569: `p1' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p2' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p3' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p4' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p5' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p6' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p7' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: warning: type defaults to `int' in declaration of `_mp'
jerror.h:569: conflicting types for `_mp'
jerror.h:569: previous declaration of `_mp'
jerror.h:569: `p8' undeclared here (not in a function)
jerror.h:569: warning: data definition has no type or storage class
jerror.h:569: parse error before '->' token
jerror.h:569: parse error before '->' token
jcapimin.c:99: `cinfo' undeclared here (not in a function)
jcapimin.c:101: parse error before '(' token
jcapimin.c:101: warning: type defaults to `int' in declaration of `memset'
jcapimin.c:101: warning: parameter names (without types) in function declaration
jcapimin.c:101: `memset' declared as function returning a function
jcapimin.c:101: parse error before numeric constant
jcapimin.c:115: parse error before '(' token
jcapimin.c: In function `jpeg_finish_compress':
jcapimin.c:301: structure has no member named `global_state'
jcapimin.c:303: structure has no member named `global_state'
jcapimin.c:313: structure has no member named `global_state'
jcapimin.c:325: structure has no member named `progress'
jcapimin.c:327: structure has no member named `progress'
jcapimin.c:329: structure has no member named `progress'
jcapimin.c:331: structure has no member named `progress'
jcapimin.c:341: called object is not a function
jcapimin.c: In function `jpeg_write_marker':
jcapimin.c:395: structure has no member named `global_state'
jcapimin.c:397: structure has no member named `global_state'
jcapimin.c:399: structure has no member named `global_state'
jcapimin.c: In function `jpeg_write_m_header':
jcapimin.c:433: structure has no member named `global_state'
jcapimin.c:435: structure has no member named `global_state'
jcapimin.c:437: structure has no member named `global_state'
jcapimin.c: In function `jpeg_write_tables':
jcapimin.c:511: structure has no member named `global_state'
jcapimin.c:519: structure has no member named `err'
make[1]: *** [jcapimin.o] Error 1
make[1]: Leaving directory `/usr/local/ps2dev/ps2sdk-ports/libjpeg/src'
make: *** [all-src] Error 2
Code: Select all
#if defined(PNG_READ_USER_TRANSFORM_SUPPORTED) || \
defined(PNG_WRITE_USER_TRANSFORM_SUPPORTED)
# ifndef PNG_NO_USER_TRANSFORM_PTR
Could these be a problem with my local install of the GCC/SDK?
Also, I think there is a redundancy in the sdk/toolchain:
Code: Select all
/usr/local/ps2dev/ps2sdk/ee/include/time.h:17: warning: redefinition of `clock_t'
/usr/local/ps2dev/ee/ee/sys-include/sys/types.h:66: warning: `clock_t' previously declared here