monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: darwin works with small tweak


From: Jan-Henrik Haukeland
Subject: Re: darwin works with small tweak
Date: Thu, 18 Sep 2003 04:30:42 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux)

Rick Robino <address@hidden> writes:

> As I mentioned in that past letter I can make the error go away by
> adjusting just one expression in socket.c; 

Ah, but using the address of and address must be wrong, and by doing
this, the host variable must point to wonderland (i.e. the host
variable cannot contain sensible data in create_socket()):

Socket_T socket_new(const char *host, int port, int type, int use_ssl) {
 ....
 if((s= create_socket((char *)&host, port, proto, NET_TIMEOUT)) != -1)

Maybe it makes the compile/debug error go away, but I cannot really
see how this may work? I think we must find the solution otherwise. If
someone will buy me an Apple Power Book I'll fix it :-) Actually,
maybe monit has become such a good product that we (without shame) can
start asking for hardware contribution on our web-page? (Relax, Rick,
I'm not thinking about you here :) but maybe users from a big Company
will support us)

> The patch you added and my patch do result in a proper compile
> directive that builds ssl support without warnings, but with the
> latest cvs I get an error somewhere else so I can't actually test
> the end result.  FWIW, here is my current error:
>
> gcc -c -g -O2 -Wall -DREENTRANT -no-cpp-precomp -DNEED_SOCKLEN_T_DEFINED 
> -DDARWIN  -I. -I./device -I./http -I./process -I./protocols http/engine.c -o 
> http/engine.o
> http/engine.c: In function `socket_producer':
> http/engine.c:462: storage size of `fds' isn't known
> http/engine.c:466: `POLLIN' undeclared (first use in this function)
> http/engine.c:466: (Each undeclared identifier is reported only once
> http/engine.c:466: for each function it appears in.)
> http/engine.c:466: `POLLPRI' undeclared (first use in this function)
> http/engine.c:470: warning: implicit declaration of function `poll'
> http/engine.c:462: warning: unused variable `fds'
> make: *** [http/engine.o] Error 1

Oh no, just what I feared. Could you try to search your system for
poll.h (try for instance 'man poll' first), if you can find it,
include this header in http/engine.c and hopefully it will work.

If you do not have poll on your system, does this mean that poll()
does not exist on Mac OS X or only that you have not installed it?

-- 
Jan-Henrik Haukeland




reply via email to

[Prev in Thread] Current Thread [Next in Thread]