Bug 145564 - Compile error on Solaris 8 - fish/fish.cpp uses setenv which is not available on Solaris
Summary: Compile error on Solaris 8 - fish/fish.cpp uses setenv which is not available...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: fish (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Jörg Walter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 17:50 UTC by Steve Evans
Modified: 2007-08-01 00:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Include <kdefakes.h> so setenv is defined on Solaris (377 bytes, patch)
2007-05-17 17:51 UTC, Steve Evans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Evans 2007-05-17 17:50:15 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

I get this compile error on Solaris

[  6%] Building CXX object runtime/kioslave/fish/CMakeFiles/kio_fish.dir/fish.o
/cad4/stevee/kde-svn/kdebase/runtime/kioslave/fish/fish.cpp: In function `int kdemain(int, char**)':
/cad4/stevee/kde-svn/kdebase/runtime/kioslave/fish/fish.cpp:138: error: `setenv' was not declared in this scope

It is fixed by including <kdefakes.h>
Comment 1 Steve Evans 2007-05-17 17:51:51 UTC
Created attachment 20606 [details]
Include <kdefakes.h> so setenv is defined on Solaris
Comment 2 Pino Toscano 2007-08-01 00:42:23 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>