<HTML>
<HEAD>
<TITLE>Re: [rabbitmq-discuss] Compiling rabbitmq-c</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Yup, python was the problem. Something between 2.5.2 and 2.5.4 was important =)<BR>
<BR>
Thanks guys,<BR>
Pieter<BR>
<BR>
<BR>
On 8/16/10 2:27 AM, "Alexandru Scvorţov" <<a href="alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Sorry, but I can't reproduce your problem.<BR>
<BR>
Running that exact sequence of commands works fine for me with both<BR>
python-2.5.4 and python-2.6.5.<BR>
<BR>
What distribution are you using and could you try upgrading to a more<BR>
recent version of Python?<BR>
<BR>
<BR>
Alex<BR>
<BR>
On Sun, Aug 15, 2010 at 11:58:04PM -0700, Pieter de Zwart wrote:<BR>
> utility:~/workspace/rabbit$ hg clone <a href="http://hg.rabbitmq.com/rabbitmq-codegen">http://hg.rabbitmq.com/rabbitmq-codegen</a><BR>
> codegen-default<BR>
> requesting all changes<BR>
> adding changesets<BR>
> adding manifests<BR>
> adding file changes<BR>
> added 144 changesets with 127 changes to 20 files (+3 heads)<BR>
> updating working directory<BR>
> 10 files updated, 0 files merged, 0 files removed, 0 files unresolved<BR>
> utility:~/workspace/rabbit$ hg clone <a href="http://hg.rabbitmq.com/rabbitmq-c">http://hg.rabbitmq.com/rabbitmq-c</a><BR>
> rabbitmq-c-default<BR>
> requesting all changes<BR>
> adding changesets<BR>
> adding manifests<BR>
> adding file changes<BR>
> added 176 changesets with 517 changes to 79 files (+2 heads)<BR>
> updating working directory<BR>
> 76 files updated, 0 files merged, 0 files removed, 0 files unresolved<BR>
> utility:~/workspace/rabbit$ cd rabbitmq-c-default/<BR>
> utility:~/workspace/rabbit/rabbitmq-c-default$ ln -s ../codegen-default<BR>
> codegen<BR>
> utility:~/workspace/rabbit/rabbitmq-c-default$ autoreconf -i<BR>
> configure.ac:3: installing `./missing'<BR>
> configure.ac:3: installing `./install-sh'<BR>
> examples/Makefile.am: installing `./depcomp'<BR>
> utility:~/workspace/rabbit/rabbitmq-c-default$ ./configure<BR>
> [configure succeeds]<BR>
> utility:~/workspace/rabbit/rabbitmq-c-default$ make<BR>
> make all-recursive<BR>
> make[1]: Entering directory<BR>
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'<BR>
> Making all in librabbitmq<BR>
> make[2]: Entering directory<BR>
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-default/librabbitmq'<BR>
> PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen python<BR>
> ./codegen.py header<BR>
> /home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp-rabbitmq-0.8<BR>
> .json amqp_framing.h<BR>
> Traceback (most recent call last):<BR>
> File "./codegen.py", line 490, in <module><BR>
> do_main(generateHrl, generateErl)<BR>
> File<BR>
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py"<BR>
> , line 263, in do_main<BR>
> do_main_dict({"header": header_fn, "body": body_fn})<BR>
> File<BR>
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py"<BR>
> , line 298, in do_main_dict<BR>
> execute(funcDict[function], sources, dest)<BR>
> File<BR>
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py"<BR>
> , line 277, in execute<BR>
> fn(amqp_specs)<BR>
> File "./codegen.py", line 487, in generateHrl<BR>
> genHrl(AmqpSpec(specPath))<BR>
> File<BR>
> "/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py"<BR>
> , line 155, in __init__<BR>
> self.major = self.spec['major-version']<BR>
> KeyError: 'major-version'<BR>
> make[2]: *** [amqp_framing.h] Error 1<BR>
> make[2]: Leaving directory<BR>
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-default/librabbitmq'<BR>
> make[1]: *** [all-recursive] Error 1<BR>
> make[1]: Leaving directory<BR>
> `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'<BR>
> make: *** [all] Error 2<BR>
><BR>
><BR>
> And:<BR>
> utility:~/workspace/rabbit/rabbitmq-c-default$ python --version<BR>
> Python 2.5.2<BR>
><BR>
> Where is my screwup? =(<BR>
><BR>
> Thanks,<BR>
> Pieter<BR>
><BR>
><BR>
> On 8/15/10 2:08 AM, "Alexandru Scvorţov" <<a href="alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>> wrote:<BR>
><BR>
> > Hi,<BR>
> ><BR>
> > Could you please try again with:<BR>
> > * rabbitmq-codegen default, and<BR>
> > * rabbimtq-c default.<BR>
> ><BR>
> > This should work and you give you a 0-8 client.<BR>
> ><BR>
> > Cheers,<BR>
> > Alex<BR>
> ><BR>
> > On Sat, Aug 14, 2010 at 11:42:40PM -0700, Pieter de Zwart wrote:<BR>
> >> Hey guys,<BR>
> >><BR>
> >> I freely admit that I am an idiot, but I could use some help. I am trying to<BR>
> >> get some combination of rabbitmq-c and codegen to compile on my box (FC8 ‹<BR>
> >> old, I know,) and it wont behave. I am using<BR>
> >> <a href="http://hg.rabbitmq.com/rabbitmq-c/rev/ce1eaceaee94">http://hg.rabbitmq.com/rabbitmq-c/rev/ce1eaceaee94</a> (amqp_0_8 tag) and<BR>
> >> <a href="http://hg.rabbitmq.com/rabbitmq-codegen/rev/d1b197ff0c5d">http://hg.rabbitmq.com/rabbitmq-codegen/rev/d1b197ff0c5d</a> (rabbitmq_v_1_8_0)<BR>
> >> and I keep on getting:<BR>
> >><BR>
> >> utility:~/workspace/rabbit/rabbitmq-c-0.8$ make<BR>
> >> make all-recursive<BR>
> >> make[1]: Entering directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'<BR>
> >> Making all in librabbitmq<BR>
> >> make[2]: Entering directory<BR>
> >> `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'<BR>
> >> PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen python<BR>
> >> ./codegen.py header<BR>
> >> /home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp-rabbitmq-0.8.jso<BR>
> >> n amqp_framing.h<BR>
> >> Traceback (most recent call last):<BR>
> >> File "./codegen.py", line 490, in <module><BR>
> >> do_main(generateHrl, generateErl)<BR>
> >> File<BR>
> >> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",<BR>
> >> line 263, in do_main<BR>
> >> do_main_dict({"header": header_fn, "body": body_fn})<BR>
> >> File<BR>
> >> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",<BR>
> >> line 298, in do_main_dict<BR>
> >> execute(funcDict[function], sources, dest)<BR>
> >> File<BR>
> >> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",<BR>
> >> line 277, in execute<BR>
> >> fn(amqp_specs)<BR>
> >> File "./codegen.py", line 487, in generateHrl<BR>
> >> genHrl(AmqpSpec(specPath))<BR>
> >> File<BR>
> >> "/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py",<BR>
> >> line 155, in __init__<BR>
> >> self.major = self.spec['major-version']<BR>
> >> KeyError: 'major-version'<BR>
> >> make[2]: *** [amqp_framing.h] Error 1<BR>
> >> make[2]: Leaving directory<BR>
> >> `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'<BR>
> >> make[1]: *** [all-recursive] Error 1<BR>
> >> make[1]: Leaving directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'<BR>
> >> make: *** [all] Error 2<BR>
> >><BR>
> >> What am I doing wrong?! What is the current secret magic incantation?<BR>
> >><BR>
> >> Thanks,<BR>
> >> Pieter<BR>
> ><BR>
> >> _______________________________________________<BR>
> >> rabbitmq-discuss mailing list<BR>
> >> <a href="rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><BR>
> >> <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><BR>
> ><BR>
> ><BR>
><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT COLOR="#177E00"><FONT SIZE="1"><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:8pt'><BR>
</SPAN></FONT></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>