[asterisk-bugs] [Asterisk 0012022]: Compile fails with "structure has no member named `tm_gmtoff'"

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Feb 19 02:18:59 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12022 
====================================================================== 
Reported By:                asgaroth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12022
Category:                   Core/*
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-19-2008 01:59 CST
Last Modified:              02-19-2008 02:18 CST
====================================================================== 
Summary:                    Compile fails with "structure has no member named
`tm_gmtoff'"
Description: 
I have been unable to build asterisk 1.4.17/1.4.18 on Solaris x86. The
specific error message is as follows:

   [CC] stdtime/localtime.c -> stdtime/localtime.o
stdtime/localtime.c: In function `localsub':
stdtime/localtime.c:1136: error: structure has no member named
`tm_gmtoff'
gmake[1]: *** [stdtime/localtime.o] Error 1
gmake: *** [main] Error 2

I am not too sure how far back this change was made that breaks a build on
Solaris, I can say with certainty that the last version I built
successfully was 1.4.13 (Without the above error). I have not tried
building .14/.15 or .16 editions.
====================================================================== 

---------------------------------------------------------------------- 
 snuffy - 02-19-08 02:18  
---------------------------------------------------------------------- 
The main difference I can spot between trunk and 1.4 on this issue is that
its passed in as just a 'struct tm *tmp' in 1.4 vs 'struct ast_tm *tmp' in
trunk.

Which of course 'struct tm' in solaris doesn't have gmtoff. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-19-08 02:18  snuffy         Note Added: 0082551                          
======================================================================




More information about the asterisk-bugs mailing list