On 06/11/2010 10:54 AM, Dr. David Kirkby wrote:
> The latest stable (0.99.3) matplotlib builds ok on Solaris 10 03/05 on SPARC.
>
> However, your latest trunc release has some useful fixes, so it was downloaded
> by a fellow Sage devloper. However, when I try to build this version on a Sun
> Blade 1000 running Solaris 10 03/05, it presents a problem:
>
> /usr/include/stdlib.h:144: error: declaration of C function 'void swab(const
> char*, char*, ssize_t)' conflicts with
> /usr/include/unistd.h:480: error: previous declaration 'void swab(const void*,
> void*, ssize_t)' here
> error: command 'gcc' failed with exit status 1
> Error building matplotlib package.
>
>
> There are two declarations of 'swab' in the Solaris header files, and what one
> you get depends on the compilation mode. The reasons are explained in the
> Solaris header files.
>
> The issue is traced at
>
> http://trac.sagemath.org/sage_trac/ticket/9202
>
> where you will see the full error message and attachments of the header files.
>
> For this, gcc 4.4.4 was used.

Can you get it to work by adding "-D_XOPEN_SOURCE" to your CFLAGS 
environment variable?

Eric

>
> Dave
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to