liblinear-ruby-swig
liblinear-ruby-swig copied to clipboard
Gem installation under ruby 1.9.x fails
gem1.9.1 install --user-install tomz-liblinear-ruby-swig Building native extensions. This could take a while... ERROR: Error installing tomz-liblinear-ruby-swig: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
creating Makefile
make compiling daxpy.c compiling ddot.c compiling dnrm2.c compiling dscal.c compiling liblinear_wrap.cxx liblinear_wrap.cxx: In function 'void SWIG_Ruby_define_class(swig_type_info_)': liblinear_wrap.cxx:1505:9: warning: variable 'klass' set but not used [-Wunused-but-set-variable] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_index_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2152:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2157:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_index_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2180:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_value_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2205:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2210:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_value_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2233:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_l_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2297:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2302:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_l_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2325:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_n_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2350:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2355:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_n_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2378:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_y_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2403:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2408:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_y_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2431:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_x_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2456:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2461:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_x_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2484:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_bias_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2509:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2514:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_problem_bias_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2537:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_solver_type_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2601:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2606:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_solver_type_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2629:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_eps_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2654:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2659:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_eps_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2682:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_C_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2707:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2712:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_C_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2735:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_nr_weight_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2760:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2765:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_nr_weight_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2788:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_weight_label_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2813:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2818:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_weight_label_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2841:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_weight_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2866:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2871:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_parameter_weight_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2894:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_param_set(int, VALUE, VALUE)': liblinear_wrap.cxx:2958:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:2963:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_param_get(int, VALUE, VALUE)': liblinear_wrap.cxx:2986:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_nr_class_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3011:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3016:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_nr_class_get(int, VALUE, VALUE)': liblinear_wrap.cxx:3039:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_nr_feature_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3064:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3069:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_nr_feature_get(int, VALUE, VALUE)': liblinear_wrap.cxx:3092:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_w_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3117:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3122:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_w_get(int, VALUE, VALUE)': liblinear_wrap.cxx:3145:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_label_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3170:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3175:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_label_get(int, VALUE, VALUE)': liblinear_wrap.cxx:3198:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_bias_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3223:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3228:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_model_bias_get(int, VALUE, VALUE)': liblinear_wrap.cxx:3251:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_train(int, VALUE, VALUE)': liblinear_wrap.cxx:3315:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3320:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_cross_validation(int, VALUE, VALUE)': liblinear_wrap.cxx:3351:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3356:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3361:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3366:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_predict_values(int, VALUE, VALUE)': liblinear_wrap.cxx:3395:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3400:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3405:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_predict(int, VALUE, VALUE)': liblinear_wrap.cxx:3432:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3437:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_predict_probability(int, VALUE, VALUE)': liblinear_wrap.cxx:3467:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3472:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3477:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_save_model(int, VALUE, VALUE)': liblinear_wrap.cxx:3505:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3510:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_load_model(int, VALUE, VALUE)': liblinear_wrap.cxx:3537:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_get_nr_feature(int, VALUE, VALUE)': liblinear_wrap.cxx:3563:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_get_nr_class(int, VALUE, VALUE)': liblinear_wrap.cxx:3587:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_get_labels(int, VALUE, VALUE)': liblinear_wrap.cxx:3612:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3617:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_destroy_model(int, VALUE, VALUE)': liblinear_wrap.cxx:3638:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_destroy_param(int, VALUE, VALUE)': liblinear_wrap.cxx:3659:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_check_parameter(int, VALUE, VALUE)': liblinear_wrap.cxx:3685:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3690:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_new_int(int, VALUE, VALUE)': liblinear_wrap.cxx:3714:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_delete_int(int, VALUE, VALUE)': liblinear_wrap.cxx:3736:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_int_getitem(int, VALUE, VALUE)': liblinear_wrap.cxx:3762:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3767:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_int_setitem(int, VALUE, VALUE)': liblinear_wrap.cxx:3795:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3800:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3805:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_new_double(int, VALUE, VALUE)': liblinear_wrap.cxx:3828:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_delete_double(int, VALUE, VALUE)': liblinear_wrap.cxx:3850:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_double_getitem(int, VALUE, VALUE)': liblinear_wrap.cxx:3876:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3881:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_double_setitem(int, VALUE, VALUE)': liblinear_wrap.cxx:3909:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3914:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:3919:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_array(int, VALUE, VALUE)': liblinear_wrap.cxx:3967:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_array_set(int, VALUE, VALUE)': liblinear_wrap.cxx:3998:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4003:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4008:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4013:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_array_destroy(int, VALUE, VALUE)': liblinear_wrap.cxx:4034:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_matrix(int, VALUE, VALUE)': liblinear_wrap.cxx:4057:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_matrix_set(int, VALUE, VALUE)': liblinear_wrap.cxx:4085:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4090:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4095:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_set_bias_index(int, VALUE, VALUE)': liblinear_wrap.cxx:4125:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4130:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4135:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx:4140:5: error: format not a string literal and no format arguments [-Werror=format-security] liblinear_wrap.cxx: In function 'VALUE wrap_feature_node_matrix_destroy(int, VALUE, VALUE)': liblinear_wrap.cxx:4161:5: error: format not a string literal and no format arguments [-Werror=format-security] cc1plus: some warnings being treated as errors make: *_* [liblinear_wrap.o] Error 1
Is there anyway to fix it? Note that the installation with 1.8 on the same machine works fine (gem1.8 install --user-install tomz-liblinear-ruby-swig)