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

failed compilation in FreeBSD 10.3 #221

Closed
alvespms opened this issue Dec 28, 2016 · 3 comments · Fixed by #244
Closed

failed compilation in FreeBSD 10.3 #221

alvespms opened this issue Dec 28, 2016 · 3 comments · Fixed by #244
Labels
bug an unexpected problem or unintended behavior

Comments

@alvespms
Copy link

alvespms commented Dec 28, 2016

cc -I/usr/local/lib/R/include -DNDEBUG -Iunix -I. -DLIBICONV_PLUG -isystem /usr/local/include -I"/usr/local/lib/R/library/Rcpp/include"   -fpic  -O2 -pipe  -DLIBICONV_PLUG -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -c xlstool.c -o xlstool.o
xlstool.c:167:12: **error**: static declaration of 'asprintf' follows non-static
      declaration
static int asprintf(char **ret, const char *format, ...)
           ^
/usr/include/stdio.h:399:6: note: previous declaration is here
int      asprintf(char **, const char *, ...) __printflike(2, 3);
         ^
1 error generated.
*** Error code 1

For information

version
_
platform i386-portbld-freebsd10.1
arch i386
os freebsd10.1
system i386, freebsd10.1
status
major 3
minor 3.1
year 2016
month 06
day 21
svn rev 70800
language R
version.string R version 3.3.1 (2016-06-21)
nickname Bug in Your Hair

@hadley
Copy link
Member

hadley commented Jan 3, 2017

cc @jimhester. Any ideas?

@hadley hadley added the bug an unexpected problem or unintended behavior label Jan 3, 2017
@hadley
Copy link
Member

hadley commented Jan 3, 2017

Maybe this is the same as #189 which is fixed in #215

@jimhester
Copy link
Contributor

Yes it looks like that this is the same issue, maybe we just #define HAVE_APRINTF 1 unconditionally for unix-alikes, I think all the common R architectures should have it.

@lock lock bot locked and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants