Summary: | Compile error on solaris 2.6 - kdepim-3.3.92/libkholidays/lunarphase.cpp uses sys/cdefs.h which is not available | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Steve Evans <stevee> |
Component: | general | Assignee: | Reinhold Kainhofer <reinhold> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bernd.kuhls |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Steve Evans
2005-02-18 10:56:26 UTC
Commenting out the includes of sys/cdefs.h and err.h allows it to compile CVS commit by adridg: Check for headers before using them (compiles fine on Solaris without cdefs and err). BUG: 99680 M +1 -1 configure.in.in 1.43 M +6 -0 libkholidays/lunarphase.cpp 1.3 --- kdepim/configure.in.in #1.42:1.43 @@ -2,5 +2,5 @@ AC_HEADER_DIRENT AC_HEADER_STDC -AC_CHECK_HEADERS(fcntl.h sys/sysctl.h sys/param.h sys/time.h sys/types.h unistd.h values.h sys/limits.h) +AC_CHECK_HEADERS(fcntl.h sys/sysctl.h sys/param.h sys/time.h sys/types.h unistd.h values.h sys/limits.h err.h sys/cdefs.h) AC_CHECK_SETENV --- kdepim/libkholidays/lunarphase.cpp #1.2:1.3 @@ -32,4 +32,6 @@ */ +#include "config.h" + #include <kglobal.h> #include <klocale.h> @@ -182,5 +184,7 @@ LunarPhase::Phase LunarPhase::phase( con */ +#if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> +#endif /* @@ -198,5 +202,7 @@ LunarPhase::Phase LunarPhase::phase( con #include <ctype.h> +#if HAVE_ERR_H #include <err.h> +#endif #include <math.h> #include <string.h> Commenting them out on my (Fedora Core 2 based Linux) system, it still compiles fine. Is it needed on a BSD system? Looks like old BSD code, so probably worth a check... *** Bug 99620 has been marked as a duplicate of this bug. *** Thanks for the reports, both of you. But could you please check that the other one hasn't posted the same bug already? You're going to find the same bugs. |