On Fri, 04 Apr 2014 19:45:44 -0700, Alexander Hansen <alexanderk.han...@gmail.com> wrote: > > The update shouldn't change this particular issue, though, since it's > due to a change in the system include paths. When I tried a tweak to > ensure that /usr/include/c++/4.2.1/ext/stdio_filebuf.h got brought > in, the build failed: > > g++ -DHAVE_CONFIG_H -I. -I.. -I.. -DLOCALEDIR=\"/sw/share/locale\" > -I/sw/include/glibmm-2.4 -I/sw/lib/glibmm-2.4/include > -I/sw/include/sigc++-2.0 -I/sw/lib/sigc++-2.0/include > -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include > -I/sw/include/pango-1.0 -I/sw/include -Wall -Wno-unused -Os -MT > value.lo -MD -MP -MF .deps/value.Tpo -c value.cc -fno-common -DPIC > -o .libs/value.o > value.cc:135:12: error: use of undeclared identifier '__gnu_cxx' > : buf (new __gnu_cxx::stdio_filebuf<char> (file, std::ios_base::out)),
stdio_filebuf is a GCC extension, so as clang's "gcc" moves away from actually being gcc, it loses more and more of the gccisms. The stdio:filebuf.h itself is a template class but its namespace declaration appears appears to involve some hiding or subclassing. On my 10.8 with not-updated xcode, gelemental builds. According to libelementa/.deps/value.Plo, the header being accessed is /usr/include/c++/4.2.1/ext/stdio_filebuf.h, which declares at line 41: _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) Is that what you have? The activation code in /usr/include/c++/4.2.1/bits/c++config.h What if you make a local copy of that file with (with a different name and adjusted #include of it from value.cc if you want to be sure) and change at lines ~41 and ~160 respectively: -_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) +namespace __gnu_cxx { -_GLIBCXX_END_NAMESPACE +} Googling for this sort of compatiblity problem (I don't actually know anything about this specific situation) suggests the portable solution is to use boost. And gelemental itself seems like a dead upstream. dan -- Daniel Macks dma...@netspace.org ------------------------------------------------------------------------------ _______________________________________________ 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