#3558: fails to build from source on non-x86 platforms
-------------------------------------+---------------------------
        Reporter:  pabs              |       Type:  bug
          Status:  new               |   Priority:  normal
       Milestone:  unspecified       |  Component:  Engine: other
         Version:  3.1 beta11        |   Keywords:  FTBFS
      Blocked By:                    |   Blocking:
Operating System:  All/Non-Specific  |
-------------------------------------+---------------------------
 It seems that x86-specific code was added to the exception handler in 3.1,
 all the Debian 3.1 builds failed with the same error on non-x86 platforms:

 https://buildd.debian.org/status/package.php?p=warzone2100

 {{{
 g++ -DHAVE_CONFIG_H -I. -I../..  -D_GNU_SOURCE=1 -D_REENTRANT
 -I/usr/include/SDL   -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DNDEBUG
 -DWZ_DATADIR="\"/usr/share/games/warzone2100\""
 -DLOCALEDIR="\"/usr/share/locale\"" -I../.. -DQT_SHARED -I/usr/include/qt4
 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
 -I/usr/include/qt4/QtScript   -D_FORTIFY_SOURCE=2 -g -Wno-enum-compare
 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wcast-align
 -Wwrite-strings -Wpointer-arith -Wno-format-security -DQT_SHARED
 -I/usr/include/qt4 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
 -I/usr/include/qt4/QtScript   -g -O2 -fPIE -fstack-protector --param=ssp-
 buffer-size=4 -Wformat -Werror=format-security -fstack-protector -c -o
 exceptionhandler.o exceptionhandler.cpp
 exceptionhandler.cpp: In function 'bool gdbExtendedBacktrace(int, const
 ucontext_t*)':
 exceptionhandler.cpp:500:48: error: 'const mcontext_t' has no member named
 'gregs'
 exceptionhandler.cpp:500:54: error: 'REG_EBP' was not declared in this
 scope
 exceptionhandler.cpp:512:56: error: 'const mcontext_t' has no member named
 'gregs'
 exceptionhandler.cpp:512:62: error: 'REG_EIP' was not declared in this
 scope
 make[4]: *** [exceptionhandler.o] Error 1
 }}}

 It appears that this commit is responsible for breaking this, it assumes
 x86 registers are present:

 https://developer.wz2100.net/changeset/e7d17ecda05515f4bfc9b95ebc9f0fbcaabf45b2

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3558>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Warzone2100-project mailing list
Warzone2100-project@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to