Bug#750330: opencity: FTBFS: extensionmanager.cpp:45:86: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]

David Suárez david.sephirot at gmail.com
Mon Jun 2 18:15:43 UTC 2014


Source: opencity
Version: 0.0.6.4stable-3
Severity: serious
Tags: jessie sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20140601 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H -I. -I..  -I../src/ -I../src/binreloc/ -I../src/enum/ -I../src/mas/ -I../src/mapgen/ -I../src/model/ -I../src/networking/ -I../src/pngfuncs/ -I../src/simulator/ -I../src/structure/ -I../src/tinyxpath/ -I../src/triangulation/ -DDATADIR=\"/usr/share/games\" -DSYSCONFDIR=\"/etc\" -I/usr/X11R6/include  -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12   -std=c++98 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -c -o extensionmanager.o extensionmanager.cpp
> extensionmanager.cpp: In member function 'bool ExtensionManager::Load()':
> extensionmanager.cpp:45:86: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]
>   this->glTexImage3D = (PFNGLTEXIMAGE3DEXTPROC)SDL_GL_GetProcAddress("glTexImage3DEXT");
>                                                                                       ^
> extensionmanager.cpp:49:84: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]
>    this->glTexImage3D = (PFNGLTEXIMAGE3DEXTPROC)SDL_GL_GetProcAddress("glTexImage3D");
>                                                                                     ^
> cc1plus: some warnings being treated as errors
> make[4]: *** [extensionmanager.o] Error 1

The full build log is available from:
   http://aws-logs.debian.net/ftbfs-logs/2014/06/01/opencity_0.0.6.4stable-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-games-devel mailing list