Opened 6 years ago

Closed 6 years ago

#10918 closed defect (invalid)

AMIGAOS4: SDL1 builds break in png with compiler error

Reported by: raziel- Owned by: raziel-
Priority: normal Component: Port: AmigaOS4
Version: Keywords:
Cc: Game:

Description

Latest sources

C++ backends/graphics/opengl/opengl-graphics.o

In file included from ./image/png.h:36,

from backends/graphics/opengl/opengl-graphics.cpp:48:

./image/image_decoder.h:37:11: error: 'namespace Image { }' redeclared as different kind of symbol

namespace Image {


In file included from /SDK/include/include_h/intuition/intuitionbase.h:24,

from /SDK/include/include_h/proto/intuition.h:17,
from /SDK/local/newlib/include/SDL/SDL_syswm.h:55,
from ./backends/platform/sdl/sdl-sys.h:147,
from ./backends/graphics/opengl/opengl-sys.h:30,
from ./backends/graphics/opengl/opengl-graphics.h:26,
from backends/graphics/opengl/opengl-graphics.cpp:24:

/SDK/include/include_h/intuition/intuition.h:754:8: note: previous declaration 'struct Image'

struct Image


In file included from backends/graphics/opengl/opengl-graphics.cpp:48:
./image/png.h:47:11: error: 'namespace Image { }' redeclared as different kind of symbol

namespace Image {


In file included from /SDK/include/include_h/intuition/intuitionbase.h:24,

from /SDK/include/include_h/proto/intuition.h:17,
from /SDK/local/newlib/include/SDL/SDL_syswm.h:55,
from ./backends/platform/sdl/sdl-sys.h:147,
from ./backends/graphics/opengl/opengl-sys.h:30,
from ./backends/graphics/opengl/opengl-graphics.h:26,
from backends/graphics/opengl/opengl-graphics.cpp:24:

/SDK/include/include_h/intuition/intuition.h:754:8: note: previous declaration 'struct Image'

struct Image


backends/graphics/opengl/opengl-graphics.cpp: In member function 'bool OpenGL::OpenGLGraphicsManager::saveScreenshot(const Common::String&) const':
backends/graphics/opengl/opengl-graphics.cpp:1225:16: error: 'writePNG' is not a member of 'Image'

return Image::writePNG(out, data, true);

~

gmake: * [backends/graphics/opengl/opengl-graphics.o] Error 1

gcc (adtools build 8.3.0) 8.3.0
AmigaOS4 - PPC - SDL - BE

Change History (3)

comment:1 by digitall, 6 years ago

Component: --Unset--Port: AmigaOS4
Summary: Compiler: [AmigaOS4] SDL1 builds break in png with compiler errorAMIGAOS4: SDL1 builds break in png with compiler error

comment:2 by lotharsm, 6 years ago

Have you tried to bisect the codebase to check which commit introduced this regression?

comment:3 by raziel-, 6 years ago

Owner: set to raziel-
Resolution: invalid
Status: newclosed

Sorry for the noise.

I was so tangled up with testing the LTO flag and at the same time switching between SDL versions and apps, that i mixed up scummvm and residualvm.

Closed as invalid, this is a residualvm only issue.

Note: See TracTickets for help on using tickets.