ports/173148: [maintainer][patch] math/saga: workaround for CLANG build problem
Rainer Hurling
rhurlin at gwdg.de
Sun Oct 28 08:20:02 UTC 2012
>Number: 173148
>Category: ports
>Synopsis: [maintainer][patch] math/saga: workaround for CLANG build problem
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 28 08:20:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Rainer Hurling
>Release: 10.0-CURRENT (amd64)
>Organization:
>Environment:
FreeBSD xxx.xxx.xxx 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r242173: Sat Oct 27 11:31:10 CEST 2012 xxx at xxx.xxx.xx:/usr/obj/usr/src/sys/XXX amd64
>Description:
Found on Pointyhat West CLANG exp run from 2012-10-20 that math/saga does not buid due to an error found by clang:
table.cpp:128:17: error: taking the address of a temporary object of type 'CSG_Table' [-Waddress-of-temporary]
pTable->Assign(&Get_Connection()->Get_Field_Desc(pTables->asString()));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(see http://pointyhat-west.isc.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp-clang.20121020001711.pointyhat-west/saga-2.0.8_3.log)
This error does not happen with gcc.
The SAGA GIS core team is working on a new release version. In the meantime this workaround should be enough to make CLANG systems happy, I hope.
>How-To-Repeat:
Building math/saga on a CLANG based system.
>Fix:
Force the build to use gcc instead of clang should do it for now.
Patch attached with submission follows:
--- saga.orig/Makefile 2012-08-03 14:33:55.000000000 +0200
+++ saga/Makefile 2012-10-27 21:33:47.000000000 +0200
@@ -28,6 +28,7 @@
USE_WX= 2.8
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
+USE_GCC= any
USE_AUTOTOOLS= libtool
CFLAGS+= -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list