Bug 99620 - Compile error on Solaris 2.9 in libkholidays/lunarphase.cpp
Summary: Compile error on Solaris 2.9 in libkholidays/lunarphase.cpp
Status: RESOLVED DUPLICATE of bug 99680
Alias: None
Product: kresources
Classification: Miscellaneous
Component: framework (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 16:59 UTC by Bernd Kuhls
Modified: 2005-02-19 02:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Kuhls 2005-02-17 16:59:44 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.5 
OS:                Solaris

if /bin/bash ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libkdepim -I/usr/local/KDE-3.4.0_CVS/include -I/usr/local/qt-050201/include    -DQT_THREAD_SUPPORT  -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -D_FILE_OFFSET_BITS=64  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT lunarphase.lo -MD -MP -MF ".deps/lunarphase.Tpo" \
  -c -o lunarphase.lo `test -f 'lunarphase.cpp' || echo './'`lunarphase.cpp; \
then mv -f ".deps/lunarphase.Tpo" ".deps/lunarphase.Plo"; \
else rm -f ".deps/lunarphase.Tpo"; exit 1; \
fi
mkdir: cannot create directory `.libs': File exists
lunarphase.cpp:184:23: sys/cdefs.h: No such file or directory
lunarphase.cpp:200:17: err.h: No such file or directory

Patching this works:
--- ./lunarphase.cpp        2004-12-31 01:06:41.000000000 +0100
+++ ./lunarphase.cpp    2005-02-17 16:59:48.871874000 +0100
@@ -181,7 +181,7 @@
  * SUCH DAMAGE.
  */

-#include <sys/cdefs.h>
+/* #include <sys/cdefs.h> */

 /*
  * Phase of the Moon.  Calculates the current phase of the moon.
@@ -197,7 +197,7 @@


 #include <ctype.h>
-#include <err.h>
+/* #include <err.h> */
 #include <math.h>
 #include <string.h>
 #include <stdlib.h>
Comment 1 Thiago Macieira 2005-02-19 02:01:43 UTC

*** This bug has been marked as a duplicate of 99680 ***