Bug 115694 - devel/gccxml won't compile on 7.0 due to new restrictions on casting lvalues
Summary: devel/gccxml won't compile on 7.0 due to new restrictions on casting lvalues
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: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-21 22:00 UTC by Coleman Kane
Modified: 2007-08-28 10:37 UTC (History)
0 users

See Also:


Attachments
file.diff (900 bytes, patch)
2007-08-21 22:00 UTC, Coleman Kane
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Coleman Kane freebsd_committer freebsd_triage 2007-08-21 22:00:03 UTC
When FreeBSD 7.0 was moved to GCC 4.2.0, the port devel/gccxml was broken. This was due to a compiler restriction that no longer allows the following constructs:

*((int*)not_int_array_ptr)++;

The new compiler rules do not allow for casted types to be lvalues. Rather, you must cast the rvalue to the type of the lvalue to get it to compile.

In addition, as added severity, the WITH_PYSTE option to devel/boost depends upon devel/gccxml.

Fix: Attached patch that forces the compiler to be GCC 3.4 where OSVERSION >= 700000, rather than BROKENing it on that arch.

Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/devel/gccxml && make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-08-21 22:00:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

Over to maintainer
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2007-08-28 10:37:01 UTC
State Changed
From-To: open->closed

Committed; thanks for the patch!