Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299164 - dev-ruby/ruby-oci8-1.0.6 fails to compile
Summary: dev-ruby/ruby-oci8-1.0.6 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Troy Bowman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-31 21:40 UTC by Willard Dawson
Modified: 2010-04-12 17:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (build.log,3.66 KB, text/plain)
2009-12-31 21:41 UTC, Willard Dawson
Details
My successful build (build.log,10.19 KB, text/plain)
2010-01-06 23:04 UTC, Troy Bowman
Details
ruby-oci8-1.0.7.ebuild (ruby-oci8-1.0.7.ebuild,600 bytes, text/plain)
2010-01-06 23:12 UTC, Troy Bowman
Details
Build log (build.log,4.05 KB, text/plain)
2010-01-06 23:28 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2009-12-31 21:40:49 UTC
'update world' brought dev-db/oracle-instantclient-basic-11.2.0.1 etc.
revdep-rebuild attempted:

emerge --oneshot dev-db/oracle-instantclient-basic:0 dev-db/oracle-instantclient-jdbc:0 dev-db/oracle-instantclient-sqlplus:0 dev-ruby/ruby-oci8:0 sys-devel/binutils:0

ruby-oci8 failed to merge:

xt/oci8/extconf.rb                                                              
checking for load library path...                                               
  LD_LIBRARY_PATH is not set.                                                   
  checking ld.so.conf... no                                                     
checking for cc... ok                                                           
checking for gcc... yes                                                         
checking for LP64... no                                                         
checking for ruby header... ok                                                  
Get the version of Oracle from SQL*Plus... ---------------------------------------------------                                                                  
error messages:                                                                 
cannot get Oracle version from sqlplus                                          
---------------------------------------------------                             
See:                                                                            
 * http://ruby-oci8.rubyforge.org/en/HowToInstall.html                          
 * http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html                  

*** /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/extconf.rb failed ***                                                               
Could not create Makefile due to some reason, probably lack of                  
necessary libraries and/or headers.  Check the mkmf.log file for more           
details.  You may need configuration options.                                   

Provided configuration options:
        --with-opt-dir         
        --without-opt-dir      
        --with-opt-include     
        --without-opt-include=${opt-dir}/include
        --with-opt-lib                          
        --without-opt-lib=${opt-dir}/lib        
        --with-make-prog                        
        --without-make-prog                     
        --srcdir=/var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8                                                                        
        --curdir                                                                
        --ruby=/usr/bin/ruby18                                                  
        --with-instant-client                                                   
        --without-instant-client                                                
/var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/oraconf.rb:751:in `get_version': RuntimeError (RuntimeError)                            
        from /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/oraconf.rb:680:in `initialize'                                             
        from /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/oraconf.rb:345:in `new'                                                    
        from /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/oraconf.rb:345:in `get'                                                    
        from /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/extconf.rb:24                                                              
'system /usr/bin/ruby18 /var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6/ext/oci8/extconf.rb ' failed                                             
Try 'ruby setup.rb --help' for detailed usage.                                  
make: *** [config.save] Error 1                                                 
 * ERROR: dev-ruby/ruby-oci8-1.0.6 failed:                                      
 *   (no error message)                                                         
 *                                                                              
 * Call stack:                                                                  
 *     ebuild.sh, line  54:  Called src_compile                                 
 *   environment, line 2443:  Called die                                        
 * The specific snippet of code:                                                
 *       emake -j1 CONFIG_OPT="--prefix=${D}usr" config.save setup || die $!    
 *                                                                              
 * If you need support, post the output of 'emerge --info =dev-ruby/ruby-oci8-1.0.6',                                                                           
 * the complete build log and the output of 'emerge -pqv =dev-ruby/ruby-oci8-1.0.6'.                                                                            
 * The complete build log is located at '/var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/temp/build.log'.                                                             
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/temp/environment'.                                                      
 * S: '/var/tmp/portage/dev-ruby/ruby-oci8-1.0.6/work/ruby-oci8-1.0.6'          
sandbox:main  signal SIGQUIT already had a handler ...                          


Reproducible: Always




# emerge --info
Portage 2.1.7.16 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.30-gentoo-r6 i686)                                                                      
=================================================================               
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.1                                                             
Timestamp of tree: Thu, 31 Dec 2009 18:30:01 +0000                              
app-shells/bash:     4.0_p35                                                    
dev-java/java-config: 2.1.10                                                    
dev-lang/python:     2.5.4-r3, 2.6.4, 3.1.1-r1                                  
dev-python/pycrypto: 2.1.0                                                      
dev-util/cmake:      2.8.0                                                      
sys-apps/baselayout: 2.0.1                                                      
sys-apps/openrc:     0.6.0                                                      
sys-apps/sandbox:    2.2                                                        
sys-devel/autoconf:  2.13, 2.65                                                 
sys-devel/automake:  1.5-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1       
sys-devel/binutils:  2.20                                                       
sys-devel/gcc-config: 1.4.1                                                     
sys-devel/libtool:   2.2.6b                                                     
virtual/os-headers:  2.6.30-r1                                                  
ACCEPT_KEYWORDS="x86 ~x86"                                                      
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Nessus-EULA sun-bcla-java-vm"             
CBUILD="i686-pc-linux-gnu"                                                      
CFLAGS="-march=i686 -O2 -pipe -ggdb"                                            
CHOST="i686-pc-linux-gnu"                                                       
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                                 
CXXFLAGS="-march=i686 -O2 -pipe -ggdb"                                          
DISTDIR="/usr/portage/distfiles"                                                
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                 
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                           
LDFLAGS="-Wl,-O1"                                                               
MAKEOPTS=""                                                                     
PKGDIR="/usr/portage/packages"                                                  
PORTAGE_CONFIGROOT="/"                                                          
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                  
PORTAGE_TMPDIR="/var/tmp"                                                       
PORTDIR="/usr/portage"                                                          
PORTDIR_OVERLAY="/usr/local/portage"                                            
SYNC="rsync://rsync.gentoo.org/gentoo-portage"                                  
USE="3dnow 3dnowext X a52 aac acl acpi aiglx alsa apache2 apm ati audiofile avahi avi bash-completion berkdb bitmap-fonts bzip2 cairo caps cardbus cdio cdr cli consolekit cracklib crypt ctype cups cxx dba dbtool dbus digitalradio diskio djvu dri dts dvdread eds emboss encode esd ethereal exif expat fastbuild ffmpeg fftw fglrx foomaticdb force-cgi-redirect fortran ftp fuse gamin gd gdbm gif glib glitz glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imlib ipv6 ithreads jack java jpeg kde kerberos kqemu lcms ldap libclamav libg++ libwww lirc live lm_sensors lua mad madwifi matroska mdnsresponder-compat memlimit mhash mikmod mmx mmxext mng modules mono motif mozilla mp3 mpeg mudflap mysql ncurses netboot netjack networking nforce2 nls nptl nptlonly nsplugin nvidia ocaml ogg oggvorbis opengl openmp oss pam pango pch pcmcia pcre pdf pdflib pear perl php pmu png policykit portaudio posix pppd pulseaudio python qt qt3support qtmt quicktime readline reflection ruby samba sasl sdl session simplexml slang sndfile snmp soap sockets spell spl sql sqlite sse sse2 ssl svg sysfs tcl tcltk tcpd theora threads threadsafe tiff tk tokenizer truetype truetype-fonts type1-fonts udev unicode utempter vorbis webkit wifi win32codecs x86 xanim xinerama xml xmlrpc xorg xscreensaver xsl xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FOO2ZJS_DEVICES="hp2600n" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Willard Dawson 2009-12-31 21:41:37 UTC
Created attachment 214800 [details]
Build log
Comment 2 Troy Bowman 2010-01-06 23:04:02 UTC
Created attachment 215443 [details]
My successful build

