Bug 147566

Summary: Compile error on Solaris 8 - kdelibs/kjs/date_object.cpp uses tm_gmtoff which is not available
Product: [Applications] konqueror Reporter: Steve Evans <stevee>
Component: kjsAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Solaris   
Latest Commit: Version Fixed In:
Attachments: Don't use tm_gmtoff on Sun. This is a very poor solution :-(

Description Steve Evans 2007-07-05 12:13:09 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.4.6 
OS:                Solaris

I get this compile error on Solaris:

[  7%] Building CXX object kjs/CMakeFiles/kjs.dir/date_object.o
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp: In function `int gmtoffset(const tm&)':
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp:81: error: 'const struct tm' has no member named 'tm_gmtoff'
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp: In function `KJS::UString KJS::formatTime(const tm&, bool)':
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp:221: error: 'const struct tm' has no member named 'tm_gmtoff'
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp: In function `double KJS::makeTime(tm*, double, bool)':
/cad4/stevee/kde-svn/kdelibs/kjs/date_object.cpp:916: error: 'struct tm' has no member named 'tm_gmtoff'

On Solaris the struct tm does not include tm_gmtoff
Comment 1 Steve Evans 2007-07-05 12:16:56 UTC
Created attachment 21051 [details]
Don't use tm_gmtoff on Sun. This is a very poor solution :-(
Comment 2 Jaime Torres 2008-07-26 11:07:45 UTC
kde4 for solaris is compiling almost every kde4 package.
http://people.fruitsalad.org/adridg/bobulate/index.php?/archives/617-guid.html