[erlang-bugs] R11B-2 odbc compilation on MacOS X ?

Christophe Romain christophe.romain@REDACTED
Mon Nov 13 12:04:11 CET 2006


Hello,

I could not compile odbcserver.c as it comes on R11B-2 (never tryed on 
previous R11 versions)

the problem is line 1496
#ifdef WIN32
static void connect_to_erlang(SOCKET socket, int port)
#elif UNIX
static void connect_to_erlang(int socket, int port)
#endif
{
     struct sockaddr_in sin;

     memset(&sin, 0, sizeof(sin));

it can not defines size of struct sockaddr_in
I had to add the following include:

#include <netinet/in.h>


moreover, the package unixodbc (which is required as a dependency) is 
often installed as a fink package into /sw/lib and the generated 
Makefile does not know about it. I manually added the following gcc 
options to make it compile:

-L/sw/lib -lodbc

I'm using Panther. the problems may be the same on Tiger but I don't 
know if it is reproductible on other MacOS X systems.


Best Regards.




More information about the erlang-bugs mailing list