math/saga: does not build after recent changes on 10.0 and HEAD

Rainer Hurling rhurlin at gwdg.de
Sun Oct 20 16:11:27 UTC 2013


Am 19.10.2013 10:22, schrieb Rainer Hurling:
> I am the maintainer of math/saga (SAGA GIS). For a few weeks now
> math/saga does not build anymore on 10.0 and HEAD. Until mid of
> September, it builts fine on all my 10.0-CURRENT boxes.
> 
> Now I get errors, which I did not have seen before and which are also
> mentioned for example at
> 
> http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-10-17_23h06m42s/logs/saga-2.1.0_2.log
> 
> 
> As proposed by the error message, I added the following to the ports
> Makefile:
> 
> CXXFLAGS+=	-std=c++0x
> 
> Now the build continuous, but runs into new problems a bit later. Here
> again, x11-toolkits/wxgtk29 is involved:
> 
> 
> [..snip..]
> Making all in saga_api
> /bin/sh ../../../libtool  --tag=CXX    --mode=compile g++46
> -DHAVE_CONFIG_H  -I. -I../../..     -fPIC -Wall
> `/usr/local/bin/wxgtk2u-2.9-config --unicode=yes --cxxflags`
> -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD
> -D_SAGA_API_EXPORTS     -O2 -pipe -I/usr/local/include
> -D_SAGA_DONOTUSE_HARU -Wl,-rpath=/usr/local/lib/gcc46
> -fno-strict-aliasing -std=c++0x -Wl,-rpath=/usr/local/lib/gcc46 -MT
> api_callback.lo -MD -MP -MF .deps/api_callback.Tpo -c -o api_callback.lo
> api_callback.cpp
> libtool: compile:  g++46 -DHAVE_CONFIG_H -I. -I../../.. -fPIC -Wall
> -I/usr/local/lib/wx/include/gtk2-unicode-2.9 -I/usr/local/include/wx-2.9
> -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_THREAD_SAFE
> -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD
> -D_SAGA_API_EXPORTS -O2 -pipe -I/usr/local/include -D_SAGA_DONOTUSE_HARU
> -Wl,-rpath=/usr/local/lib/gcc46 -fno-strict-aliasing -std=c++0x
> -Wl,-rpath=/usr/local/lib/gcc46 -MT api_callback.lo -MD -MP -MF
> .deps/api_callback.Tpo -c api_callback.cpp  -fPIC -DPIC -o
> .libs/api_callback.o
> In file included from /usr/local/include/wx-2.9/wx/crt.h:20:0,
>                  from /usr/local/include/wx-2.9/wx/string.h:4353,
>                  from /usr/local/include/wx-2.9/wx/stdpaths.h:17,
>                  from api_callback.cpp:66:
> /usr/local/include/wx-2.9/wx/wxcrt.h: In function 'long long int
> wxStrtoll(const char*, char**, int)':
> /usr/local/include/wx-2.9/wx/wxcrt.h:904:1: error: 'strtoll' was not
> declared in this scope
> /usr/local/include/wx-2.9/wx/wxcrt.h: In function 'long long unsigned
> int wxStrtoull(const char*, char**, int)':
> /usr/local/include/wx-2.9/wx/wxcrt.h:905:1: error: 'strtoull' was not
> declared in this scope
> *** Error code 1
> Stop.
> make[6]: stopped in
> /usr/ports/math/saga_svn/work/saga-gis/src/saga_core/saga_api
> [..snip..]

After some further investigation I found a hint at
http://trac.wxwidgets.org/ticket/11012 . The not declared 'strtoull'
seems to be a consequence of using '-std=c++0x' (see above), while this
long long function needs C99?

I really could need some help with this. Many thanks in advance,
Rainer Hurling

> I suspect the changes in 10.0 and HEAD of the last weeks to be liable
> for this? But I have no clue what to do to correct the port.
> 
> Any help is really appreciated. Please let me know, if I should give
> more information or test something.
> 
> Thanks in advance,
> Rainer Hurling



More information about the freebsd-ports mailing list