[Freeswitch-users] OpenSolaris Compile Error [gcc]

Michael Jerris mike at jerris.com
Fri Aug 14 11:11:25 PDT 2009


It would appear that different versions of opensolaris / compiler /  
32/64 bit handle this totally differently.  I have tested this both 32  
and 64 on sun studio when I made the change and it works, seems gcc  
wants different format specifiers.  The patch that caused this is :

http://fisheye.freeswitch.org/changelog/FreeSWITCH?cs=14069

Anyone with access to 32 and 64 bit opensolaris with both sun cc and  
gcc build systems working I need a patch that works on all.

Mike



On Aug 13, 2009, at 9:24 PM, Nick Lemberger wrote:

> 64bit OpenSolaris w/ gcc-4.3.2
>
> After a bootstrap and configure I get the following error when  
> running make:
>
>
> ---snip---
>
> Compiling src/switch_caller.c ...
> cc1: warnings being treated as errors
> src/switch_caller.c: In function  
> 'switch_caller_profile_event_set_data':
> src/switch_caller.c:299: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:301: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:303: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:305: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:307: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:309: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> src/switch_caller.c:311: error: format '%lld' expects type 'long  
> long int', but argument 5 has type 'switch_time_t'
> make[2]: *** [libfreeswitch_la-switch_caller.lo] Error 1
>
> ---snip---
>
> I get this error in both the source for 1.0.4 and last nights  
> snapshot.  An suggestions or ideas?  There are no apparent errors  
> during the bootstrap or configure processes.
>
> Regards,
> Nicholas Lemberger
> Lakefield Communications
>
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list