Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127400 - build errors in pose-3.5-r4
Summary: build errors in pose-3.5-r4
Status: RESOLVED DUPLICATE of bug 91501
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-24 02:34 UTC by Simon Ruggier
Modified: 2006-03-25 23:20 UTC (History)
2 users (show)

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


Attachments
pose-3.5-r5.ebuild (pose-3.5-r5.ebuild,2.21 KB, text/plain)
2006-03-24 02:35 UTC, Simon Ruggier
Details
pose-3.5-typename-fix.patch (pose-3.5-typename-fix.patch,1.74 KB, patch)
2006-03-24 02:35 UTC, Simon Ruggier
Details | Diff
pose-3.5-protected-fix.patch (pose-3.5-protected-fix.patch,4.78 KB, patch)
2006-03-24 02:36 UTC, Simon Ruggier
Details | Diff
pose-3.5-r5.ebuild (pose-3.5-r5.ebuild,2.24 KB, text/plain)
2006-03-24 02:48 UTC, Simon Ruggier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Ruggier 2006-03-24 02:34:30 UTC
As seen below, a fairly trivial bug caused by the increased strictness of newer gcc (so google tells me: http://torque.oncloud8.com/archives/000113.html):

g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=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_ENDIAN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TYPE_SOCKLEN_T=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_MKDIR=1 -DHAVE_MKSTEMP=1 -DHAVE_TEMPNAM=1 -DHAVE_LIBFLTK=1  -I. -I../BuildUnix  -I../BuildUnix/../SrcShared -I../BuildUnix/../SrcShared/Hardware -I../BuildUnix/../SrcShared/Hardware/TRG -I../BuildUnix/../SrcShared/Palm/Device -I../BuildUnix/../SrcShared/Palm/Platform -I../BuildUnix/../SrcShared/Palm/Platform/Core/Hardware/IncsPrv -I../BuildUnix/../SrcShared/Palm/Platform/Core/System/IncsPrv -I../BuildUnix/../SrcShared/Palm/Platform/Incs -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/Hardware -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/System -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/UI -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Libraries -I../BuildUnix/../SrcShared/Gzip -I../BuildUnix/../SrcShared/jpeg -I../BuildUnix/../SrcShared/omnithread -I../BuildUnix/../SrcShared/Patches -I../BuildUnix/../SrcShared/UAE -I../BuildUnix/../SrcUnix -I../BuildUnix/../SrcUnix/espws-2.0  -I/var/tmp/portage/pose-3.5-r4/work/Emulator_Src_3.5/install-fltk/include  -DFLTK_1_0_COMPAT -DPLATFORM_UNIX=1 -D__PALMOS_TRAPS__=0 -DEMULATION_LEVEL=EMULATION_UNIX -O2 -fno-strict-aliasing  -DHAS_PROFILING=0 -DNDEBUG  -fexceptions -Wall -Wno-multichar -Wno-unknown-pragmas -Wno-conversion    -D_REENTRANT -DNoNanoSleep -DPthreadDraftVersion=10  -c ../BuildUnix/../SrcUnix/EmDirRefUnix.cpp
In file included from ../BuildUnix/../SrcShared/CGremlins.h:17,
                 from ../BuildUnix/../SrcShared/Hordes.h:19,
                 from ../BuildUnix/../SrcShared/Logging.h:17,
                 from ../BuildUnix/../SrcShared/EmDlg.h:23,
                 from ../BuildUnix/../SrcUnix/EmDlgFltk.h:17,
                 from ../BuildUnix/../SrcUnix/EmApplicationFltk.cpp:17:
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::deque<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:93: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:94: error: `iter' was not declared in this scope
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::list<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:111: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:112: error: `iter' was not declared in this scope
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator>>(std::vector<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:129: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:130: error: `iter' was not declared in this scope
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::deque<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:146: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:147: error: `iter' was not declared in this scope
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::list<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:163: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:164: error: `iter' was not declared in this scope
../BuildUnix/../SrcShared/EmStream.h: In member function `EmStream& EmStream::operator<<(const std::vector<T, std::allocator<_CharT> >&)':
../BuildUnix/../SrcShared/EmStream.h:180: error: expected `;' before "iter"
../BuildUnix/../SrcShared/EmStream.h:181: error: `iter' was not declared in this scope
../BuildUnix/../SrcUnix/EmApplicationFltk.h: In constructor `EmApplicationFltk::EmApplicationFltk()':
../BuildUnix/../SrcUnix/EmApplicationFltk.h:44: warning: `EmApplicationFltk::fClipboardWidget' will be initialized after
../BuildUnix/../SrcUnix/EmApplicationFltk.h:43: warning:   `EmWindowFltk*EmApplicationFltk::fAppWindow'
../BuildUnix/../SrcUnix/EmApplicationFltk.cpp:120: warning:   when initialized here
make[1]: *** [EmApplicationFltk.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/pose-3.5-r4/work/Emulator_Src_3.5/build-normal'
make: *** [all-recursive] Error 1


I made a patch for the above error, and then encountered this one:

g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=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_ENDIAN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TYPE_SOCKLEN_T=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_MKDIR=1 -DHAVE_MKSTEMP=1 -DHAVE_TEMPNAM=1 -DHAVE_LIBFLTK=1  -I. -I../BuildUnix  -I../BuildUnix/../SrcShared -I../BuildUnix/../SrcShared/Hardware -I../BuildUnix/../SrcShared/Hardware/TRG -I../BuildUnix/../SrcShared/Palm/Device -I../BuildUnix/../SrcShared/Palm/Platform -I../BuildUnix/../SrcShared/Palm/Platform/Core/Hardware/IncsPrv -I../BuildUnix/../SrcShared/Palm/Platform/Core/System/IncsPrv -I../BuildUnix/../SrcShared/Palm/Platform/Incs -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/Hardware -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/System -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Core/UI -I../BuildUnix/../SrcShared/Palm/Platform/Incs/Libraries -I../BuildUnix/../SrcShared/Gzip -I../BuildUnix/../SrcShared/jpeg -I../BuildUnix/../SrcShared/omnithread -I../BuildUnix/../SrcShared/Patches -I../BuildUnix/../SrcShared/UAE -I../BuildUnix/../SrcUnix -I../BuildUnix/../SrcUnix/espws-2.0  -I/var/tmp/portage/pose-3.5-r5/work/Emulator_Src_3.5/install-fltk/include  -DFLTK_1_0_COMPAT -DPLATFORM_UNIX=1 -D__PALMOS_TRAPS__=0 -DEMULATION_LEVEL=EMULATION_UNIX -O2 -fno-strict-aliasing  -DHAS_PROFILING=0 -DNDEBUG  -fexceptions -Wall -Wno-multichar -Wno-unknown-pragmas -Wno-conversion    -D_REENTRANT -DNoNanoSleep -DPthreadDraftVersion=10  -c ../BuildUnix/../SrcShared/Hardware/EmRegsEZVisor.cpp
../BuildUnix/../SrcShared/Hardware/EmRegsEZTRGpro.cpp: In member function `virtual void EmRegsEZTRGpro::SetSubBankHandlers()':
../BuildUnix/../SrcShared/Hardware/EmRegs.h:57: error: `uint32 EmRegs::StdRead(emuptr, int)' is protected
../BuildUnix/../SrcShared/Hardware/EmRegsEZTRGpro.cpp:232: error: within this context
make[1]: *** [EmRegsEZTRGpro.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/pose-3.5-r5/work/Emulator_Src_3.5/build-normal'
make: *** [all-recursive] Error 1

This error required a workaround to access the protected member, and the error happened in multiple files, so I put that in another patch.

While I was at it, I also added three USE flags:

opengl
profile        include gprof profiling
palm-profile   include profiling of Palm applications
Comment 1 Simon Ruggier 2006-03-24 02:35:37 UTC
Created attachment 82991 [details]
pose-3.5-r5.ebuild
Comment 2 Simon Ruggier 2006-03-24 02:35:59 UTC
Created attachment 82992 [details, diff]
pose-3.5-typename-fix.patch
Comment 3 Simon Ruggier 2006-03-24 02:36:25 UTC
Created attachment 82993 [details, diff]
pose-3.5-protected-fix.patch
Comment 4 Simon Ruggier 2006-03-24 02:48:57 UTC
Created attachment 82994 [details]
pose-3.5-r5.ebuild

added a debug USE flag as well :)
Comment 5 Jordi Vilalta 2006-03-25 17:37:30 UTC
It seems to be a duplicate of #91501 and #111432?
Comment 6 Simon Ruggier 2006-03-25 23:20:44 UTC
(In reply to comment #5)
> It seems to be a duplicate of #91501 and #111432?
> 

111432 is a different and obsolete bug, but yes, it's a dupe of 91501.  My patch for the protected member issue is also a bit redundant in that I didn't need to make wrapper functions for it to work.  I do think the palm-profile and debug USE flags I added are essential though, the whole reason I wanted pose in the first place was to profile code.

*** This bug has been marked as a duplicate of 91501 ***