Bug 145750 - Compile error on Solaris 8 - kdebase/apps/nsplugins/viewer/viewer.cpp uses setenv which is not available on Solaris
Summary: Compile error on Solaris 8 - kdebase/apps/nsplugins/viewer/viewer.cpp uses se...
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: nsplugins (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: George Staikos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 16:58 UTC by Steve Evans
Modified: 2007-08-01 00:50 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-21 16:59 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-21 16:58:40 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

I get this compile error on Solaris:

[ 42%] Building CXX object apps/nsplugins/viewer/CMakeFiles/nspluginviewer.dir/viewer.o
/cad4/stevee/kde-svn/kdebase/apps/nsplugins/viewer/viewer.cpp: In function `int main(int, char**)':
/cad4/stevee/kde-svn/kdebase/apps/nsplugins/viewer/viewer.cpp:105: error: `setenv' was not declared in this scope
/cad4/stevee/kde-svn/kdebase/apps/nsplugins/viewer/viewer.cpp:117:2: warning: #warning QXtEventLoop is missing
gmake[2]: *** [apps/nsplugins/viewer/CMakeFiles/nspluginviewer.dir/viewer.o] Error 1
gmake[1]: *** [apps/nsplugins/viewer/CMakeFiles/nspluginviewer.dir/all] Error 2

This is fixed by including <kdefakes.h>
Comment 1 Steve Evans 2007-05-21 16:59:09 UTC
Created attachment 20653 [details]
Include <kdefakes.h> so setenv is defined on Solaris
Comment 2 Pino Toscano 2007-08-01 00:50:58 UTC
SVN commit 694864 by pino:

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

BUGS: 145750, 145806


 M  +1 -0      apps/nsplugins/viewer/viewer.cpp  
 M  +1 -0      workspace/kcontrol/dateandtime/tzone.cpp  


--- trunk/KDE/kdebase/apps/nsplugins/viewer/viewer.cpp #694863:694864
@@ -42,6 +42,7 @@
 #include <sys/resource.h>
 #include <sys/time.h>
 #include <unistd.h>
+#include <kdefakes.h>
 
 #ifdef Bool
 #undef Bool
--- trunk/KDE/kdebase/workspace/kcontrol/dateandtime/tzone.cpp #694863:694864
@@ -45,6 +45,7 @@
 #include <KProcess>
 #include <kstandarddirs.h>
 #include <ksystemtimezone.h>
+#include <kdefakes.h>
 
 //#include "xpm/world.xpm"
 #include "tzone.moc"