Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_librabbitmq.so problem on OS X Lion with versions greater than 0.9.2 #5

Closed
datfinesoul opened this issue Jun 18, 2012 · 10 comments
Closed

Comments

@datfinesoul
Copy link

When I try to install a version of librabbitmq greater than 0.9.2 on my Mac (OS X 10.7.4) using PIP, the library installs fine, but when I try to import it in a python program or the interpreter, I get the following error.

program:

Traceback (most recent call last):
File "test.py", line 4, in
import rabbit
File "/Users/phadviger/code/librabbitmq/rabbit.py", line 2, in
import librabbitmq
File "/Library/Python/2.7/site-packages/librabbitmq/init.py", line 4, in
import _librabbitmq
ImportError: dlopen(/Library/Python/2.7/site-packages/_librabbitmq.so, 2): Symbol not found: _PyDict_ToAMQTable
Referenced from: /Library/Python/2.7/site-packages/_librabbitmq.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/_librabbitmq.so

interpreter:
$ python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import librabbitmq
Traceback (most recent call last):
File "", line 1, in
File "/Library/Python/2.7/site-packages/librabbitmq/init.py", line 4, in
import _librabbitmq
ImportError: dlopen(/Library/Python/2.7/site-packages/_librabbitmq.so, 2): Symbol not found: _PyDict_ToAMQTable
Referenced from: /Library/Python/2.7/site-packages/_librabbitmq.so
Expected in: flat namespace
in /Library/Python/2.7/site-packages/_librabbitmq.so

Version 0.9.2 installs and works flawlessly though, but I would really like to use some of the changes in the newer versions.

Let me know if you need additional info.

@ask
Copy link
Contributor

ask commented Jun 19, 2012

What is the output of pip install?

Are you able to do:

python setup.py build

from the source code directory?
and what is the output?

It installs fine here for me on OS X 10.7.4

@datfinesoul
Copy link
Author

I've attached the pip install log to the email (output.log). The
python build log is in build.log. This is trying to build 0.9.6.

Yeah I don't get any errors on the install, but since I tried to use
versions higher than 0.9.2, the import always fails.

I also get the same behavior with the import if I do a python setup.py
install and then try " python -c 'import librabbitmq' ". This was a
brand new install of OS X Lion with the xcode command line tools.
Maybe I'm missing some flags during the install?

On Tue, Jun 19, 2012 at 1:42 AM, Ask Solem Hoel
reply@reply.github.com
wrote:

What is the output of pip install?

Are you able to do:

   python setup.py build

from the source code directory?
and what is the output?

It installs fine here for me on OS X 10.7.4


Reply to this email directly or view it on GitHub:
#5 (comment)

@datfinesoul
Copy link
Author

In case the attachments didn't make it, here is the pip install librabbitmq==0.9.6 one:

Downloading/unpacking librabbitmq==0.9.6
Running setup.py egg_info for package librabbitmq

warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'

