[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem Compiling on OS X Panther

From: Justin Erenkrantz <justin_at_erenkrantz.com>
Date: 2003-11-10 08:23:27 CET

--On Sunday, November 9, 2003 7:30 AM -0500 "Derek J. Balling"
<dredd@megacity.org> wrote:

> ./configure runs just fine, but when I go to build, I get:
>
> make[3]: Nothing to be done for `local-all'.
> Making all in poll/unix
> /bin/sh /Users/dredd/subversion-0.32.1/apr/libtool --silent --mode=compile
> gcc -g -O2 -DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
> -no-cpp-precomp -I../../include -I../../include/arch/unix
> -I../../include/arch/unix -c poll.c && touch poll.lo

0.32.1 compiles fine for me on 10.3. (I just tried from the clean tarball.)

% grep POLL apr/include/arch/unix/apr_private.h | grep '^#define'
#define HAVE_POLL 1
#define HAVE_POLLIN 1
#define HAVE_POLL_H 1
#define HAVE_SYS_POLL_H 1

Do you have the same #define's in apr_private.h (output of autoheader in APR)?

Ensure that your /usr/include/poll.h has the struct pollfd defined. Here's an
interesting tidbit from that file:

#ifndef POLL_NO_WARN
#warning "poll() functionality for Mac OS X is implemented via an emulation
layer on top of select(), not in the kernel directly. It is recommended that
programs running under OS X 10.3 prefer select() over poll(). Configure
scripts should look for the _POLL_EMUL_H_ define (instead of _POLL_H_ or
_SYS_POLL_H_) and avoid implementations where poll is not implemented in the
kernel."
#endif

Hmph. Perhaps we should build that logic into APR to avoid poll() on 10.3 in
this case, but regardless it's not breaking for me here.

Anyone else seeing this? -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 10 08:24:46 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.