The proper fix for this is to actually do an autoconf check that
compiles code for each kind of attribute used, to see if it is supported
by the compiler.  Different attributes were introduced in different gcc
versions, and I am sure this is modified in different ports of the same
version of the compiler, so the checks are the only way to know for
sure.

Mike


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:sofia-sip-
> [EMAIL PROTECTED] On Behalf Of Jerry Richards
> Sent: Friday, April 20, 2007 8:06 PM
> To: [email protected]
> Subject: Re: [Sofia-sip-devel] Modifications For linux-mips Platform
> (w/C++UA)
> 
> Hello,
> 
> Regarding the two changes I made for __attribute__ in the following
> locations...
> 
> > 4) lib-sofia-sip-ua/sip/sofia-sip/sip_header.h:
> >         Forced __attribute__() to be undefined for __cplusplus
> > 6) lib-sofia-sip-ua/su/sofia-sip/su_config.h:
> >         Forced __attribute__() to be undefined for __cplusplus
> 
> > I added the following lines to each of these two files:
> >#if defined(_cplusplus)
> >#  define __attribute__(x)
> >#endif
> 
> What version of compiler you have that chokes on __attribute__? An old
> variant of GCC?
> 
> I am using the "mips-linux-uclibc/bin/mipsel-uclibc-gcc" compiler.
I'm
> not
> sure what version of it.
> 
> Perhaps I should try the "mips-linux-uclibc/bin/mipsel-uclibc-g++"
compile
> command?  I'll do this on Monday and let you know the result.
> 
> Thanks,
> Jerry
> 
> 
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Sofia-sip-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to