10.5 libgeos failure

3 views
Skip to first unread message

Kurt

unread,
Jan 7, 2008, 10:35:32 AM1/7/08
to fink-gis
It looks like 10.5 is going to take a fair bit of work to get the gis
kinks out. I am also facing a few other trouble spots that I will try
to look into soon.

-kurt

This is on intel with i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple
Inc. build 5465)

XMLTester.cpp:66: error: 'std::tolower' is not a valid template
argument for typ
e 'int ()(int)' because function 'int tolower(int)' has not external
linkage
XMLTester.cpp:66: error: 'std::tolower' is not a valid template
argument for typ
e 'int ()(int)' because function 'int tolower(int)' has not external
linkage
XMLTester.cpp:66: error: no matching function for call to
'transform(__gnu_cxx::
__normal_iterator<char*, std::basic_string<char,
std::char_traits<char>, std::al
locator<char> > >, __gnu_cxx::__normal_iterator<char*,
std::basic_string<char, s
td::char_traits<char>, std::allocator<char> > >,
__gnu_cxx::__normal_iterator<ch
ar*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > >, <
unknown type>)'
make[2]: *** [XMLTester.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-libgeos2-2.2.3-2004
(Reading database ... 53525 files and directories currently
installed.)
Removing fink-buildlock-libgeos2-2.2.3-2004 ...

Kurt

unread,
Jan 9, 2008, 11:00:35 AM1/9/08
to fink-gis, BABA Yoshihiko, rob.br...@unh.edu
I found a patch on macports/darwin ports that changes up the cast and
it seems to work.

PatchScript: <<
perl -pi -e 's|safe_ctype<std::tolower>|(int(*)(int))std::tolower|'
source/test/XMLTester.cpp
<<

An info file that you can put in /sw/fink/10.5/local/main/finkinfo/
libs can be had from:

wget http://vislab-ccom.unh.edu/~schwehr/software/fink/libgeos2.info

I have tested this on 10.4 and 10.5 and it compiles on both. I will
leave it up to BABA Yoshihiko to commit this if he thinks it is okay.

-kurt
Reply all
Reply to author
Forward
0 new messages