Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#16203 - ruby 1.9.1 headers missing for native extensions

Attached to Project: Arch Linux
Opened by laurent laffont (lolgzs) - Tuesday, 15 September 2009, 09:42 GMT
Last edited by Allan McRae (Allan) - Tuesday, 15 September 2009, 16:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Cannot install gem ruby-debug19 as several headers are missing in order to compile native extensions needed.
Files needed in /usr/include/ruby-1.9.1:
debug.h
eval_intern.h
id.h
iseq.h
node.h
revision.h
ruby.h
thread_pthread.h
version.h
vm_core.h
vm_opts.h
insns.inc
insns_info.inc


Additional info:
* package version(s): ruby 1.9.1_p243-1


Steps to reproduce:
pacman -S ruby
gem install ruby-debug19
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 15 September 2009, 16:16 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments
Comment by Allan McRae (Allan) - Tuesday, 15 September 2009, 12:59 GMT
  • Field changed: Status (Unconfirmed → Researching)
  • Field changed: Category ( → Packages: Extra)
  • Field changed: Architecture (All → All)
  • Task assigned to Allan McRae (Allan)
Any idea what I need to add to the "make install" line to add these?
Comment by Allan McRae (Allan) - Tuesday, 15 September 2009, 15:23 GMT
Can you post an actual error message so I can see what is going on here?
Comment by laurent laffont (lolgzs) - Tuesday, 15 September 2009, 15:47 GMT
The first problem :) comes from linecache19 gem (ruby-debug19 dependency) which build trace_num extension. Steps to reproduce:

$ git clone git://github.com/mark-moseley/linecache.git
Initialized empty Git repository in /tmp/linecache/.git/
remote: Counting objects: 502, done.
remote: Compressing objects: 100% (223/223), done.
remote: Total 502 (delta 253), reused 401 (delta 205)
Receiving objects: 100% (502/502), 85.78 KiB | 76 KiB/s, done.
Resolving deltas: 100% (253/253), done.

$ cd linecache/ext/trace_nums

$ ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no

In exconf.rb there's:
hdrs = proc {
have_header("vm_core.h") and have_header("version.h") and
have_macro("RUBY_VERSION_MAJOR", "version.h")
}

I have attached mkmf.log

If I put the headers in /usr/include/ruby-1.9.1 then the extension builds successfully.
   mkmf.log (1.9 KiB)
Comment by laurent laffont (lolgzs) - Tuesday, 15 September 2009, 15:49 GMT
oups, this the wrong mkmf.log...
   mkmf.log (1.5 KiB)
Comment by Allan McRae (Allan) - Tuesday, 15 September 2009, 15:56 GMT
See the first comment here: http://redmine.ruby-lang.org/issues/show/1857

This is a bug in ruby-debug19, not our ruby package.

Edit: meant ruby-debug not ruby-devel
Comment by laurent laffont (lolgzs) - Tuesday, 15 September 2009, 16:04 GMT
OK, thanks.

Loading...