Summary: | kdebase-3.2alpha2 build fails on Solaris due to AC_CHECK_GETDOMAINNAME configure test | ||
---|---|---|---|
Product: | [Developer tools] configure | Reporter: | Torsten Kasch <tk> |
Component: | general | Assignee: | Stephan Kulow <coolo> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | patch for kde-common/admin/acinclude.m4.in |
Description
Torsten Kasch
2003-09-28 18:24:42 UTC
Created attachment 2612 [details] patch for kde-common/admin/acinclude.m4.in The problematic code seems to be the following lines from "config.h": --- snip --- #if !defined(HAVE_GETDOMAINNAME_PROTO) #ifdef __cplusplus extern "C" #endif int getdomainname (char *, size_t); #endif --- snip --- This check needs to #include <sys/types.h> (at least on Solaris) for "size_t" to be defined for the compiler. So far I've found 2 solutions for this issue: * remove the HAVE_GETDOMAINNAME_PROTO test completely since there's no getdomainname() on Solaris (see bug 50754) * apply the attached patch, works for me, but I'm not sure if it is the correct way to do this (I'm sure, Stephan will tell me... ;-) Subject: kde-common/admin CVS commit by coolo: the patch is fine CCMAIL: 65104-close@bugs.kde.org M +6 -2 acinclude.m4.in 2.405 --- kde-common/admin/acinclude.m4.in #2.404:2.405 @@ -2146,7 +2146,10 @@ #if !defined(HAVE_$5_PROTO) #ifdef __cplusplus -extern "C" +extern "C" { #endif $4; +#ifdef __cplusplus +} +#endif #endif ]) @@ -2183,5 +2186,6 @@ getdomainname(buffer, 200); ], - [int getdomainname (char *, size_t)], + [#include <sys/types.h> + int getdomainname (char *, size_t)], [GETDOMAINNAME]) ]) |