Forum: Ferret help installing ferret gem on Mandriva 2010 linux

Posted by Stephen Benge (ironmantis7x)
on 2010-04-14 17:27
Having trouble installing ferret gem in RoR in Mandriva Linux 2010.

I get the following error when trying to install:

[root@localhost ironmantis7x]# gem install ferret
Building native extensions.  This could take a while...
ERROR:  Error installing ferret:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c helper.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
q_boolean.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c posh.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
stem_ISO_8859_1_german.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
q_prefix.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
stem_UTF_8_french.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
stem_UTF_8_danish.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
r_store.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
stem_UTF_8_italian.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c sort.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
r_search.c
r_search.c: In function ‘frt_td_to_s’:
r_search.c:202: warning: format ‘%ld’ expects type ‘long int’, but
argument 3 has type ‘int’
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c except.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c
stem_UTF_8_german.c
gcc -I. -I/usr/lib/ruby/1.8/i586-linux -I/usr/lib/ruby/1.8/i586-linux
-I. -D_FILE_OFFSET_BITS=64  -fPIC -O2 -g -pipe -Wformat
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4  -march=i586 -mtune=generic
-fasynchronous-unwind-tables  -fPIC  -D_FILE_OFFSET_BITS=64  -c global.c
global.c: In function ‘vstrfmt’:
global.c:307: error: format not a string literal and no format arguments
make: *** [global.o] Error 1


Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.6 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.6/ext/gem_make.out

Is there a known fix for this?  I am trying to install ferret 0.11.6.
I am running the following:
gem 1.3.5
rails 2.3.5
ruby 1.8.7

and these are my installed gems:

*** LOCAL GEMS ***

actionmailer (2.3.5, 2.3.4, 1.3.3)
actionpack (2.3.5, 2.3.4, 1.13.3)
actionwebservice (1.2.6, 1.2.3)
activerecord (2.3.5, 2.3.4, 1.15.3)
activeresource (2.3.5, 2.3.4)
activesupport (2.3.5, 2.3.4, 1.4.2)
dependencies (0.0.8)
rack (1.0.1)
rails (2.3.5, 2.3.4, 1.2.3)
rake (0.8.3)
thor (0.13.3)
will_paginate (2.3.12)

Any help is greatly appreciated!!

ironmantis7x
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.