[DRE-maint] Bug#675951: ruby-ncurses: FTBFS: -Werror=format-security

Steven Chamberlain steven at pyro.eu.org
Mon Jun 4 14:16:28 UTC 2012


Package: src:ruby-ncurses
Version: 1.3.1-1
Severity: serious
Tags: sid wheezy
X-Debbugs-Cc: debian-ruby at lists.debian.org
Justification: fails to build from source (but built successfully in the
past)

Hi,

Built against libruby1.9.1 1.9.3.194-1, ruby-ncurses now FTBFS due to
failing a build-hardening check:

> compiling form_wrap.c
> form_wrap.c: In function 'rbncurs_c_set_field_type':
> form_wrap.c:629:15: warning: initialization makes pointer from integer without a cast [enabled by default]
> form_wrap.c:629:5: warning: passing argument 1 of 'rb_string_value_ptr' from incompatible pointer type [enabled by default]
> In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
>                  from form_wrap.h:34,
>                  from form_wrap.c:32:
> /usr/include/ruby-1.9.1/ruby/ruby.h:463:7: note: expected 'volatile VALUE *' but argument is of type 'VALUE **'
> form_wrap.c:657:10: warning: initialization makes pointer from integer without a cast [enabled by default]
> form_wrap.c:657:10: warning: (near initialization for 'int2num_v') [enabled by default]
> form_wrap.c:657:3: warning: passing argument 1 of 'rb_string_value_ptr' from incompatible pointer type [enabled by default]
> In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
>                  from form_wrap.h:34,
>                  from form_wrap.c:32:
> /usr/include/ruby-1.9.1/ruby/ruby.h:463:7: note: expected 'volatile VALUE *' but argument is of type 'VALUE **'
> form_wrap.c: In function 'rbncurs_c_set_field_buffer':
> form_wrap.c:746:10: warning: initialization makes pointer from integer without a cast [enabled by default]
> form_wrap.c:746:10: warning: (near initialization for 'int2num_v') [enabled by default]
> form_wrap.c:746:3: warning: passing argument 1 of 'rb_string_value_ptr' from incompatible pointer type [enabled by default]
> In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
>                  from form_wrap.h:34,
>                  from form_wrap.c:32:
> /usr/include/ruby-1.9.1/ruby/ruby.h:463:7: note: expected 'volatile VALUE *' but argument is of type 'VALUE **'
> form_wrap.c: In function 'rbncurs_c_form_request_by_name':
> form_wrap.c:1056:10: warning: initialization makes pointer from integer without a cast [enabled by default]
> form_wrap.c:1056:10: warning: (near initialization for 'int2num_v') [enabled by default]
> form_wrap.c:1056:3: warning: passing argument 1 of 'rb_string_value_ptr' from incompatible pointer type [enabled by default]
> In file included from /usr/include/ruby-1.9.1/ruby.h:32:0,
>                  from form_wrap.h:34,
>                  from form_wrap.c:32:
> /usr/include/ruby-1.9.1/ruby/ruby.h:463:7: note: expected 'volatile VALUE *' but argument is of type 'VALUE **'
> form_wrap.c: In function 'make_arg':
> form_wrap.c:1135:5: error: format not a string literal and no format arguments [-Werror=format-security]
> cc1: some warnings being treated as errors
> make[1]: *** [form_wrap.o] Error 1

Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org





More information about the Pkg-ruby-extras-maintainers mailing list