curl-library
No socklen_t, --enable-debug and config.h
Date: Wed, 4 Feb 2004 12:46:07 +0100
[This bounced yesterday -- trying again]
IRIX 6.5.8 doesn't have socklen_t (although later versions like 6.5.22 do),
which doesn't create problems for a minimal build, but it prevents compiling
with --enable-debug.
The configure script gets it right:
checking for socklen_t... no
which leads to
#define socklen_t int
in lib/config.h
So far so good. The problem:
When compiling with --enable-debug we have the following in src/main.c:
#ifdef CURLDEBUG
..
#include "../lib/memdebug.h"
#endif
And now there is nothing that includes ../lib/config.h and then socklen_t
is undefined and the build fails.
src/main.c includes src/config.h (via src/setup.h), but that config.h doesn't
define socklen_t like ../lib/config.h does.
-Tor
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-02-04