|
|
| Author |
Message |
|
| Guest |
Posted: Mon Nov 13, 2006 11:06 am |
|
|
|
Guest
|
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.
_______________________________________________
erlang-bugs mailing list
erlang-bugs@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-bugs
Post recived from mailinglist |
|
|
| Back to top |
|
| Abpoup57 |
Posted: Mon Apr 09, 2007 10:34 am |
|
|
|
Guest
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|