Installing collected packages: librabbitmq
Running setup.py install for librabbitmq
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking build system type... i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64
checking host system type... (cached) i386-apple-darwin11.4.0
checking for inline... inline
checking whether byte ordering is bigendian... no
checking location of AMQP codegen directory... ../rabbitmq-codegen
checking finding a python with simplejson installed... python
checking for poptGetContext in -lpopt... no
checking for xmlto... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating librabbitmq/Makefile
config.status: creating tests/Makefile
config.status: creating examples/Makefile
config.status: creating tools/Makefile
config.status: creating tools/doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
- configure rabbitmq-c...
- generating 'clib/librabbitmq/amqp_framing.h'
/usr/bin/python clib/librabbitmq/codegen.py header rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.h
- generating 'clib/librabbitmq/amqp_framing.c'
/usr/bin/python clib/librabbitmq/codegen.py body rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.c
building '_librabbitmq' extension
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
Modules/_librabbitmq/connection.c:115: warning: implicit conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘basic_properties_to_PyDict’:
Modules/_librabbitmq/connection.c:252: warning: implicit conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c:286: warning: implicit conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c:306: warning: implicit conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘PyRabbitMQ_recv’:
Modules/_librabbitmq/connection.c:888: warning: implicit conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
Modules/_librabbitmq/connection.c:115: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_api.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_api.c:43:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_api.c:43:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
clib/librabbitmq/amqp_api.c:145: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_mem.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_url.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_url.c:40:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_url.c:40:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_url.c: In function ‘amqp_parse_url’:
clib/librabbitmq/amqp_url.c:177: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_connection.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_connection.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
clib/librabbitmq/amqp_connection.c:116: warning: comparison between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
clib/librabbitmq/amqp_connection.c:327: warning: comparison between signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_connection.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
clib/librabbitmq/amqp_connection.c:116: warning: comparison between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_handle_input’:
clib/librabbitmq/amqp_connection.c:211: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:232: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:249: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:313: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:318: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
clib/librabbitmq/amqp_connection.c:327: warning: comparison between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_send_frame’:
clib/librabbitmq/amqp_connection.c:358: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:367: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:412: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:415: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_socket.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_socket.c:42:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_socket.c:42:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_socket.c: In function ‘amqp_send_header’:
clib/librabbitmq/amqp_socket.c:86: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_socket.c: In function ‘wait_frame_inner’:
clib/librabbitmq/amqp_socket.c:177: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed and unsigned
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_framing.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_framing.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_framing.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_method’:
clib/librabbitmq/amqp_framing.c:1181: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1184: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1187: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1198: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1204: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1208: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1211: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1215: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1218: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1225: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1232: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1245: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1252: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1262: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1265: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1272: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1276: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1279: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1286: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1293: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1303: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1306: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1320: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1325: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1347: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1350: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1362: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1365: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1386: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1389: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1410: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1413: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1432: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1441: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1462: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1465: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1476: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1481: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1494: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1499: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1517: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1520: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1529: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1532: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1553: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1560: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1570: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1577: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1592: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1606: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1623: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1634: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1649: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1656: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1664: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1672: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1679: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1686: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1689: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1698: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1701: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1704: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1707: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1710: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1713: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1716: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1723: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1726: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_properties’:
clib/librabbitmq/amqp_framing.c:1758: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1761: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1764: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1767: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1770: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1839: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1842: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1845: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_table.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_table.c:39:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
clib/librabbitmq/amqp_table.c:415: warning: comparison between signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_table.c:39:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_array’:
clib/librabbitmq/amqp_table.c:281: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_table’:
clib/librabbitmq/amqp_table.c:313: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_field_value’:
clib/librabbitmq/amqp_table.c:376: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
clib/librabbitmq/amqp_table.c:414: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c:415: warning: comparison between signed and unsigned
clib/librabbitmq/amqp_table.c:415: warning: implicit conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c:422: warning: implicit conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/unix/socket.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/unix/socket.c:44:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/unix/socket.c:44:
clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 -Wl,-F. -arch i386 -arch x86_64 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o -o build/lib.macosx-10.7-intel-2.7/_librabbitmq.so

warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'

Successfully installed librabbitmq
Cleaning up...

@datfinesoul
Copy link
Author

Here is the python setup.py build output:

running build
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking build system type... i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin11.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64
checking host system type... (cached) i386-apple-darwin11.4.0
checking for inline... inline
checking whether byte ordering is bigendian... no
checking location of AMQP codegen directory... ../rabbitmq-codegen
checking finding a python with simplejson installed... python
checking for poptGetContext in -lpopt... no
checking for xmlto... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating librabbitmq/Makefile
config.status: creating tests/Makefile
config.status: creating examples/Makefile
config.status: creating tools/Makefile
config.status: creating tools/doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

  • configure rabbitmq-c...
  • generating 'clib/librabbitmq/amqp_framing.h'
    /usr/bin/python clib/librabbitmq/codegen.py header rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.h
  • generating 'clib/librabbitmq/amqp_framing.c'
    /usr/bin/python clib/librabbitmq/codegen.py body rabbitmq-codegen/amqp-rabbitmq-0.9.1.json clib/librabbitmq/amqp_framing.c
    running build_py
    creating build
    creating build/lib.macosx-10.7-intel-2.7
    creating build/lib.macosx-10.7-intel-2.7/librabbitmq
    copying librabbitmq/init.py -> build/lib.macosx-10.7-intel-2.7/librabbitmq
    running build_ext
    building '_librabbitmq' extension
    creating build/temp.macosx-10.7-intel-2.7
    creating build/temp.macosx-10.7-intel-2.7/Modules
    creating build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq
    creating build/temp.macosx-10.7-intel-2.7/clib
    creating build/temp.macosx-10.7-intel-2.7/clib/librabbitmq
    creating build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c Modules/_librabbitmq/connection.c -o build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
    Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
    Modules/_librabbitmq/connection.c:115: warning: implicit conversion shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘basic_properties_to_PyDict’:
    Modules/_librabbitmq/connection.c:252: warning: implicit conversion shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c:286: warning: implicit conversion shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c:306: warning: implicit conversion shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘PyRabbitMQ_recv’:
    Modules/_librabbitmq/connection.c:888: warning: implicit conversion shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
    Modules/_librabbitmq/connection.c:115: warning: implicit conversion shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_api.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_api.c:43:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
    clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_api.c:43:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
    clib/librabbitmq/amqp_api.c:145: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_mem.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_url.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_url.c:40:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_url.c:40:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_url.c: In function ‘amqp_parse_url’:
    clib/librabbitmq/amqp_url.c:177: warning: implicit conversion shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_connection.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_connection.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
    clib/librabbitmq/amqp_connection.c:116: warning: comparison between signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
    clib/librabbitmq/amqp_connection.c:327: warning: comparison between signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_connection.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
    clib/librabbitmq/amqp_connection.c:116: warning: comparison between signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_handle_input’:
    clib/librabbitmq/amqp_connection.c:211: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:232: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:249: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:313: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:318: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
    clib/librabbitmq/amqp_connection.c:327: warning: comparison between signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_send_frame’:
    clib/librabbitmq/amqp_connection.c:358: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:367: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:412: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:415: warning: implicit conversion shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_socket.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_socket.c:42:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
    clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_socket.c:42:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_send_header’:
    clib/librabbitmq/amqp_socket.c:86: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_socket.c: In function ‘wait_frame_inner’:
    clib/librabbitmq/amqp_socket.c:177: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
    clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed and unsigned
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_framing.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_framing.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_framing.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_method’:
    clib/librabbitmq/amqp_framing.c:1181: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1184: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1187: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1198: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1204: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1208: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1211: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1215: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1218: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1225: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1232: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1245: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1252: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1262: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1265: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1272: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1276: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1279: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1286: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1293: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1303: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1306: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1320: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1325: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1347: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1350: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1362: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1365: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1386: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1389: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1410: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1413: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1432: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1441: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1462: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1465: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1476: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1481: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1494: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1499: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1517: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1520: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1529: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1532: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1553: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1560: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1570: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1577: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1592: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1606: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1623: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1634: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1649: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1656: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1664: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1672: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1679: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1686: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1689: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1698: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1701: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1704: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1707: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1710: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1713: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1716: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1723: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1726: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_properties’:
    clib/librabbitmq/amqp_framing.c:1758: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1761: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1764: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1767: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1770: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1839: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1842: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1845: warning: implicit conversion shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/amqp_table.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_table.c:39:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
    clib/librabbitmq/amqp_table.c:415: warning: comparison between signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_table.c:39:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_array’:
    clib/librabbitmq/amqp_table.c:281: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_table’:
    clib/librabbitmq/amqp_table.c:313: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_field_value’:
    clib/librabbitmq/amqp_table.c:376: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
    clib/librabbitmq/amqp_table.c:414: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c:415: warning: comparison between signed and unsigned
    clib/librabbitmq/amqp_table.c:415: warning: implicit conversion shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c:422: warning: implicit conversion shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib -Iclib/librabbitmq/unix -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c clib/librabbitmq/unix/socket.c -o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/unix/socket.c:44:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/unix/socket.c:44:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t a prototype
    llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch i386 -arch x86_64 -Wl,-F. -arch i386 -arch x86_64 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall -ansi build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o -o build/lib.macosx-10.7-intel-2.7/_librabbitmq.so

@ask
Copy link
Contributor

ask commented Jun 23, 2012

Could you try compiling it with:

MACOSX_DEPLOYMENT_TARGET=10.7  python setup.py build

Weirdly, I also have 10.7.4 but my Python version is 2.7.2, is this the system version?

@datfinesoul
Copy link
Author

Yeah 2.7.1 is what came with my install of Lion. Here are the three outputs.

1.) Import from python after install
2.) Build output
3.) Install output

This time I ran inside virtualenv again, but the output of the ve and
non-ve version are pretty much idential, outside of the paths.

Also, I create my virtualenv with the --no-site-packages parameter.

Thanks again for all your help,
Phil

Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import librabbitmq
Traceback (most recent call last):
File "", line 1, in
File "/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg/librabbitmq/init.py",
line 4, in
import _librabbitmq
ImportError: dlopen(/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg/_librabbitmq.so,
2): Symbol not found: _PyDict_ToAMQTable
Referenced from:
/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg/_librabbitmq.so
Expected in: flat namespace
in /Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg/_librabbitmq.so

$ MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py build
running build

  • configure rabbitmq-c...
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... ./install-sh -c -d
    checking for gawk... no
    checking for mawk... no
    checking for nawk... no
    checking for awk... awk
    checking whether make sets $(MAKE)... yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... none
    checking build system type... i386-apple-darwin11.4.0
    checking host system type... i386-apple-darwin11.4.0
    checking how to print strings... printf
    checking for a sed that does not truncate output... /usr/bin/sed
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for fgrep... /usr/bin/grep -F
    checking for ld used by gcc...
    /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
    checking if the linker
    (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU
    ld... no
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
    checking the name lister (/usr/bin/nm) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 196608
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
    option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for ar... ar
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm output from gcc object... ok
    checking for dsymutil... dsymutil
    checking for nmedit... nmedit
    checking for lipo... lipo
    checking for otool... otool
    checking for otool64... no
    checking for -single_module linker flag... yes
    checking for -exported_symbols_list linker flag... yes
    checking for -force_load linker flag... no
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fno-common -DPIC
    checking if gcc PIC flag -fno-common -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker
    (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports
    shared libraries... yes
    checking dynamic linker characteristics... darwin11.4.0 dyld
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for ANSI C header files... (cached) yes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64
    checking host system type... (cached) i386-apple-darwin11.4.0
    checking for inline... inline
    checking whether byte ordering is bigendian... no
    checking location of AMQP codegen directory... ../rabbitmq-codegen
    checking finding a python with simplejson installed... python
    checking for poptGetContext in -lpopt... no
    checking for xmlto... no
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating librabbitmq/Makefile
    config.status: creating tests/Makefile
    config.status: creating examples/Makefile
    config.status: creating tools/Makefile
    config.status: creating tools/doc/Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
  • generating 'clib/librabbitmq/amqp_framing.h'
    /Users/phadviger/code/rabbit/ve/bin/python clib/librabbitmq/codegen.py
    header rabbitmq-codegen/amqp-rabbitmq-0.9.1.json
    clib/librabbitmq/amqp_framing.h
  • generating 'clib/librabbitmq/amqp_framing.c'
    /Users/phadviger/code/rabbit/ve/bin/python clib/librabbitmq/codegen.py
    body rabbitmq-codegen/amqp-rabbitmq-0.9.1.json
    clib/librabbitmq/amqp_framing.c
    running build_py
    creating build
    creating build/lib.macosx-10.7-intel-2.7
    creating build/lib.macosx-10.7-intel-2.7/librabbitmq
    copying librabbitmq/init.py -> build/lib.macosx-10.7-intel-2.7/librabbitmq
    running build_ext
    building '_librabbitmq' extension
    creating build/temp.macosx-10.7-intel-2.7
    creating build/temp.macosx-10.7-intel-2.7/Modules
    creating build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq
    creating build/temp.macosx-10.7-intel-2.7/clib
    creating build/temp.macosx-10.7-intel-2.7/clib/librabbitmq
    creating build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c Modules/_librabbitmq/connection.c -o
    build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
    Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
    Modules/_librabbitmq/connection.c:115: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘basic_properties_to_PyDict’:
    Modules/_librabbitmq/connection.c:252: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c:286: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c:306: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘PyRabbitMQ_recv’:
    Modules/_librabbitmq/connection.c:888: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
    Modules/_librabbitmq/connection.c:115: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_api.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_api.c:43:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
    clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_api.c:43:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
    clib/librabbitmq/amqp_api.c:145: warning: implicit conversion shortens
    64-bit value into a 32-bit value
    clib/librabbitmq/amqp_api.c:154: warning: comparison between signed and unsigned
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_mem.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_url.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_url.c:40:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_url.c:40:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_url.c: In function ‘amqp_parse_url’:
    clib/librabbitmq/amqp_url.c:177: warning: implicit conversion shortens
    64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_connection.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_connection.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
    clib/librabbitmq/amqp_connection.c:116: warning: comparison between
    signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
    clib/librabbitmq/amqp_connection.c:327: warning: comparison between
    signed and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_connection.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
    clib/librabbitmq/amqp_connection.c:116: warning: comparison between
    signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_handle_input’:
    clib/librabbitmq/amqp_connection.c:211: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:232: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:249: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:313: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:318: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
    clib/librabbitmq/amqp_connection.c:327: warning: comparison between
    signed and unsigned
    clib/librabbitmq/amqp_connection.c: In function ‘amqp_send_frame’:
    clib/librabbitmq/amqp_connection.c:358: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:367: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:412: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_connection.c:415: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_socket.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_socket.c:42:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
    clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed
    and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_socket.c:42:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_send_header’:
    clib/librabbitmq/amqp_socket.c:86: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_socket.c: In function ‘wait_frame_inner’:
    clib/librabbitmq/amqp_socket.c:177: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
    clib/librabbitmq/amqp_socket.c:442: warning: comparison between signed
    and unsigned
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_framing.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_framing.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_framing.c:41:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_method’:
    clib/librabbitmq/amqp_framing.c:1181: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1184: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1187: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1198: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1204: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1208: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1211: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1215: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1218: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1225: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1232: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1245: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1252: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1262: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1265: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1272: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1276: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1279: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1286: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1293: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1303: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1306: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1320: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1325: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1347: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1350: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1362: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1365: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1386: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1389: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1410: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1413: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1432: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1441: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1462: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1465: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1476: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1481: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1494: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1499: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1517: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1520: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1529: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1532: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1553: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1560: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1570: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1577: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1592: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1606: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1623: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1634: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1649: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1656: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1664: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1672: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1679: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1686: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1689: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1698: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1701: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1704: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1707: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1710: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1713: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1716: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1723: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1726: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_properties’:
    clib/librabbitmq/amqp_framing.c:1758: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1761: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1764: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1767: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1770: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1839: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1842: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_framing.c:1845: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/amqp_table.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_table.c:39:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
    clib/librabbitmq/amqp_table.c:415: warning: comparison between signed
    and unsigned
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/amqp_table.c:39:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_array’:
    clib/librabbitmq/amqp_table.c:281: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_table’:
    clib/librabbitmq/amqp_table.c:313: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_field_value’:
    clib/librabbitmq/amqp_table.c:376: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
    clib/librabbitmq/amqp_table.c:414: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c:415: warning: comparison between signed
    and unsigned
    clib/librabbitmq/amqp_table.c:415: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    clib/librabbitmq/amqp_table.c:422: warning: implicit conversion
    shortens 64-bit value into a 32-bit value
    llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
    -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
    -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
    -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
    -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
    x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
    -Iclib/librabbitmq/unix
    -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
    -c clib/librabbitmq/unix/socket.c -o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/unix/socket.c:44:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    In file included from clib/librabbitmq/amqp_private.h:62,
    from clib/librabbitmq/unix/socket.c:44:
    clib/librabbitmq/unix/socket.h:57: warning: function declaration isn’t
    a prototype
    llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F. -arch
    i386 -arch x86_64 -Wl,-F. -arch i386 -arch x86_64 -fno-strict-aliasing
    -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing
    -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall
    -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall
    -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -W -Wall
    -ansi build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
    build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o -o
    build/lib.macosx-10.7-intel-2.7/_librabbitmq.so
    (ve)

$ MACOSX_DEPLOYMENT_TARGET=10.7 python setup.py install
running install
running bdist_egg
running egg_info
writing librabbitmq.egg-info/PKG-INFO
writing top-level names to librabbitmq.egg-info/top_level.txt
writing dependency_links to librabbitmq.egg-info/dependency_links.txt
reading manifest file 'librabbitmq.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '' under directory 'tests'
no previously-included directories found matching '
.pyc'
no previously-included directories found matching '.o'
no previously-included directories found matching '
.la'
no previously-included directories found matching '.so'
no previously-included directories found matching '
.dylib'
writing manifest file 'librabbitmq.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.7-intel/egg
running install_lib
running build_py
running build_ext
creating build/bdist.macosx-10.7-intel
creating build/bdist.macosx-10.7-intel/egg
copying build/lib.macosx-10.7-intel-2.7/_librabbitmq.so ->
build/bdist.macosx-10.7-intel/egg
creating build/bdist.macosx-10.7-intel/egg/librabbitmq
copying build/lib.macosx-10.7-intel-2.7/librabbitmq/init.py ->
build/bdist.macosx-10.7-intel/egg/librabbitmq
byte-compiling build/bdist.macosx-10.7-intel/egg/librabbitmq/init.py
to init.pyc
creating stub loader for _librabbitmq.so
byte-compiling build/bdist.macosx-10.7-intel/egg/_librabbitmq.py to
_librabbitmq.pyc
creating build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying librabbitmq.egg-info/PKG-INFO ->
build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying librabbitmq.egg-info/SOURCES.txt ->
build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying librabbitmq.egg-info/dependency_links.txt ->
build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying librabbitmq.egg-info/not-zip-safe ->
build/bdist.macosx-10.7-intel/egg/EGG-INFO
copying librabbitmq.egg-info/top_level.txt ->
build/bdist.macosx-10.7-intel/egg/EGG-INFO
writing build/bdist.macosx-10.7-intel/egg/EGG-INFO/native_libs.txt
creating dist
creating 'dist/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg' and
adding 'build/bdist.macosx-10.7-intel/egg' to it
removing 'build/bdist.macosx-10.7-intel/egg' (and everything under it)
Processing librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg
creating /Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg
Extracting librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg to
/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages
Adding librabbitmq 0.9.6 to easy-install.pth file

Installed /Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq-0.9.6-py2.7-macosx-10.7-intel.egg
Processing dependencies for librabbitmq==0.9.6
Finished processing dependencies for librabbitmq==0.9.6
(ve)

On Sat, Jun 23, 2012 at 6:08 AM, Ask Solem Hoel
reply@reply.github.com
wrote:

Could you try compiling it with:

   MACOSX_DEPLOYMENT_TARGET=10.7  python setup.py build

Weirdly, I also have 10.7.4 but my Python version is 2.7.2, is this the system version?


Reply to this email directly or view it on GitHub:
#5 (comment)

@ask ask closed this as completed in f24f525 Jun 23, 2012
@ask
Copy link
Contributor

ask commented Jun 23, 2012

Can you try to install 0.9.8 up on PyPI now?

pip install -U librabbitmq

(it seems that the reason was that the inline hack I use defines the functions 'extern' on non-gcc compilers,
and the default Python shipped with OS X is compiled with llvm-gcc)

@datfinesoul
Copy link
Author

I'm still getting the same problem with this version as well. I've
included all the logs again below. I really appreciate you looking
into this.

$ pip install -U librabbitmq
Downloading/unpacking librabbitmq
Downloading librabbitmq-0.9.8.tar.gz (438Kb): 438Kb downloaded
Running setup.py egg_info for package librabbitmq

warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'

Installing collected packages: librabbitmq
Running setup.py install for librabbitmq
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking build system type... i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc...
/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for
/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to
reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker
(/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports
shared libraries... yes
checking dynamic linker characteristics... darwin11.4.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for ANSI C header files... (cached) yes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64
checking host system type... (cached) i386-apple-darwin11.4.0
checking for inline... inline
checking whether byte ordering is bigendian... no
checking location of AMQP codegen directory... ../rabbitmq-codegen
checking finding a python with simplejson installed... python
checking for poptGetContext in -lpopt... no
checking for xmlto... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating librabbitmq/Makefile
config.status: creating tests/Makefile
config.status: creating examples/Makefile
config.status: creating tools/Makefile
config.status: creating tools/doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
- configure rabbitmq-c...
- generating 'clib/librabbitmq/amqp_framing.h'
/Users/phadviger/code/rabbit/ve/bin/python
clib/librabbitmq/codegen.py header
rabbitmq-codegen/amqp-rabbitmq-0.9.1.json
clib/librabbitmq/amqp_framing.h
- generating 'clib/librabbitmq/amqp_framing.c'
/Users/phadviger/code/rabbit/ve/bin/python
clib/librabbitmq/codegen.py body
rabbitmq-codegen/amqp-rabbitmq-0.9.1.json
clib/librabbitmq/amqp_framing.c
building '_librabbitmq' extension
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c Modules/_librabbitmq/connection.c -o
build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
Modules/_librabbitmq/connection.c:76: warning: implicit conversion
shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘basic_properties_to_PyDict’:
Modules/_librabbitmq/connection.c:213: warning: implicit
conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c:247: warning: implicit
conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c:267: warning: implicit
conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘PyRabbitMQ_recv’:
Modules/_librabbitmq/connection.c:837: warning: implicit
conversion shortens 64-bit value into a 32-bit value
Modules/_librabbitmq/connection.c: In function ‘PyDict_ToAMQTable’:
Modules/_librabbitmq/connection.c:76: warning: implicit conversion
shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_api.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_api.c:43:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
clib/librabbitmq/amqp_api.c:154: warning: comparison between
signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_api.c:43:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_api.c: In function ‘amqp_basic_publish’:
clib/librabbitmq/amqp_api.c:145: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_api.c:154: warning: comparison between
signed and unsigned
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_mem.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_url.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_url.c:40:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_url.c:40:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_url.c: In function ‘amqp_parse_url’:
clib/librabbitmq/amqp_url.c:177: warning: implicit conversion
shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_connection.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_connection.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
clib/librabbitmq/amqp_connection.c:116: warning: comparison
between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
clib/librabbitmq/amqp_connection.c:327: warning: comparison
between signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_connection.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_connection.c: In function ‘amqp_tune_connection’:
clib/librabbitmq/amqp_connection.c:116: warning: comparison
between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_handle_input’:
clib/librabbitmq/amqp_connection.c:211: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:232: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:249: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:313: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:318: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c: In function ‘amqp_release_buffers’:
clib/librabbitmq/amqp_connection.c:327: warning: comparison
between signed and unsigned
clib/librabbitmq/amqp_connection.c: In function ‘amqp_send_frame’:
clib/librabbitmq/amqp_connection.c:358: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:367: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:412: warning: implicit
conversion shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_connection.c:415: warning: implicit
conversion shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_socket.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_socket.c:42:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
clib/librabbitmq/amqp_socket.c:442: warning: comparison between
signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_socket.c:42:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_socket.c: In function ‘amqp_send_header’:
clib/librabbitmq/amqp_socket.c:86: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_socket.c: In function ‘wait_frame_inner’:
clib/librabbitmq/amqp_socket.c:177: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_socket.c: In function ‘amqp_login_inner’:
clib/librabbitmq/amqp_socket.c:442: warning: comparison between
signed and unsigned
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_framing.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_framing.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_framing.c:41:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_method’:
clib/librabbitmq/amqp_framing.c:1181: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1184: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1187: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1198: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1204: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1208: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1211: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1215: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1218: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1225: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1232: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1245: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1252: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1262: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1265: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1272: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1276: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1279: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1286: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1293: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1303: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1306: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1320: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1325: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1347: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1350: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1362: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1365: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1386: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1389: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1410: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1413: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1432: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1441: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1462: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1465: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1476: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1481: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1494: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1499: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1517: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1520: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1529: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1532: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1553: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1560: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1570: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1577: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1592: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1606: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1623: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1634: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1649: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1656: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1664: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1672: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1679: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1686: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1689: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1698: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1701: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1704: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1707: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1710: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1713: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1716: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1723: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1726: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c: In function ‘amqp_encode_properties’:
clib/librabbitmq/amqp_framing.c:1758: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1761: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1764: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1767: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1770: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1839: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1842: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_framing.c:1845: warning: implicit conversion
shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/amqp_table.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_table.c:39:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
clib/librabbitmq/amqp_table.c:415: warning: comparison between
signed and unsigned
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/amqp_table.c:39:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_array’:
clib/librabbitmq/amqp_table.c:281: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_table’:
clib/librabbitmq/amqp_table.c:313: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_encode_field_value’:
clib/librabbitmq/amqp_table.c:376: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c: In function ‘amqp_table_entry_cmp’:
clib/librabbitmq/amqp_table.c:414: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c:415: warning: comparison between
signed and unsigned
clib/librabbitmq/amqp_table.c:415: warning: implicit conversion
shortens 64-bit value into a 32-bit value
clib/librabbitmq/amqp_table.c:422: warning: implicit conversion
shortens 64-bit value into a 32-bit value
llvm-gcc-4.2 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi -pipe -Iclib/librabbitmq -Iclib
-Iclib/librabbitmq/unix
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-c clib/librabbitmq/unix/socket.c -o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/unix/socket.c:44:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
In file included from clib/librabbitmq/amqp_private.h:62,
from clib/librabbitmq/unix/socket.c:44:
clib/librabbitmq/unix/socket.h:57: warning: function declaration
isn’t a prototype
llvm-gcc-4.2 -Wl,-F. -bundle -undefined dynamic_lookup -Wl,-F.
-arch i386 -arch x86_64 -Wl,-F. -arch i386 -arch x86_64
-fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common
-fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX
-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g
-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch
x86_64 -W -Wall -ansi
build/temp.macosx-10.7-intel-2.7/Modules/_librabbitmq/connection.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_api.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_mem.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_url.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_connection.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_socket.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_framing.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/amqp_table.o
build/temp.macosx-10.7-intel-2.7/clib/librabbitmq/unix/socket.o -o
build/lib.macosx-10.7-intel-2.7/_librabbitmq.so

warning: no files found matching '*' under directory 'tests'
no previously-included directories found matching '*.pyc'
no previously-included directories found matching '*.o'
no previously-included directories found matching '*.la'
no previously-included directories found matching '*.so'
no previously-included directories found matching '*.dylib'

Successfully installed librabbitmq
Cleaning up...
(ve)
phadviger@macair-01 ~/code/rabbit ()
$ python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import librabbitmq
Traceback (most recent call last):
File "", line 1, in
File "/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/librabbitmq/init.py",
line 4, in
import _librabbitmq
ImportError: dlopen(/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/_librabbitmq.so,
2): Symbol not found: _PyDict_ToAMQTable
Referenced from:
/Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/_librabbitmq.so
Expected in: flat namespace
in /Users/phadviger/code/rabbit/ve/lib/python2.7/site-packages/_librabbitmq.so

On Sat, Jun 23, 2012 at 11:37 AM, Ask Solem Hoel
reply@reply.github.com
wrote:

Can you try to install 0.9.8 up on PyPI now?

   pip install -U librabbitmq

(it seems that the reason was that the inline hack I use defines the functions 'extern' on non-gcc compilers,
and the default Python shipped with OS X is compiled with llvm-gcc)


Reply to this email directly or view it on GitHub:
#5 (comment)

@ask
Copy link
Contributor

ask commented Jun 23, 2012

hehe, ok, thank you for your patience!

I just uploaded 0.9.9 to PyPI, could you try that?

pip install -U librabbitmq

as always

@datfinesoul
Copy link
Author

Awesome! It works, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants