Skip to content
This repository was archived by the owner on Nov 29, 2019. It is now read-only.
This repository was archived by the owner on Nov 29, 2019. It is now read-only.

Install Error #26

@antoniocaruso

Description

@antoniocaruso

Fedora 22
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
gcc version 5.1.1 20150422 (Red Hat 5.1.1-1) (GCC)

I try to build and install with gem install pdf-extract

this is the output:

Fetching: libsvm-ruby-swig-0.4.0.gem (100%)
Building native extensions. This could take a while...
/usr/share/rubygems/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /home/antonio in PATH, mode 040777
ERROR: Error installing pdf-extract:
ERROR: Failed to build gem native extension.

/usr/bin/ruby -r ./siteconf20150527-13449-o56yyi.rb extconf.rb

creating Makefile

make "DESTDIR=" clean
rm -f
rm -f libsvm.so .o *.bak mkmf.log ..time

make "DESTDIR="
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -m64 -o libsvm_wrap.o -c libsvm_wrap.cxx
libsvm_wrap.cxx: In function ‘void SWIG_Ruby_define_class(swig_type_info_)’:
libsvm_wrap.cxx:1487:9: warning: variable ‘klass’ set but not used [-Wunused-but-set-variable]
VALUE klass;
^
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_svm_type_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2126:136: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2131:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_svm_type_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2154:136: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_kernel_type_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2179:139: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2184:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_kernel_type_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2207:139: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_degree_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2232:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2237:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_degree_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2260:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_gamma_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2285:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2290:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_gamma_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2313:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_coef0_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2338:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2343:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_coef0_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2366:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_cache_size_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2391:138: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2396:136: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_cache_size_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2419:138: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_eps_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2444:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2449:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_eps_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2472:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_C_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2497:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2502:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_C_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2525:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_nr_weight_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2550:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2555:132: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_nr_weight_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2578:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_weight_label_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2603:140: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2608:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_weight_label_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2631:140: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_weight_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2656:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2661:130: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_weight_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2684:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_nu_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2709:130: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2714:128: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_nu_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2737:130: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_p_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2762:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2767:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_p_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2790:129: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_shrinking_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2815:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2820:132: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_shrinking_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2843:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_probability_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2868:139: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2873:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_parameter_probability_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2896:139: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_l_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2960:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:2965:124: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_l_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:2988:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_y_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3013:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3018:125: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_y_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3041:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_x_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3066:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3071:128: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_problem_x_get(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3094:127: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_train(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3158:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3163:146: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_cross_validation(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3194:155: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3199:157: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3204:143: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3209:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_save_model(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3236:142: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3241:147: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_load_model(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3268:142: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_get_svm_type(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3294:149: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_get_nr_class(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3318:149: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_get_labels(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3343:147: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3348:135: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_get_svr_probability(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3371:156: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_predict_values(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3399:151: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3404:150: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3409:142: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_predict(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3435:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3440:143: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_predict_probability(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3470:156: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3475:155: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3480:147: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_destroy_model(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3502:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_check_parameter(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3528:154: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3533:156: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_check_probability_model(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3557:160: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_new_int(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3581:133: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_delete_int(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3603:131: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_int_getitem(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3629:132: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3634:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_int_setitem(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3662:132: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3667:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3672:134: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_new_double(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3695:136: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_delete_double(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3717:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_double_getitem(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3743:138: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3748:140: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_double_setitem(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3776:138: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3781:140: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3786:140: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_array(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3834:137: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_array_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3865:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3870:141: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3875:141: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3880:144: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_array_destroy(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3901:148: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_matrix(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3924:138: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_matrix_set(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3952:146: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3957:142: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx:3962:145: error: format not a string literal and no format arguments [-Werror=format-security]
libsvm_wrap.cxx: In function ‘VALUE wrap_svm_node_matrix_destroy(int, VALUE, VALUE)’:
libsvm_wrap.cxx:3983:150: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors
Makefile:222: set di istruzioni per l'obiettivo "libsvm_wrap.o" non riuscito
make: *_* [libsvm_wrap.o] Errore 1

make failed, exit code 2

Gem files will remain installed in /home/antonio/.gem/ruby/gems/libsvm-ruby-swig-0.4.0 for inspection.

Results logged to /home/antonio/.gem/ruby/extensions/x86_64-linux/libsvm-ruby-swig-0.4.0/gem_make.out

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