<br><br><div class="gmail_quote">On Wed, Jun 8, 2011 at 15:06, Satrajit Ghosh <span dir="ltr"><<a href="mailto:satra@mit.edu">satra@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

hi min<div><br></div><div>found the file. i'm using EPD and since it bundles pyzmq, the include path contains the old pyzmq. i'm trying to figure out a way to have this pyzmq compile with my zmq instead of EPD's.</div>

</blockquote><div><br></div><div>use `python setup.py configure --zmq=/path/to/install/prefix` to tell pyzmq where libzmq is installed.  I'm a bit concerned by the how your configuration is inconsistent, such that LD finds your libzmq before EPD's, but gcc finds EPD's zmq.h before yours.</div>

<div><br></div><div>In any case, specifying the zmq location should help.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><br clear="all">cheers,<br><br>satra<div><div></div><div class="h5"><br><br>
<br><br><div class="gmail_quote">On Mon, Jun 6, 2011 at 10:11 PM, Min RK <span dir="ltr"><<a href="mailto:benjaminrk@gmail.com" target="_blank">benjaminrk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Hi, sorry you are having issues.<br>
<br>
Those values being undefined means the zmq.h that gcc is finding is old (pre-2.1.0, I think), but weirdly the libzmq the detection is finding is current.<br>
<br>
Try looking around for zmq.h, and removing the old one.<br>
<br>
-MinRK<br>
<div><div></div><div><br>
On Jun 6, 2011, at 18:39, Satrajit Ghosh <<a href="mailto:satra@mit.edu" target="_blank">satra@mit.edu</a>> wrote:<br>
<br>
> hi min and brian,<br>
><br>
> trying to compile pyzmq, both from git clone master<br>
><br>
> cheers,<br>
><br>
> satra<br>
><br>
> Configure: Autodetecting ZMQ settings...<br>
>     Custom ZMQ dir:       /software/venvs/EPD/7.0/ipxi<br>
> cc -I/software/venvs/EPD/7.0/ipxi/include -Izmq/utils -Izmq/core -Izmq/devices -c detect/vers.c -o detect/vers.o<br>
> cc -arch x86_64 -undefined dynamic_lookup detect/vers.o -L/software/venvs/EPD/7.0/ipxi/lib -lzmq -o detect/vers<br>
>     ZMQ version detected: 2.1.7<br>
> ******************************************<br>
> cythoning zmq/core/constants.pyx to zmq/core/constants.c<br>
> building 'zmq.core.constants' extension<br>
> creating build/temp.macosx-10.5-x86_64-2.7<br>
> creating build/temp.macosx-10.5-x86_64-2.7/zmq<br>
> creating build/temp.macosx-10.5-x86_64-2.7/zmq/core<br>
> gcc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -DNDEBUG -g -O3 -arch x86_64 -I/Library/Frameworks/EPD64.framework/Versions/7.0/include -I/software/venvs/EPD/7.0/ipxi/include -Izmq/utils -Izmq/core -Izmq/devices -I/software/venvs/EPD/7.0/ipxi/include -I/Library/Frameworks/EPD64.framework/Versions/7.0/include/python2.7 -c zmq/core/constants.c -o build/temp.macosx-10.5-x86_64-2.7/zmq/core/constants.o -Wno-unused-function -Wno-strict-aliasing<br>




> zmq/core/constants.c: In function ‘initconstants’:<br>
> zmq/core/constants.c:1024: error: ‘ZMQ_XPUB’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1024: error: (Each undeclared identifier is reported only once<br>
> zmq/core/constants.c:1024: error: for each function it appears in.)<br>
> zmq/core/constants.c:1036: error: ‘ZMQ_XSUB’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1662: error: ‘ZMQ_FD’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1674: error: ‘ZMQ_EVENTS’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1686: error: ‘ZMQ_TYPE’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1698: error: ‘ZMQ_LINGER’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1710: error: ‘ZMQ_RECONNECT_IVL’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1722: error: ‘ZMQ_BACKLOG’ undeclared (first use in this function)<br>
> zmq/core/constants.c:1850: error: ‘ZMQ_RECONNECT_IVL_MAX’ undeclared (first use in this function)<br>
> error: command 'gcc' failed with exit status 1<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> IPython-dev mailing list<br>
> <a href="mailto:IPython-dev@scipy.org" target="_blank">IPython-dev@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br>