Bugs item #910023, was opened at 2004-03-04 13:25
Message generated for change (Comment added) made by jdhildeb
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=910023&group_id=4866
Category: WebKit
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Josh Minor (joshminor)
Assigned to: Jason Hildebrand (jdhildeb)
Summary: wkcgi doesn't build on Mac OS X
Initial Comment:
When building wkcgi on Mac OS X the following error is reported:
In file included from ../common/wkcommon.h:20,
from wkcgi.h:6,
from wkcgi.c:5:
/usr/include/resolv.h:174: error: field `nsaddr_list' has incomplete
type
/usr/include/resolv.h:188: error: field `addr' has incomplete type
/usr/include/resolv.h:216: error: field `sin' has incomplete type
The fix is to add:
#include <tcpd.h>
right before:
#include <resolv.h>
in common/wkcommon.h
----------------------------------------------------------------------
>Comment By: Jason Hildebrand (jdhildeb)
Date: 2004-03-26 17:25
Message:
Logged In: YES
user_id=173690
No confirmation from reporter, but I think the fix as
committed is correct. Closing this bug.
----------------------------------------------------------------------
Comment By: Jason Hildebrand (jdhildeb)
Date: 2004-03-04 13:44
Message:
Logged In: YES
user_id=173690
Thanks for the bug report. I will add the missing line, but
I don't want to break the build for other OS's which may not
have tcpd.h.
The file in question contains:
#if defined(__MACH__) && defined(__APPLE__)
#include <nameser.h>
#endif
#include <resolv.h>
#endif
I'm assuming __MACH__ and __APPLE__ are defined on OSX, so
the missing line can be added inside that #if like so:
#if defined(__MACH__) && defined(__APPLE__)
#include <nameser.h>
#include <tcpd.h>
#endif
#include <resolv.h>
#endif
Could you please confirm that this works for you?
----------------------------------------------------------------------
Comment By: Ian Bicking (ianbicking)
Date: 2004-03-04 13:42
Message:
Logged In: YES
user_id=210337
Do you know what we should use to determine the system?
(E.g., #ifdef BSD or somthing)
I can confirm that tcpd.h exists on a FreeBSD system, but
not on a Debian Linux system.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=104866&aid=910023&group_id=4866
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel