Bug 116149 - games/uox3 fails to build with gcc 4.2
Summary: games/uox3 fails to build with gcc 4.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-06 12:00 UTC by Scot Hetzel
Modified: 2007-09-06 22:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.61 KB, patch)
2007-09-06 12:00 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2007-09-06 12:00:08 UTC
The port fails to build due to the minimum/maximum operators ( <?, >?, ...) have been removed in GCC 4.2.

Fix: The attached patch removes the broken state for -CURRENT and updates files/patch-al to allow the min/max macros in work/dev/uox3.h to compile with GCC 4.2.



Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/games/uox3
make build
:
c++ -c -O2 -fno-strict-aliasing -pipe -march=k8 -w -funsigned-char -fconserve-space  magic.cpp -o magic.o
magic.cpp: In function 'void healtarget(int)':
magic.cpp:1287: error: expected primary-expression before '?' token
magic.cpp:1287: error: expected `:' before ';' token
magic.cpp:1287: error: expected primary-expression before ';' token
magic.cpp: In function 'void greaterhealtarget(int)':
magic.cpp:1314: error: expected primary-expression before '?' token
magic.cpp:1314: error: expected `:' before ';' token
magic.cpp:1314: error: expected primary-expression before ';' token
magic.cpp: In function 'void magicdamage(int, int)':
magic.cpp:2358: error: expected primary-expression before '?' token
magic.cpp:2358: error: expected `:' before ';' token
magic.cpp:2358: error: expected primary-expression before ';' token
magic.cpp: In function 'void directdamage(int, int)':
magic.cpp:2988: error: expected primary-expression before '?' token
magic.cpp:2988: error: expected `:' before ';' token
magic.cpp:2988: error: expected primary-expression before ';' token
gmake[1]: *** [magic.o] Error 1
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2007-09-06 22:48:25 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-09-06 22:48:41 UTC
miwi        2007-09-06 21:48:31 UTC

  FreeBSD ports repository

  Modified files:
    games/uox3           Makefile 
    games/uox3/files     patch-al 
  Log:
  - Fix build with gcc 4.2
  
  PR:             116149
  Submitted by:   Scot Hetzel <swhetzel@gmail.com>
  
  Revision  Changes    Path
  1.19      +0 -4      ports/games/uox3/Makefile
  1.2       +13 -2     ports/games/uox3/files/patch-al
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"