cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1736875 ] 7.16.2 fails to compile against Mac OS 10.2 SDK

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 13 Jun 2007 20:06:48 -0700

Bugs item #1736875, was opened at 2007-06-13 23:06
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1736875&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dave Vasilevsky (vasi)
Assigned to: Daniel Stenberg (bagder)
Summary: 7.16.2 fails to compile against Mac OS 10.2 SDK

Initial Comment:
I'm distributing curl for Mac OS X 10.2 and higher, so I'm compiling against the MacOSX10.2.8 SDK on Mac OS X 10.4.9. Compiling bails with the error at the end of this report, with POLLIN, POLLOUT and friends defined both in lib/select.h and <sys/poll.h>.

It looks like the error occurs because HAVE_SYS_POLL_H is set but HAVE_POLL is not, as poll is disabled on OS X. A fix would be only #include'ing <sys/poll.h> if HAVE_POLL is not defined. Or alternatively, just wrap a section of lib/select.h in #ifndef, eg:

#ifndef POLLIN
#define POLLIN 0x01
...
#define POLLRDBAND POLLPRI
#endif

Configure command line:

/Users/vasi/Desktop/xmoto/src/curl-7.16.2/configure --prefix=/Users/vasi/Desktop/xmoto/prefix/10.2

Relevant environment variables:

CC=gcc-3.3
CFLAGS="-Os -isysroot=/Developer/SDKs/MacOSX10.2.8.sdk -arch=ppc -DCURL_DISABLE_NTLM"
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.2.8.sdk"
MACOSX_DEPLOYMENT_TARGET=10.2

Error log:

/bin/sh ../libtool --tag=CC --mode=compile gcc-3.3 -DHAVE_CONFIG_H -I/Users/vasi/Desktop/xmoto/src/curl-7.16.2/include -I../lib -I/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib -Os -isysroot=/Developer/SDKs/MacOSX10.2.8.sdk -arch=ppc -DCURL_DISABLE_NTLM -MT http.lo -MD -MP -MF .deps/http.Tpo -c -o http.lo /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c
 gcc-3.3 -DHAVE_CONFIG_H -I/Users/vasi/Desktop/xmoto/src/curl-7.16.2/include -I../lib -I/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib -Os -isysroot=/Developer/SDKs/MacOSX10.2.8.sdk -arch=ppc -DCURL_DISABLE_NTLM -MT http.lo -MD -MP -MF .deps/http.Tpo -c /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c -fno-common -DPIC -o .libs/http.o
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:51:1: warning: "POLLIN" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:62:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:52:1: warning: "POLLPRI" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:63:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:53:1: warning: "POLLOUT" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:64:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:54:1: warning: "POLLERR" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:83:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:55:1: warning: "POLLHUP" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:84:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:56:1: warning: "POLLNVAL" redefined
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:29,
                 from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/usr/include/sys/poll.h:85:1: warning: this is the location of the previous definition
In file included from /Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/http.c:96:
/Users/vasi/Desktop/xmoto/src/curl-7.16.2/lib/select.h:59: error: redefinition of `struct pollfd'
make[2]: *** [http.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1736875&group_id=976
Received on 2007-06-14

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET