<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, &quot;Alexandru Scvorţov&quot; &lt;<a href="alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>&gt; 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>
&gt; utility:~/workspace/rabbit$ hg clone <a href="http://hg.rabbitmq.com/rabbitmq-codegen">http://hg.rabbitmq.com/rabbitmq-codegen</a><BR>
&gt; codegen-default<BR>
&gt; requesting all changes<BR>
&gt; adding changesets<BR>
&gt; adding manifests<BR>
&gt; adding file changes<BR>
&gt; added 144 changesets with 127 changes to 20 files (+3 heads)<BR>
&gt; updating working directory<BR>
&gt; 10 files updated, 0 files merged, 0 files removed, 0 files unresolved<BR>
&gt; utility:~/workspace/rabbit$ hg clone <a href="http://hg.rabbitmq.com/rabbitmq-c">http://hg.rabbitmq.com/rabbitmq-c</a><BR>
&gt; rabbitmq-c-default<BR>
&gt; requesting all changes<BR>
&gt; adding changesets<BR>
&gt; adding manifests<BR>
&gt; adding file changes<BR>
&gt; added 176 changesets with 517 changes to 79 files (+2 heads)<BR>
&gt; updating working directory<BR>
&gt; 76 files updated, 0 files merged, 0 files removed, 0 files unresolved<BR>
&gt; utility:~/workspace/rabbit$ cd rabbitmq-c-default/<BR>
&gt; utility:~/workspace/rabbit/rabbitmq-c-default$ ln -s ../codegen-default<BR>
&gt; codegen<BR>
&gt; utility:~/workspace/rabbit/rabbitmq-c-default$ autoreconf -i<BR>
&gt; configure.ac:3: installing `./missing'<BR>
&gt; configure.ac:3: installing `./install-sh'<BR>
&gt; examples/Makefile.am: installing `./depcomp'<BR>
&gt; utility:~/workspace/rabbit/rabbitmq-c-default$ ./configure<BR>
&gt; [configure succeeds]<BR>
&gt; utility:~/workspace/rabbit/rabbitmq-c-default$ make<BR>
&gt; make &nbsp;all-recursive<BR>
&gt; make[1]: Entering directory<BR>
&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'<BR>
&gt; Making all in librabbitmq<BR>
&gt; make[2]: Entering directory<BR>
&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-default/librabbitmq'<BR>
&gt; PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen python<BR>
&gt; ./codegen.py header<BR>
&gt; /home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp-rabbitmq-0.8<BR>
&gt; .json amqp_framing.h<BR>
&gt; Traceback (most recent call last):<BR>
&gt; &nbsp;&nbsp;File &quot;./codegen.py&quot;, line 490, in &lt;module&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;do_main(generateHrl, generateErl)<BR>
&gt; &nbsp;&nbsp;File<BR>
&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py&quot;<BR>
&gt; , line 263, in do_main<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;do_main_dict({&quot;header&quot;: header_fn, &quot;body&quot;: body_fn})<BR>
&gt; &nbsp;&nbsp;File<BR>
&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py&quot;<BR>
&gt; , line 298, in do_main_dict<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;execute(funcDict[function], sources, dest)<BR>
&gt; &nbsp;&nbsp;File<BR>
&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py&quot;<BR>
&gt; , line 277, in execute<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;fn(amqp_specs)<BR>
&gt; &nbsp;&nbsp;File &quot;./codegen.py&quot;, line 487, in generateHrl<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;genHrl(AmqpSpec(specPath))<BR>
&gt; &nbsp;&nbsp;File<BR>
&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-default/codegen/amqp_codegen.py&quot;<BR>
&gt; , line 155, in __init__<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;self.major = self.spec['major-version']<BR>
&gt; KeyError: 'major-version'<BR>
&gt; make[2]: *** [amqp_framing.h] Error 1<BR>
&gt; make[2]: Leaving directory<BR>
&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-default/librabbitmq'<BR>
&gt; make[1]: *** [all-recursive] Error 1<BR>
&gt; make[1]: Leaving directory<BR>
&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-default'<BR>
&gt; make: *** [all] Error 2<BR>
&gt;<BR>
&gt;<BR>
&gt; And:<BR>
&gt; utility:~/workspace/rabbit/rabbitmq-c-default$ python --version<BR>
&gt; Python 2.5.2<BR>
&gt;<BR>
&gt; Where is my screwup? =(<BR>
&gt;<BR>
&gt; Thanks,<BR>
&gt; Pieter<BR>
&gt;<BR>
&gt;<BR>
&gt; On 8/15/10 2:08 AM, &quot;Alexandru Scvorţov&quot; &lt;<a href="alexandru@rabbitmq.com">alexandru@rabbitmq.com</a>&gt; wrote:<BR>
&gt;<BR>
&gt; &gt; Hi,<BR>
&gt; &gt;<BR>
&gt; &gt; Could you please try again with:<BR>
&gt; &gt; &nbsp;&nbsp;* rabbitmq-codegen default, and<BR>
&gt; &gt; &nbsp;&nbsp;* rabbimtq-c default.<BR>
&gt; &gt;<BR>
&gt; &gt; This should work and you give you a 0-8 client.<BR>
&gt; &gt;<BR>
&gt; &gt; Cheers,<BR>
&gt; &gt; Alex<BR>
&gt; &gt;<BR>
&gt; &gt; On Sat, Aug 14, 2010 at 11:42:40PM -0700, Pieter de Zwart wrote:<BR>
&gt; &gt;&gt; Hey guys,<BR>
&gt; &gt;&gt;<BR>
&gt; &gt;&gt; I freely admit that I am an idiot, but I could use some help. I am trying to<BR>
&gt; &gt;&gt; get some combination of rabbitmq-c and codegen to compile on my box (FC8 &#8249;<BR>
&gt; &gt;&gt; old, I know,) and it wont behave. I am using<BR>
&gt; &gt;&gt; <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>
&gt; &gt;&gt; <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>
&gt; &gt;&gt; and I keep on getting:<BR>
&gt; &gt;&gt;<BR>
&gt; &gt;&gt; utility:~/workspace/rabbit/rabbitmq-c-0.8$ make<BR>
&gt; &gt;&gt; make &nbsp;all-recursive<BR>
&gt; &gt;&gt; make[1]: Entering directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'<BR>
&gt; &gt;&gt; Making all in librabbitmq<BR>
&gt; &gt;&gt; make[2]: Entering directory<BR>
&gt; &gt;&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'<BR>
&gt; &gt;&gt; PYTHONPATH=/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen python<BR>
&gt; &gt;&gt; ./codegen.py header<BR>
&gt; &gt;&gt; /home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp-rabbitmq-0.8.jso<BR>
&gt; &gt;&gt; n amqp_framing.h<BR>
&gt; &gt;&gt; Traceback (most recent call last):<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File &quot;./codegen.py&quot;, line 490, in &lt;module&gt;<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;do_main(generateHrl, generateErl)<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File<BR>
&gt; &gt;&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py&quot;,<BR>
&gt; &gt;&gt; line 263, in do_main<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;do_main_dict({&quot;header&quot;: header_fn, &quot;body&quot;: body_fn})<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File<BR>
&gt; &gt;&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py&quot;,<BR>
&gt; &gt;&gt; line 298, in do_main_dict<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;execute(funcDict[function], sources, dest)<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File<BR>
&gt; &gt;&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py&quot;,<BR>
&gt; &gt;&gt; line 277, in execute<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;fn(amqp_specs)<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File &quot;./codegen.py&quot;, line 487, in generateHrl<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;genHrl(AmqpSpec(specPath))<BR>
&gt; &gt;&gt; &nbsp;&nbsp;File<BR>
&gt; &gt;&gt; &quot;/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/codegen/amqp_codegen.py&quot;,<BR>
&gt; &gt;&gt; line 155, in __init__<BR>
&gt; &gt;&gt; &nbsp;&nbsp;&nbsp;&nbsp;self.major = self.spec['major-version']<BR>
&gt; &gt;&gt; KeyError: 'major-version'<BR>
&gt; &gt;&gt; make[2]: *** [amqp_framing.h] Error 1<BR>
&gt; &gt;&gt; make[2]: Leaving directory<BR>
&gt; &gt;&gt; `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8/librabbitmq'<BR>
&gt; &gt;&gt; make[1]: *** [all-recursive] Error 1<BR>
&gt; &gt;&gt; make[1]: Leaving directory `/home/pdezwart/workspace/rabbit/rabbitmq-c-0.8'<BR>
&gt; &gt;&gt; make: *** [all] Error 2<BR>
&gt; &gt;&gt;<BR>
&gt; &gt;&gt; What am I doing wrong?! What is the current secret magic incantation?<BR>
&gt; &gt;&gt;<BR>
&gt; &gt;&gt; Thanks,<BR>
&gt; &gt;&gt; Pieter<BR>
&gt; &gt;<BR>
&gt; &gt;&gt; _______________________________________________<BR>
&gt; &gt;&gt; rabbitmq-discuss mailing list<BR>
&gt; &gt;&gt; <a href="rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><BR>
&gt; &gt;&gt; <a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><BR>
&gt; &gt;<BR>
&gt; &gt;<BR>
&gt;<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>