GithubHelp home page GithubHelp logo

Compilation errors about rabbitmq-c HOT 7 CLOSED

alanxz avatar alanxz commented on September 22, 2024
Compilation errors

from rabbitmq-c.

Comments (7)

Tapolsky avatar Tapolsky commented on September 22, 2024

Admins, please make my post in plain text format. Patch seems ugly..

from rabbitmq-c.

alanxz avatar alanxz commented on September 22, 2024

What version of make, gmake, and automake are you using?

from rabbitmq-c.

alanxz avatar alanxz commented on September 22, 2024

Also since I don't have a FreeBSD box, what is being defined before netinet/tcp.h is included that causes it to error out?

from rabbitmq-c.

Tapolsky avatar Tapolsky commented on September 22, 2024

uname -a
FreeBSD cc 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 #1: Fri Jun 22 17:34:45 UTC 2012 root@ccc:/usr/obj/usr/src/sys/Z-AMD64 amd64

gmake -v
GNU Make 3.82
Built for amd64-portbld-freebsd8.3

automake --version
automake (GNU automake) 1.12.3

don't know, how to view make version.

It is only in librabbitmq/unix/socket.h defined "#include <netinet/tcp.h>", so before this include i see only:
#ifndef librabbitmq_unix_socket_h
#define librabbitmq_unix_socket_h

#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>

from rabbitmq-c.

alanxz avatar alanxz commented on September 22, 2024

Hmm, are gmake and make the same command on your system? I know on GNU/Linux typically gmake and make are both gnu-make. I realize this may not be the case on a *BSD system.

As for the netinet/tcp.h include weirdness, sys/cdefs.h should be the one defining what u_int32_t is, it probably shouldn't be up to a client program to do that. I suspect something in one of the rabbitmq-c include files is causing sys/cdefs.h not to define things.

from rabbitmq-c.

alanxz avatar alanxz commented on September 22, 2024

Actually could you try moving #include <sys/types.h> so that it comes before before the #include <netinet/tcp.h> line in librabbitmq/unix/socket.h. I suspect there's an include order issue here...

I would do this myself, but I don't have a BSD system handy.

from rabbitmq-c.

alanxz avatar alanxz commented on September 22, 2024

@Tapolsky - I may have rectified the issue with a recent pull request merge. See #58.

from rabbitmq-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.