Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213872 - games-strategy/scorched3d-41.3-r1 fails to compile with wxGTK USE=odbc
Summary: games-strategy/scorched3d-41.3-r1 fails to compile with wxGTK USE=odbc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-18 23:09 UTC by Arttu Valo
Modified: 2008-05-29 11:46 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scorched3d-41.3-no-windows-hwnd.patch Removes the HWND declaration (scorched3d-41.3-no-windows-hwnd.patch,320 bytes, text/plain)
2008-03-18 23:13 UTC, Arttu Valo
Details
scorched3d-41.3-r2.ebuild which applies the patch (scorched3d-41.3-r2.ebuild,1.48 KB, text/plain)
2008-03-18 23:16 UTC, Arttu Valo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arttu Valo 2008-03-18 23:09:18 UTC
When attempting to compile the latest games-strategy/scorched3d-41.3-r1 on an amd64 system (at least with mysql use flag enabled), the compilation will end as follows:

/usr/include/sqltypes.h:71: error: conflicting declaration 'typedef void* HWND'
../porting/windows.h:23: error: 'HWND' has a previous declaration as 'typedef int HWND'
x86_64-pc-linux-gnu-g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"scorched3d\" -DVERSION=\"41\" -DHAVE_OGG=1 -DHAVE_VSNPRINTF=1 -DHAVE_SNPRINTF=1 -DHAVE_VASPRINTF=1 -DHAVE_ASPRINTF=1 -DHAVE_ICONV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ICONV_H=1 -I.  -I../porting -I.. -I/usr/lib64/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_IODBC_ -D__WXGTK__ -pthread -I/usr/include/freetype2 -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/X11R6/include -I/usr/X11R6 -I/usr/local/include  -O2 -march=k8 -fomit-frame-pointer -pipe -DS3D_DOCDIR=\"/usr/share/doc/scorched3d-41.3-r1\" -DS3D_DATADIR=\"/usr/share/games/scorched3d\" -DS3D_BINDIR=\"/usr/games/bin\" -c -o ModFiles.o `test -f '../engine/ModFiles.cpp' || echo './'`../engine/ModFiles.cpp

It appears to be due to a rogue and unnecessary (on non-Windows systems) HWND declaration in windows.h. I'll attach a minimal patch below, which fixes the issue.
Comment 1 Arttu Valo 2008-03-18 23:13:53 UTC
Created attachment 146534 [details]
scorched3d-41.3-no-windows-hwnd.patch Removes the HWND declaration

Removes the excess HWND declaration which blocks compilation on amd64 with mysql flag enabled.
Comment 2 Arttu Valo 2008-03-18 23:16:49 UTC
Created attachment 146535 [details]
scorched3d-41.3-r2.ebuild which applies the patch

Upgraded ebuild from scorched-41.3-r1 to -r2, with changes which apply the patch.
Comment 3 Tristan Heaven (RETIRED) gentoo-dev 2008-05-29 11:46:50 UTC
Fixed, thanks.