RPM for 1.8.0 - uninitialized constant CONFIG

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Re: RPM for 1.8.0 - uninitialized constant CONFIG

    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?

    [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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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 ...
    4. [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...
    5. uninitialized constant Myclass (NameError)
      Hi. The following code worked in 1.6.8: require 'Mymodule' include Mymodule class Myclass def quack2(q)
  3. #2

    Default Re: RPM for 1.8.0 - uninitialized constant CONFIG

    On Thu, 2003-06-26 at 00:51, Martin DeMello wrote:
    > 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).
    That's what the .spec file is -- a set of instructions for packaging a
    set of sources as an RPM.


    Ari


    Aredridel Guest

  4. #3

    Default Re: RPM for 1.8.0 - uninitialized constant CONFIG

    On Wed, 2003-06-25 at 23:08, [email]nobu.nokada@softhome.net[/email] 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.
    My PLD spec file uses %configure2_13 until I can figure out why the 2.5
    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.
    >
    > > 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?
    That sounds like problems with your distro's configure macro as well.
    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

  5. #4

    Default Re: RPM for 1.8.0 - uninitialized constant CONFIG

    On Thu, 2003-06-26 at 05:53, Mike Stok wrote:
    > 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?
    PLD takes another stance -- instead of installing both, they patch all
    the source to be 2.5 compatible. It's pretty easy, usually.

    Ari


    Aredridel Guest

  6. #5

    Default 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

  7. #6

    Default Re: RPM for 1.8.0 - uninitialized constant CONFIG

    On Thu, 26 Jun 2003, Mike Stok wrote:
    > 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
    rpm -qa | grep autoconf
    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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139