[asterisk-bugs] [Asterisk 0011485]: Alignment issues building on solaris sparc

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Dec 11 15:40:44 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11485 
====================================================================== 
Reported By:                snuffy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11485
Category:                   Core-General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 91232 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-06-2007 16:34 CST
Last Modified:              12-11-2007 15:40 CST
====================================================================== 
Summary:                    Alignment issues building on solaris sparc
Description: 
GCC stops compiling with the following:

warning: cast increases required alignment of target type

Errors for the following files.
chan_sip.c
chan_iax2.c

A lot of codecs

The codec errors seem to stem from the following line:
int16_t *dst = (int16_t *) pvt->outbuf + pvt->samples;

codec_adpcm.c
codec_alaw.c
codec_g722.c
codec_g726.c

====================================================================== 

---------------------------------------------------------------------- 
 snuffy - 12-11-07 15:40  
---------------------------------------------------------------------- 
Did a little more looking around..
To bypass the errors i cast to (void *) to see how many more remain.

Here is my list (excluding codecs):
chan_sip.c: function sip_addrcmp
char* to a sip_peer*

chan_iax.c: function send_trunk
struct iax2_trunk_peer* to struct iax_frame*

iax-parser.c: function  iax_parse_ies
unsigned char* to sockaddr_in*

More coming 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-11-07 15:40  snuffy         Note Added: 0075239                          
======================================================================




More information about the asterisk-bugs mailing list