Skip to content

CRAN check failure #707

@hadley

Description

@hadley

https://cran.r-project.org/web/checks/check_results_haven.html

Version: 2.5.1 
Check: compiled code 
Result: WARN 
    File ‘haven/libs/haven.so’:
     Found ‘__sprintf_chk’, possibly from ‘sprintf’ (C)
     Objects: ‘readstat/spss/readstat_por.o’,
     ‘readstat/stata/readstat_dta_write.o’
    
    Compiled code should not call entry points which might terminate R nor
    write to stdout/stderr instead of to the console, nor use Fortran I/O
    nor system RNGs nor [v]sprintf.
    
    See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual. 
Flavors: [r-devel-linux-x86_64-debian-clang](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/haven-00check.html), [r-devel-linux-x86_64-debian-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/haven-00check.html), [r-devel-linux-x86_64-fedora-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-fedora-gcc/haven-00check.html)

Version: 2.5.1 
Check: whether package can be installed 
Result: WARN 
    Found the following significant warnings:
     readstat/readstat_bits.h:10:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/readstat_bits.c:11:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/readstat_variable.c:5:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/readstat_variable.c:8:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/sas/../readstat_bits.h:10:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/sas/ieee.c:19:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/sas/ieee.c:99:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/sas/readstat_sas.c:123:15: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/sas/readstat_xport_read.c:48:21: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/spss/readstat_por.h:34:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/spss/readstat_por.c:67:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/spss/readstat_por_write.c:170:25: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/spss/../readstat_bits.h:10:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
     readstat/stata/../readstat_bits.h:10:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
    See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/haven.Rcheck/00install.out’ for details.
    * used C compiler: ‘gcc-12 (Debian 12.2.0-13) 12.2.0’
    * used C++ compiler: ‘g++-12 (Debian 12.2.0-13) 12.2.0’ 
Flavor: [r-devel-linux-x86_64-debian-gcc](https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-gcc/haven-00check.html)

@lionel- can you remind me what we need to do for the "warning: function declaration isn’t a prototype" problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions