[rabbitmq-discuss] compiling rabbitmq-c under mingw

Jim Irrer irrer at umich.edu
Wed Jul 14 23:00:20 BST 2010

Hi -

I know this is experimental, but I'm trying to compile the rabbitmq-c libs
under mingw on Windows.

The make gets to the point where it needs the include file arpa/inet.h , but
that is not provided by mingw.  Is there a workaround?

I've looked around the RabbitMQ web site but was not smart enough to find
any instructions for building C on Windows.  If there are some, please point
me to the URL.

Also, would it be possible to post a copy of the binary version of the
or wouldn't that make sense?

FYI - the make output says:

PYTHONPATH=/home/irrer/rabbitmq-c-default/codegen python2.5 ./codegen.py
header /home/irrer/rabbitmq-c-default/codegen/amqp-0.8.json amqp_framing.h
PYTHONPATH=/home/irrer/rabbitmq-c-default/codegen python2.5 ./codegen.py
body /home/irrer/rabbitmq-c-default/codegen/amqp-0.8.json amqp_framing.c
make  all-am
make[3]: Entering directory `/home/irrer/rabbitmq-c-default/librabbitmq'
if /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I..     -g -O2 -Wall -MT amqp_mem.lo -MD -MP -MF ".deps/amqp_mem.Tpo" -c -o
amqp_mem.lo amqp_mem.c; \
        then mv -f ".deps/amqp_mem.Tpo" ".deps/amqp_mem.Plo"; else rm -f
".deps/amqp_mem.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -MT amqp_mem.lo -MD -MP -MF
.deps/amqp_mem.Tpo -c amqp_mem.c  -DDLL_EXPORT -DPIC -o .libs/amqp_mem.o
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -MT amqp_mem.lo -MD -MP -MF
.deps/amqp_mem.Tpo -c amqp_mem.c -o amqp_mem.o >/dev/null 2>&1 if /bin/sh
../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..     -g
-O2 -Wall -MT amqp_table.lo -MD -MP -MF ".deps/amqp_ta
ble.Tpo" -c -o amqp_table.lo amqp_table.c;
        then mv -f ".deps/amqp_table.Tpo" ".deps/amqp_table.Plo"; else rm -f
".deps/amqp_table.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -MT amqp_table.lo -MD -MP -MF
.deps/amqp_table.Tpo -c amqp_table.c  -DDLL_EXPORT -DPIC -o
In file included from amqp_table.c:8:0:
amqp_private.h:8:56: fatal error: arpa/inet.h: No such file or directory
compilation terminated.

Thanks for any advice,

- Jim

Jim Irrer     irrer at umich.edu       (734) 647-4409
University of Michigan Hospital Radiation Oncology
519 W. William St.             Ann Arbor, MI 48103
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100714/77a8415a/attachment.htm>

More information about the rabbitmq-discuss mailing list