| Summary: | Compile error on Solaris 8 - kdebase/apps/kdepasswd/passwd.cpp uses setenv which is not available | ||
|---|---|---|---|
| Product: | [Applications] kdepasswd | Reporter: | Steve Evans <stevee> |
| Component: | general | Assignee: | Geert Jansen <g.t.jansen> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Solaris | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Include <kdefakes.h> so setenv is defined on Solaris | ||
Created attachment 20652 [details]
Include <kdefakes.h> so setenv is defined on Solaris
SVN commit 694860 by pino: #include kdefakes.h so we are sure to have the definition of setenv() BUGS: 145564, 145624, 145745, 145754, 147080 M +1 -0 apps/kdepasswd/passwd.cpp M +1 -0 runtime/kioslave/fish/fish.cpp M +1 -0 runtime/kurifilter-plugins/tests/kurifiltertest.cpp M +1 -0 workspace/kcminit/main.cpp M +1 -0 workspace/libs/workspace/kworkspace.cpp --- trunk/KDE/kdebase/apps/kdepasswd/passwd.cpp #694859:694860 @@ -27,6 +27,7 @@ #include <kdebug.h> #include <kstandarddirs.h> +#include <kdefakes.h> #include <kdesu/process.h> --- trunk/KDE/kdebase/runtime/kioslave/fish/fish.cpp #694859:694860 @@ -81,6 +81,7 @@ #include <fcntl.h> #include <errno.h> #include <sys/resource.h> +#include <kdefakes.h> #include "fish.h" #include "fishcode.h" --- trunk/KDE/kdebase/runtime/kurifilter-plugins/tests/kurifiltertest.cpp #694859:694860 @@ -25,6 +25,7 @@ #include <ksharedconfig.h> #include <klocale.h> #include <kio/netaccess.h> +#include <kdefakes.h> #include <QtCore/QDir> #include <QtCore/QRegExp> --- trunk/KDE/kdebase/workspace/kcminit/main.cpp #694859:694860 @@ -43,6 +43,7 @@ #endif #include <kservicetypetrader.h> +#include <kdefakes.h> static int ready[ 2 ]; static bool startup = false; --- trunk/KDE/kdebase/workspace/libs/workspace/kworkspace.cpp #694859:694860 @@ -30,6 +30,7 @@ #include <QtDBus/QtDBus> #include <stdlib.h> // getenv() #include <ksmserver_interface.h> +#include <kdefakes.h> #ifdef Q_WS_X11 #include <X11/Xlib.h> |
Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc 3.4.6 OS: Solaris I get this compile error on Solaris 8: [ 41%] Building CXX object apps/kdepasswd/CMakeFiles/kdepasswd.dir/passwd.o In file included from /cad4/stevee/kde-svn/kdebase/apps/kdepasswd/passwd.cpp:13: /cad4/stevee/kde-svn/kdebase/kde-build/config.h:118:1: warning: "_FILE_OFFSET_BITS" redefined In file included from /usr/include/iso/string_iso.h:31, from /usr/include/string.h:18, from /opt/qt/include/QtCore/qbytearray.h:30, from /opt/qt/include/QtCore/QByteRef:1, from /cad4/stevee/kde-svn/kdebase/apps/kdepasswd/passwd.h:12, from /cad4/stevee/kde-svn/kdebase/apps/kdepasswd/passwd.cpp:11: /usr/include/sys/feature_tests.h:96:1: warning: this is the location of the previous definition /cad4/stevee/kde-svn/kdebase/apps/kdepasswd/passwd.cpp: In member function `int PasswdProcess::exec(const char*, const char*, int)': /cad4/stevee/kde-svn/kdebase/apps/kdepasswd/passwd.cpp:82: error: `setenv' was not declared in this scope It is fixed by including <kdefakes.h>