On 11/21/13 8:46 PM, Balazs Fekete wrote: > Dear Baba, > > I have difficulties to install the grass64-mac-shlibs package with fink on a > MacOSX machine running Mavricks. > The compilation fails in the > > /sw/src/fink.build/grass64-mac-6.4.2-5/grass-6.4.2/raster/r.terraflow > > directory. When I try to run make in that directory the compiler returns four > warnings and four errors bellow. I think, this problem was also reported > compiling GRASS on Android device. Apparently the is_void function conflicts > with an is_void function from the standard CC environment. > > I hope, I provided all the information to find a fix for the package. > > Best regards, > > Balazs > > direction.cc:57:44: error: reference to 'is_void' is ambiguous > if (elevwin.get(3) < elevwin.get() && !is_void(elevwin.get(3))) dir |= > 16; > ^ > ./nodata.h:40:5: note: candidate found by name lookup is 'is_void' > int is_void(elevation_type el); > ^ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:209:46: > note: > candidate found by name lookup is 'std::__1::is_void' > template <class _Tp> struct _LIBCPP_TYPE_VIS is_void > ^ > direction.cc:59:45: error: reference to 'is_void' is ambiguous > if(elevwin.get(i) < elevwin.get() && !is_void(elevwin.get(i))) dir |= > 32<<i; > ^ > ./nodata.h:40:5: note: candidate found by name lookup is 'is_void' > int is_void(elevation_type el); > ^ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:209:46: > note: > candidate found by name lookup is 'std::__1::is_void' > template <class _Tp> struct _LIBCPP_TYPE_VIS is_void > ^ > direction.cc:60:47: error: reference to 'is_void' is ambiguous > if(elevwin.get(i+6) < elevwin.get() && !is_void(elevwin.get(6+i))) dir > |= 8>>i; > ^ > ./nodata.h:40:5: note: candidate found by name lookup is 'is_void' > int is_void(elevation_type el); > ^ > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/type_traits:209:46: > note: > candidate found by name lookup is 'std::__1::is_void' > template <class _Tp> struct _LIBCPP_TYPE_VIS is_void > ^ > 4 warnings and 4 errors generated. > make: *** [OBJ.i386-apple-darwin13.0.0/FLOAT/direction.o] Error 1 > > > > > > > > > > Package manager version: 0.36.1 > Distribution version: selfupdate-rsync Thu Nov 21 20:51:25 2013, 10.9, x86_64 > Trees: local/main stable/main > Xcode.app: 5.0.2 > Xcode command-line tools: 5.0.1.0.1.1382131676 > Max. Fink build jobs: 8 > > -- > Balazs M. Fekete > > Department of Civil Engineering, The City College of New York > CUNY Environmental CrossRoads Initiative > CUNY CREST Institute > City University of New York > 160 Convent Avenue, New York, New York, 10031, USA > Phone: 1 (212) 650-8146 > E-mail: bfek...@ccny.cuny.edu > >
That seems like the correct analysis of the problem to me, too. I've had to patch some of my own packages to deal with similar issues on 10.9. is_void() doesn't seem to be exported, so as a workaround (I'm still building up the dependencies so you might still run into a different error), you might try the editing /sw/fink/dists/stable/main/finkinfo/sci/grass64.info and change PatchScript: sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 to PatchScript: << sed 's|@PREFIX@|%p|g' < %{PatchFile} | patch -p1 sed -i.bak 's|is_void|grass_is_void|g' raster/r.terraflow/direction.cc raster/r.terraflow/nodata.cc raster/r.terraflow/nodata.h << (the second sed command should be on one line, in case my mailer ruins it). -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users