Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 213872
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Games <games@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Arttu Valo <arttuv69@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
scorched3d-41.3-no-windows-hwnd.patch scorched3d-41.3-no-windows-hwnd.patch Removes the HWND declaration text/plain Arttu Valo 2008-03-18 23:13 0000 320 bytes Details
scorched3d-41.3-r2.ebuild scorched3d-41.3-r2.ebuild which applies the patch text/plain Arttu Valo 2008-03-18 23:16 0000 1.48 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 213872 depends on: Show dependency tree
Bug 213872 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-18 23:09 0000
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 From Arttu Valo 2008-03-18 23:13:53 0000 -------
Created an attachment (id=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 From Arttu Valo 2008-03-18 23:16:49 0000 -------
Created an attachment (id=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 From Tristan Heaven 2008-05-29 11:46:50 0000 -------
Fixed, thanks.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug