[sldev] Re: Dead code stripping causes the libjpeg to not work

Michael Miller 1337mail at gmail.com
Sat Sep 22 12:40:07 PDT 2007


I found the solution. "Don't dead-strip inits and terms" needs to be
checked as well.

-- Mike

On 9/22/07, Michael Miller <1337mail at gmail.com> wrote:
> The default settings cause the build to create a huge, bloated
> executable. Thus, I turned on dead code stripping in XCode(Mac OSX
> 10.4.10). However, the compiler(Development configuration) spits out
> 134 errors when compiling llviewerprecompiledheaders.h. The errors
> solely deal with libjpeg. I've included the (very long) error list
> below. Is this a fault of libjpeg? Anything that can be done to fix
> it?
>
> -- Mike
>
> Errors:
>
> ../../libraries/include/jpeglib/jpeglib.h:73: error: expected `)'
> before ';' token
> ../../libraries/include/jpeglib/jpeglib.h:73: error: storage class
> specifiers invalid in parameter declarations
> ../../libraries/include/jpeglib/jpeglib.h:73: error: multiple storage
> classes in declaration of 'parameter'
> ../../libraries/include/jpeglib/jpeglib.h:75: error: expected
> initializer before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:88: error: 'UINT16' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:94: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:102: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:104: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:110: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:139: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:140: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:154: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:155: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:160: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:197: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:200: error: ISO C++ forbids
> declaration of 'JOCTET' with no type
> ../../libraries/include/jpeglib/jpeglib.h:200: error: expected ';'
> before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:254: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:269: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:279: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:280: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:309: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:310: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:311: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:320: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:321: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:322: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:323: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:337: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:338: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:339: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:344: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:345: error: 'UINT16' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:346: error: 'UINT16' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:347: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:354: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:363: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:367: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:382: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:383: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:412: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:420: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:421: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:436: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:437: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:440: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:441: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:443: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:446: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:449: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:450: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:451: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:459: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:460: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:479: error: 'JSAMPARRAY'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:489: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:495: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:502: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:538: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:539: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:541: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:542: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:543: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:550: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:552: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:553: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:554: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:555: error: 'UINT16' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:556: error: 'UINT16' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:557: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:558: error: 'UINT8' does not
> name a type
> ../../libraries/include/jpeglib/jpeglib.h:560: error: 'boolean' does
> not name a type
> ../../libraries/include/jpeglib/jpeglib.h:580: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:589: error: ISO C++ forbids
> declaration of 'JSAMPLE' with no type
> ../../libraries/include/jpeglib/jpeglib.h:589: error: expected ';'
> before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:600: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:601: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:714: error: ISO C++ forbids
> declaration of 'JOCTET' with no type
> ../../libraries/include/jpeglib/jpeglib.h:714: error: expected ';'
> before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:718: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:718: error: ISO C++ forbids
> declaration of 'boolean' with no type
> ../../libraries/include/jpeglib/jpeglib.h:718: error: 'boolean'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:726: error: ISO C++ forbids
> declaration of 'JOCTET' with no type
> ../../libraries/include/jpeglib/jpeglib.h:726: error: expected ';'
> before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:730: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:730: error: ISO C++ forbids
> declaration of 'boolean' with no type
> ../../libraries/include/jpeglib/jpeglib.h:730: error: 'boolean'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:732: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:732: error: ISO C++ forbids
> declaration of 'boolean' with no type
> ../../libraries/include/jpeglib/jpeglib.h:732: error: 'boolean'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:732: error: 'int
> jpeg_source_mgr::boolean(int*)' and 'int
> jpeg_source_mgr::boolean(int*)' cannot be overloaded
> ../../libraries/include/jpeglib/jpeglib.h:762: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:762: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:762: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:762: error: ISO C++ forbids
> declaration of 'JSAMPARRAY' with no type
> ../../libraries/include/jpeglib/jpeglib.h:762: error: 'JSAMPARRAY'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:765: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:765: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:765: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:765: error: ISO C++ forbids
> declaration of 'JBLOCKARRAY' with no type
> ../../libraries/include/jpeglib/jpeglib.h:765: error: 'JBLOCKARRAY'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:768: error: 'boolean' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:768: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:768: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:768: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:774: error: 'boolean' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:774: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:774: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:774: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:781: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:781: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:781: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:781: error: 'boolean' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:781: error: ISO C++ forbids
> declaration of 'JSAMPARRAY' with no type
> ../../libraries/include/jpeglib/jpeglib.h:781: error: 'JSAMPARRAY'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:781: error: 'int
> jpeg_memory_mgr::JSAMPARRAY(int*)' and 'int
> jpeg_memory_mgr::JSAMPARRAY(int*)' cannot be overloaded
> ../../libraries/include/jpeglib/jpeglib.h:786: error: expected
> identifier before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:786: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:786: error: 'JDIMENSION' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:786: error: 'boolean' has
> not been declared
> ../../libraries/include/jpeglib/jpeglib.h:786: error: ISO C++ forbids
> declaration of 'JBLOCKARRAY' with no type
> ../../libraries/include/jpeglib/jpeglib.h:786: error: 'JBLOCKARRAY'
> declared as function returning a function
> ../../libraries/include/jpeglib/jpeglib.h:786: error: 'int
> jpeg_memory_mgr::JBLOCKARRAY(int*)' and 'int
> jpeg_memory_mgr::JBLOCKARRAY(int*)' cannot be overloaded
> ../../libraries/include/jpeglib/jpeglib.h:809: error: ISO C++ forbids
> declaration of 'boolean' with no type
> ../../libraries/include/jpeglib/jpeglib.h:809: error: typedef
> 'boolean' is initialized (use __typeof__ instead)
> ../../libraries/include/jpeglib/jpeglib.h:809: error:
> 'jpeg_marker_parser_method' was not declared in this scope
> ../../libraries/include/jpeglib/jpeglib.h:809: error: expected ',' or
> ';' before '(' token
> ../../libraries/include/jpeglib/jpeglib.h:938: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:944: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:950: error: expected ',' or
> '...' before '*' token
> ../../libraries/include/jpeglib/jpeglib.h:950: error: ISO C++ forbids
> declaration of 'JOCTET' with no type
> ../../libraries/include/jpeglib/jpeglib.h:976: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:982: error: 'JDIMENSION'
> does not name a type
> ../../libraries/include/jpeglib/jpeglib.h:1011: error:
> 'jpeg_marker_parser_method' has not been declared
>


More information about the SLDev mailing list