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

Functions to avoid in library code #14

Closed
richfitz opened this issue Jul 8, 2015 · 1 comment
Closed

Functions to avoid in library code #14

richfitz opened this issue Jul 8, 2015 · 1 comment
Milestone

Comments

@richfitz
Copy link
Member

richfitz commented Jul 8, 2015

* checking compiled code ... WARNING
File ‘jqr/libs/jqr.so’:
  Found ‘___stderrp’, possibly from ‘stderr’ (C)
    Objects: ‘execute.o’, ‘jv_alloc.o’, ‘jv_print.o’, ‘lexer.o’,
      ‘locfile.o’
  Found ‘___stdoutp’, possibly from ‘stdout’ (C)
    Objects: ‘jv_print.o’, ‘lexer.o’
  Found ‘_abort’, possibly from ‘abort’ (C)
    Object: ‘jv_alloc.o’
  Found ‘_exit’, possibly from ‘exit’ (C)
    Objects: ‘jq_test.o’, ‘lexer.o’
  Found ‘_printf’, possibly from ‘printf’ (C)
    Objects: ‘bytecode.o’, ‘execute.o’, ‘jq_test.o’
  Found ‘_putchar’, possibly from ‘putchar’ (C)
    Objects: ‘bytecode.o’, ‘execute.o’, ‘jq_test.o’
  Found ‘_puts’, possibly from ‘printf’ (C), ‘puts’ (C)
    Objects: ‘bytecode.o’, ‘jq_test.o’
  Found ‘_rand’, possibly from ‘rand’ (C)
    Object: ‘jq_test.o’

Compiled code should not call entry points which might terminate R nor
write to stdout/stderr instead of to the console, nor the system RNG.
@richfitz
Copy link
Member Author

richfitz commented Jul 8, 2015

Interestingly this only happens when building the sources within src (which I'm trying at the moment) rather than building as a library and then linking (which is what is on the travis log at the moment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant