Opened 15 years ago

Closed 14 years ago

#21926 closed defect (fixed)

Build of rb-gsl failed

Reported by: harry.park@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nchaimov@…, simon@…
Port: rb-gsl

Description (last modified by skymoo (Adam Mercer))

rb-gsl failed to build for me when installing from mac ports. 10.6 Snow Leopard MBP Ruby: ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]

#: sudo port install rb-gsl
--->  Computing dependencies for rb-gsl
--->  Building rb-gsl
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-gsl/work/rb-gsl-1.10.3" && /opt/local/bin/ruby -rvendor-specific setup.rb setup " returned error 1
Command output: ---> lib
---> lib/gsl
<--- lib/gsl
---> lib/ool
<--- lib/ool
<--- lib
---> ext
make
/usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-gsl/work/rb-gsl-1.10.3/ext -DHAVE_ROUND -I/opt/local/lib/ruby/site_ruby/1.8/i686-darwin10 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include -fno-common  -Wall -I../include -I/opt/local/include -arch x86_64 -c const.c
const.c: In function 'rb_gsl_const_cgs':
const.c:602: error: 'GSL_CONST_CGSM_GAUSS' undeclared (first use in this function)
const.c:602: error: (Each undeclared identifier is reported only once
const.c:602: error: for each function it appears in.)
make: *** [const.o] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
	from setup.rb:664:in `make'
	from setup.rb:1258:in `setup_dir_ext'
	from setup.rb:1532:in `__send__'
	from setup.rb:1532:in `traverse'
	from setup.rb:1549:in `dive_into'
	from setup.rb:1530:in `traverse'
	from setup.rb:1524:in `exec_task_traverse'
	from setup.rb:1519:in `each'
	from setup.rb:1519:in `exec_task_traverse'
	from setup.rb:1246:in `exec_setup'
	from setup.rb:996:in `exec_setup'
	from setup.rb:826:in `__send__'
	from setup.rb:826:in `invoke'
	from setup.rb:773:in `invoke'
	from setup.rb:1578

Error: Status 1 encountered during processing.

Change History (9)

comment:1 Changed 15 years ago by skymoo (Adam Mercer)

Description: modified (diff)
Keywords: rb-gsl removed
Priority: HighNormal
Version: 1.8.1

comment:2 Changed 15 years ago by peter@…

same problem. snow leopard 10.6.2, macbook core 2 duo, ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]

/usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_ruby_rb-gsl/work/rb-gsl-1.10.3/ext -DHAVE_ROUND -I/opt/local/lib/ruby/site_ruby/1.8/i686-darwin10 -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE  -I/opt/local/include -fno-common  -Wall -I../include -I/opt/local/include -arch x86_64 -c const.c
const.c: In function 'rb_gsl_const_cgs':
const.c:602: error: 'GSL_CONST_CGSM_GAUSS' undeclared (first use in this function)
const.c:602: error: (Each undeclared identifier is reported only once
const.c:602: error: for each function it appears in.)
make: *** [const.o] Error 1
setup.rb:655:in `command': system("make") failed (RuntimeError)
        from setup.rb:664:in `make'
        from setup.rb:1258:in `setup_dir_ext'
        from setup.rb:1532:in `__send__'
        from setup.rb:1532:in `traverse'
        from setup.rb:1549:in `dive_into'
        from setup.rb:1530:in `traverse'
        from setup.rb:1524:in `exec_task_traverse'
        from setup.rb:1519:in `each'
        from setup.rb:1519:in `exec_task_traverse'
        from setup.rb:1246:in `exec_setup'
        from setup.rb:996:in `exec_setup'
        from setup.rb:826:in `__send__'
        from setup.rb:826:in `invoke'
        from setup.rb:773:in `invoke'
        from setup.rb:1578

Error: Status 1 encountered during processing.

Looks like a problem with the libgsl library because reports like this (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549435):

"In upstream libgsl, version 1.13, the GSL_CONST_CGSM_GAUSS symbol was removed. The attached patch fixes the problem. The correct solution is to remove the reference to the symbol entirely, as upstream says the value of the constant wasn't reliable."

comment:3 Changed 15 years ago by peter@…

Cc: peter@… added

Cc Me!

comment:4 Changed 15 years ago by peter@…

The SVN version of rb-gsl compiles fine, suggest using that until a new tag is released: svn checkout svn://rubyforge.org/var/svn/rb-gsl

comment:5 Changed 15 years ago by peter@…

Cc: peter@… removed

Cc Me!

comment:6 Changed 15 years ago by nchaimov@…

Cc: nchaimov@… added

Cc Me!

comment:7 Changed 15 years ago by simon@…

Cc: simon@… added

Cc Me!

comment:8 Changed 14 years ago by burkestar@…

rb-gsl Macport is still broken on Snow Leopard. As a workaround, follow Rok Sribar's installation steps (posted Mar 15, 2008) - notably steps 4 and 5.

http://rubyforge.org/forum/forum.php?thread_id=19389&forum_id=1225

Step 4) Download rb-gsl from: http://rb-gsl.rubyforge.org/ and copy rb-gsl-x.xx.x folder to: /Library/Ruby/Gems/1.8/gems/

Step 5) Install rb-gsl by following instructions at http://rb-gsl.rubyforge.org/ or # % cd /Library/Ruby/Gems/1.8/gems/rb-gsl-1.10.3/ # % ruby setup.rb config # % ruby setup.rb setup # % sudo ruby setup.rb install # Password:

-- DONE --

comment:9 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.