Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error - iconv #139

Closed
rohlfs opened this issue Apr 17, 2015 · 2 comments
Closed

Compilation error - iconv #139

rohlfs opened this issue Apr 17, 2015 · 2 comments

Comments

@rohlfs
Copy link

rohlfs commented Apr 17, 2015

I could not compile the package:
uname -a
FreeBSD 9.2-RELEASE-p3 amd64

install.package("readr")

In file included from DateTimeLocale.h:5:0,
from DateTime.h:6,
from CollectorDateTime.h:6,
from Collector.cpp:13:
Iconv.h: In member function 'std::string Iconv::convert(std::string)':
Iconv.h:47:73: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
size_t res = iconv(cd_, &inbuf, &inbytesleft, &outbuf, &outbytesleft);
^
In file included from Iconv.h:4:0,
from DateTimeLocale.h:5,
from DateTime.h:6,
from CollectorDateTime.h:6,
from Collector.cpp:13:
/usr/local/include/iconv.h:83:15: error: initializing argument 2 of 'size_t libiconv(libiconv_t, const char**, size_t*, char**, size_t_)' [-fpermissive]
extern size_t iconv (iconv_t cd, const char_ * inbuf, size_t inbytesleft, cha
^
/usr/local/lib/R/etc/Makeconf:129: recipe for target 'Collector.o' failed
gmake: *
* [Collector.o] Error 1
ERROR: compilation failed for package 'readr'

@hadley
Copy link
Member

hadley commented Apr 17, 2015

Gah, iconv is pain.

@jeroeonooms, any ideas? Maybe we need to check for the gnu compiler flag?

@hadley
Copy link
Member

hadley commented Jul 9, 2015

Duplicate of #149

@hadley hadley closed this as completed Jul 9, 2015
@lock lock bot locked and limited conversation to collaborators Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants