Bug 147566 - Compile error on Solaris 8 - kdelibs/kjs/date_object.cpp uses tm_gmtoff which is not available
Summary: Compile error on Solaris 8 - kdelibs/kjs/date_object.cpp uses tm_gmtoff which...
Status: RESOLVED NOT A BUG
Alias: None
Product: konqueror
Classification: Applications
Component: kjs (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-05 12:13 UTC by Steve Evans
Modified: 2008-07-26 11:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Don't use tm_gmtoff on Sun. This is a very poor solution :-( (966 bytes, patch)
2007-07-05 12: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-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