Bug 147080 - Compile error on Solaris 8 - kdebase/workspace/libs/workspace/kworkspace.cpp uses setenv, which is not available
Summary: Compile error on Solaris 8 - kdebase/workspace/libs/workspace/kworkspace.cpp ...
Status: RESOLVED FIXED
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 145752 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-06-22 13:52 UTC by Steve Evans
Modified: 2007-08-01 00:49 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 Steve Evans 2007-06-22 13:52:52 UTC
Version:           workspace (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

This problem is in workspace, but that cannot be selected as an application in bugs.kde.org

I get this compile error:

[ 43%] Building CXX object workspace/libs/workspace/CMakeFiles/kworkspace.dir/kworkspace.o
/cad4/stevee/kde-svn/kdebase/workspace/libs/workspace/kworkspace.cpp: In function `void KWorkSpace::propagateSessionManager()':
/cad4/stevee/kde-svn/kdebase/workspace/libs/workspace/kworkspace.cpp:151: error: `::setenv' has not been declared

A version of setenv is available in kdefakes, so including kdefakes.h should fix it
Comment 1 Pino Toscano 2007-08-01 00:42:27 UTC
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>
Comment 2 Pino Toscano 2007-08-01 00:49:20 UTC
*** Bug 145752 has been marked as a duplicate of this bug. ***