Hi There,
I was attempting to install the zoom gem (0.4.1) on a Fedora Core 12 box which already had yaz installed (configs below).
The gem install failed due to a missing C library vaguely identified as "-lwrap". I found a suggestion that
encouraged me to try installing the tcp_wrappers-devel.x86_64 package, and that resolved the problem. I hope you can
add this dependency to the prereq's for the gem, or let me know what I missed in your docs.
Thanks,
Matthew Stephens
University of Virginia Library
zoom-0.4.1/src/gem_make.out:
/usr/bin/ruby extconf.rb
checking for yaz/zoom.h... yes
creating Makefile
make
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoomconnection.c
rbzoomconnection.c: In function ‘rbz_connection_package’:
rbzoomconnection.c:292: warning: assignment makes pointer from integer without a cast
rbzoomconnection.c:293: warning: return makes integer from pointer without a cast
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoomrecord.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2 -c rbzoom.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoomquery.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoomoptions.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoompackage.c
gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I. -DHAVE_YAZ_ZOOM_H -fPIC -O2 -g -pipe
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fno-strict-aliasing -fPIC -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
-c rbzoomresultset.c
gcc -shared -o zoom.so rbzoomconnection.o rbzoomrecord.o rbzoom.o rbzoomquery.o rbzoomoptions.o rbzoompackage.o
rbzoomresultset.o -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lyaz -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error
-lxml2 -lwrap -lruby -lpthread -lrt -ldl -lcrypt -lm -lc
/usr/bin/ld: cannot find -lwrap
collect2: ld returned 1 exit status
make: *** [zoom.so] Error 1
Yaz configuration
[ms3uf@migration ~]$ yaz-config --cflags
-I/usr/local/include -DYAZ_HAVE_XML2=1 -DYAZ_HAVE_XSLT=1 -DYAZ_HAVE_EXSLT=1 -I/usr/include/libxml2
[ms3uf@migration ~]$ yaz-config --libs
-L/usr/local/lib -lyaz -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lssl -lcrypto -ldl -lz
[ms3uf@migration ~]$ yaz-config --lalibs
-L/usr/local/lib -lyaz -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lssl -lcrypto -ldl -lz
[ms3uf@migration ~]$ yaz-config --version
3.0.10
System:
Fedora Core 12 (2.6.32.11-99.fc12.x86_64)
gcc 4.4.3
ruby 1.8.6 (2010-02-05 patchlevel 399) [x86_64-linux]
gem 1.3.7 |