Ask a Question related to Ruby, Design and Development.
-
Mike Stok #1
Re: RPM for 1.8.0 - uninitialized constant CONFIG
In article <200306260507.h5Q57vuG016989@sharui.nakada.kanuma. tochigi.jp>,
<nobu.nokada@softhome.net> wrote:One thing which tripped me up for a while in mandrake was that I needed>Hi,
>
>At Thu, 26 Jun 2003 11:44:00 +0900,
>John Carter wrote:>>> Aredridel's .spec file was a good start. It seems to be a RedHat rather
>> than Mandrake .spec, but using
>> %configure
>> instead of
>> %configure2_13
>> solved the first problem.
>What does %configure2_13? 1.8.0 needs autoconf 2.50 or later.
two autoconfs to be installed to be able to build a lot of open source
software - what does the original poster have installed?
[mike@ratdog mike]$ rpm -qa | grep autoconf
autoconf-2.13-16mdk
autoconf2.5-2.57-3mdk
Sorry if this is a red herring (false lead)
Mike
--
[email]mike@stok.co.uk[/email] | The "`Stok' disclaimers" apply.
[url]http://www.stok.co.uk/~mike/[/url] | GPG PGP Key 1024D/059913DA
[email]mike@exegenix.com[/email] | Fingerprint 0570 71CD 6790 7C28 3D60
[url]http://www.exegenix.com/[/url] | 75D2 9EC4 C1C0 0599 13DA
Mike Stok Guest
-
Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now... -
config file: a) what Module ? b) conditionals in config (for multiple hosts)
Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right... -
Use of uninitialized value
What may be wrong with my codes? Perl complains of use of uninitialized value at addition and in range (or flop). Thanks ... -
[RCR] Include CONFIG::Config['rubydocdir'] in rbconfig.rb
Hi folks, I apologise if people have read this RCR and are not interested, but this is what I consider to be an important RCR, not a merely... -
uninitialized constant Myclass (NameError)
Hi. The following code worked in 1.6.8: require 'Mymodule' include Mymodule class Myclass def quack2(q) -
Aredridel #2
Re: RPM for 1.8.0 - uninitialized constant CONFIG
On Thu, 2003-06-26 at 00:51, Martin DeMello wrote:
That's what the .spec file is -- a set of instructions for packaging a> John Carter <john.carter@tait.co.nz> wrote:>> > On Thu, 26 Jun 2003, Ian Macdonald wrote:
> >> >> >> You can get RPMs of Ruby 1.8 from my Web site:
> >>
> >> [url]http://www.caliban.org/ruby/[/url]
> > Unfortunately Mandrake 9.1 seems to have diverged too far from RedHat for
> > these to be usable.
> How hard would it be to write a ruby program that generated a set of
> {S,}RPMs from the tarball? (A genuine question - I don't know too much
> about packaging issues).
set of sources as an RPM.
Ari
Aredridel Guest
-
Aredridel #3
Re: RPM for 1.8.0 - uninitialized constant CONFIG
On Wed, 2003-06-25 at 23:08, [email]nobu.nokada@softhome.net[/email] wrote:
My PLD spec file uses %configure2_13 until I can figure out why the 2.5> Hi,
>
> At Thu, 26 Jun 2003 11:44:00 +0900,
> John Carter wrote:>> > Aredridel's .spec file was a good start. It seems to be a RedHat rather
> > than Mandrake .spec, but using
> > %configure
> > instead of
> > %configure2_13
> > solved the first problem.
> What does %configure2_13? 1.8.0 needs autoconf 2.50 or later.
version puts blanks on the commandline and causes the build error I had
a couple days ago. The 2_13 version happens to work well enough, just
gives a single warning.
That sounds like problems with your distro's configure macro as well.>>> > And removing the --enable-shared solved the
> > next.
> What problem?
>>> > Although I can build 1.8.0 Preview3 straight out the box, no problem, as
> > part of the
> > rpm -bb
> > I now get...
> > /usr/src/RPM/BUILD/ruby-1.8.0/lib/mkmf.rb:785:in `init_mkmf':
> > uninitialized constant CONFIG (NameError)
> > from /usr/src/RPM/BUILD/ruby-1.8.0/lib/mkmf.rb:816
> > from ./ext/extmk.rb:28:in `require'
> > from ./ext/extmk.rb:28
> Has rbconfig.rb been made properly? Maybe empty?
You might try doing it manually, with:
./configure --prefix=/usr
Though I hate to do that with PLD since it puts things in totally
FHS-compliant places with it's native macro.
Ari
Aredridel Guest
-
Aredridel #4
Re: RPM for 1.8.0 - uninitialized constant CONFIG
On Thu, 2003-06-26 at 05:53, Mike Stok wrote:
PLD takes another stance -- instead of installing both, they patch all> In article <200306260507.h5Q57vuG016989@sharui.nakada.kanuma. tochigi.jp>,
> <nobu.nokada@softhome.net> wrote:>> >Hi,
> >
> >At Thu, 26 Jun 2003 11:44:00 +0900,
> >John Carter wrote:> >> >> Aredridel's .spec file was a good start. It seems to be a RedHat rather
> >> than Mandrake .spec, but using
> >> %configure
> >> instead of
> >> %configure2_13
> >> solved the first problem.
> >What does %configure2_13? 1.8.0 needs autoconf 2.50 or later.
> One thing which tripped me up for a while in mandrake was that I needed
> two autoconfs to be installed to be able to build a lot of open source
> software - what does the original poster have installed?
the source to be 2.5 compatible. It's pretty easy, usually.
Ari
Aredridel Guest
-
John Carter #5
Re: RPM for 1.8.0 - uninitialized constant CONFIG
bt
#0 0x400a0481 in kill () from /lib/i686/libc.so.6
#1 0x400a0215 in raise () from /lib/i686/libc.so.6
#2 0x400a176b in abort () from /lib/i686/libc.so.6
#3 0x080d5a6e in rb_bug (fmt=0x0) at error.c:191
#4 0x0805a771 in module_setup (module=1076033948, n=0x4022fa78) at eval.c:3675
#5 0x08059a96 in rb_eval (self=1075685964, n=0x0) at eval.c:3600
Which flags? Well that was interesting. If I tried with my standard
see everything in the stack frame flags -g -O0, the problem went away!
So I put the old flags back one by one and found the old
vomit-frame-point, (sorry that should be -fomit), was the culprit.
Sounds to me like an uninitialised variable somewhere. (Anybody have a
Valgrind suppressions file for ruby-1.8.0?)
Since it has -fomit-frame-pointer, in I'm not sure how helpful the
backtrace really is.
Going up to frame #4...
frame 4
#4 0x0805a771 in module_setup (module=1076033948, n=0x4022fa78) at eval.c:3675
3675 result = rb_eval(ruby_cbase, node->nd_next);
p *node
$3 = {flags = 84940863, nd_file = 0x8161919 "./rbconfig.rb", u1 = {node = 0x0, id = 0, value = 0,
cfunc = 0, tbl = 0x0}, u2 = {node = 0x0, id = 0, argc = 0, value = 0}, u3 = {
node = 0x40233dd0, id = 1076051408, state = 1076051408, entry = 0x40233dd0, cnt = 1076051408,
value = 1076051408}}
(gdb) p n
$6 = (NODE *) 0x4022fa78
(gdb) p *n
$7 = {flags = 2787391, nd_file = 0x8161919 "./rbconfig.rb", u1 = {node = 0x401aebf4,
id = 1075506164, value = 1075506164, cfunc = 0x401aebf4, tbl = 0x401aebf4}, u2 = {
node = 0x4022fa8c, id = 1076034188, argc = 1076034188, value = 1076034188}, u3 = {node = 0x0,
id = 0, state = 0, entry = 0x0, cnt = 0, value = 0}}
On Thu, 26 Jun 2003 [email]nobu.nokada@softhome.net[/email] wrote:
> Hi,
>
> At Thu, 26 Jun 2003 15:34:51 +0900,
> John Carter wrote:>> > Sorry, thats all there is. There is no stack trace. Nothing more than that
> > is printed out.
> Try
>
> $ gdb ../miniruby
> gdb> run -I.. mkmf.rb
>
> and "bt" after SEGV.
>
> BTW, what CFLAGS do you compile with?
>
> --
> Nobu Nakada
>
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [email]john.carter@tait.co.nz[/email]
New Zealand
A Million Monkeys can inflict worse things than just Shakespeare on
your system.
John Carter Guest
-
John Carter #6
Re: RPM for 1.8.0 - uninitialized constant CONFIG
On Thu, 26 Jun 2003, Mike Stok wrote:
rpm -qa | grep autoconf> One thing which tripped me up for a while in mandrake was that I needed
> two autoconfs to be installed to be able to build a lot of open source
> software - what does the original poster have installed?
>
> [mike@ratdog mike]$ rpm -qa | grep autoconf
> autoconf-2.13-16mdk
> autoconf2.5-2.57-3mdk
autoconf-2.13-16mdk
autoconf2.5-2.57-3mdk
Nope, that doesn't seem to be the problem. In any case autoconf is the
step before configure, and isn't run by the .spec file.
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [email]john.carter@tait.co.nz[/email]
New Zealand
A Million Monkeys can inflict worse things than just Shakespeare on
your system.
John Carter Guest



Reply With Quote

