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
State Changed From-To: open->closed Committed. Thanks!
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"