Bug 145561 - Compile error on Solaris 8 - drkonqi/main.cpp uses setenv which is not available on Solaris
Summary: Compile error on Solaris 8 - drkonqi/main.cpp uses setenv which is not availa...
Status: RESOLVED FIXED
Alias: None
Product: drkonqi
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Hans Petter Bieker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-17 17:12 UTC by Steve Evans
Modified: 2007-08-01 01:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Include <kdefakes.h> so setenv is defined on Solaris (392 bytes, patch)
2007-05-17 17:16 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:12:43 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

I get this compile error on Solaris

[  0%] Building CXX object runtime/drkonqi/CMakeFiles/drkonqi.dir/main.o
/cad4/stevee/kde-svn/kdebase/runtime/drkonqi/main.cpp: In function `int main(int, char**)':
/cad4/stevee/kde-svn/kdebase/runtime/drkonqi/main.cpp:69: error: `setenv' was not declared in this scope

The problem is fixed by including <kdefakes.h>
Comment 1 Steve Evans 2007-05-17 17:16:17 UTC
Created attachment 20605 [details]
Include <kdefakes.h> so setenv is defined on Solaris
Comment 2 Pino Toscano 2007-08-01 01:06:24 UTC
SVN commit 694872 by pino:

#include kdefakes.h so we are sure to have the definition of setenv()

BUGS: 145561, 145615


 M  +1 -0      drkonqi/main.cpp  
 M  +1 -0      kdesu/kdesu/kdesu.cpp  


--- trunk/KDE/kdebase/runtime/drkonqi/main.cpp #694871:694872
@@ -34,6 +34,7 @@
 #include <kcmdlineargs.h>
 #include <kaboutdata.h>
 #include <klocale.h>
+#include <kdefakes.h>
 
 #include "krashconf.h"
 #include "toplevel.h"
--- trunk/KDE/kdebase/runtime/kdesu/kdesu/kdesu.cpp #694871:694872
@@ -38,6 +38,7 @@
 #include <kmessagebox.h>
 #include <kuser.h>
 #include <kstartupinfo.h>
+#include <kdefakes.h>
 
 #include <kdesu/defaults.h>
 #include <kdesu/su.h>