[ scummvm-Bugs-1436178 ] Conflicting declaration of int8_t on Solaris
SourceForge.net
noreply at sourceforge.net
Tue Feb 21 22:12:45 CET 2006
Bugs item #1436178, was opened at 2006-02-21 22:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1436178&group_id=37116
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unknown Crash/Other
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: laurent (lblume)
Assigned to: Nobody/Anonymous (nobody)
Summary: Conflicting declaration of int8_t on Solaris
Initial Comment:
Build fails on Solaris 10 because of the following
declaration conflict.
In file included from ./engines/sword1/animation.h:26,
from engines/sword1/animation.cpp:26:
./graphics/animation.h:35: error: conflicting
declaration 'typedef int8 int8_t'
/usr/include/sys/int_types.h:54: error: 'int8_t' has a
previous declaration as `typedef char int8_t'
./graphics/animation.h:35: error: declaration of
`typedef int8 int8_t'
/usr/include/sys/int_types.h:54: error: conflicts with
previous declaration `typedef char int8_t'
./graphics/animation.h:35: error: declaration of
`typedef int8 int8_t'
/usr/include/sys/int_types.h:54: error: conflicts with
previous declaration `typedef char int8_t'
gmake: *** [engines/sword1/animation.o] Error 1
This is because in config.h, int8 is defined as:
typedef signed char int8;
but it is already declared differently in int_types.h:
#if defined(_CHAR_IS_SIGNED)
typedef char int8_t;
The compiler doesn't like the difference, even if it
amounts to the same.
As a quick workaround, I modify config.h before
building, and it works. I don't know what would be a
clean solution, though.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=1436178&group_id=37116
More information about the Scummvm-tracker
mailing list