Hrm, it works for me.  I wonder what is different for your environment.  I guess we could try bumping to ruby-oci8-1.0.7 to see if it helps you...
Comment 3 Troy Bowman 2010-01-06 23:12:08 UTC
Created attachment 215445 [details]
ruby-oci8-1.0.7.ebuild

Here is a ruby-oci8-1.0.7.ebuild.  (it's exactly the same as 1.0.6, except the file name has changed and all versioning is automatic from the file name -- there's really not much to it, really).
Comment 4 Troy Bowman 2010-01-06 23:22:57 UTC
The only thing different I can see between my and your logs is that it seems to be finding the Oracle 11.2 libraries from my ld.so.conf correctly.  Did you do an env-update and source /etc/profile?  Is /usr/lib/oracle/11.2.0.1/client/lib in your ld.so.conf (it comes from /etc/env.d/50oracle-instantclient-basic)?  Please make sure your environment is working, and if you're still having problems, a bug report may have to be submitted upstream.
Comment 5 Willard Dawson 2010-01-06 23:27:53 UTC
(In reply to comment #4)
> The only thing different I can see between my and your logs is that it seems to
> be finding the Oracle 11.2 libraries from my ld.so.conf correctly.  Did you do
> an env-update and source /etc/profile?  Is /usr/lib/oracle/11.2.0.1/client/lib
> in your ld.so.conf (it comes from /etc/env.d/50oracle-instantclient-basic)? 
> Please make sure your environment is working, and if you're still having
> problems, a bug report may have to be submitted upstream.
> 

(In reply to comment #3)
> Created an attachment (id=215445) [details]
> ruby-oci8-1.0.7.ebuild
> 
> Here is a ruby-oci8-1.0.7.ebuild.  (it's exactly the same as 1.0.6, except the
> file name has changed and all versioning is automatic from the file name --
> there's really not much to it, really).
> 

Thanks for the ebuild.  I tried it just now, but it also failed.  I'll attach the build log in a bit.  Perhaps this issue is related to http://bugs.gentoo.org/show_bug.cgi?id=299689 and http://bugs.gentoo.org/show_bug.cgi?id=299562. Or not...


Comment 6 Willard Dawson 2010-01-06 23:28:21 UTC
Created attachment 215451 [details]
Build log
Comment 7 Willard Dawson 2010-01-06 23:32:05 UTC
(In reply to comment #4)
> The only thing different I can see between my and your logs is that it seems to
> be finding the Oracle 11.2 libraries from my ld.so.conf correctly.  Did you do
> an env-update and source /etc/profile?  Is /usr/lib/oracle/11.2.0.1/client/lib
> in your ld.so.conf (it comes from /etc/env.d/50oracle-instantclient-basic)? 
> Please make sure your environment is working, and if you're still having
> problems, a bug report may have to be submitted upstream.
> 

# grep /usr/lib/oracle/11.2.0.1/client/lib /etc/ld.so.conf
/usr/lib/oracle/11.2.0.1/client/lib

I don't have an easy way to check the environment against a working Oracle server, as I don't have one ready at hand at the moment... in my current working environment. Sadly.
Comment 8 Hans de Graaff gentoo-dev Security 2010-01-08 07:11:28 UTC
I've added dev-ruby/ruby-oci8-1.0.7 to the tree. It would be great if this could also be converted to use the new ruby-ng eclass, so that we can provide proper versions for ruby 1.8 and ruby 1.9. Please let me know if you need some help with it.
Comment 9 Willard Dawson 2010-04-12 17:15:55 UTC
(In reply to comment #8)
> I've added dev-ruby/ruby-oci8-1.0.7 to the tree. It would be great if this
> could also be converted to use the new ruby-ng eclass, so that we can provide
> proper versions for ruby 1.8 and ruby 1.9. Please let me know if you need some
> help with it.
> 

Since opening this bug, I have lost my original system due to hardware failure.  On my new Gentoo box, I now have dev-ruby/ruby-oci8-2.0.3.  I had no issues building it, so I would say this bug can be closed out. Not sure if you care if the resolution is anything other than FIXED... but marking it that way.