pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43890: several python extensions don't build on solaris with gcc-4.4.3



>Number:         43890
>Category:       pkg
>Synopsis:       several python extensions don't build on solaris with gcc-4.4.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 20 14:20:00 +0000 2010
>Originator:     Daniel Vergien
>Release:        pkgsrc-current
>Organization:
>Environment:
SunOS pkgsrc 5.10 Generic_142901-15 i86pc i386 i86pc
>Description:
Some python extensions don't build on x86 solaris 10 with gcc 4.4.3. They fail 
with these error:

=> Bootstrap dependency digest>=20010302: found digest-20080510
===> Skipping vulnerability checks.
WARNING: No /opt/pkgsrc-gcc-current/var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkgsrc-gcc-current/sbin/pkg_admin -K 
/opt/pkgsrc-gcc-current/var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for py26-cairo-1.8.8nb3
Making all in src
/opt/pkgsrc-gcc-current/bin/bmake  all-am
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.  
-I/opt/pkgsrc-gcc-current/include/python2.6 
-I/opt/pkgsrc-gcc-current/include/python2.6 -D_REENTRANT 
-D_POSIX_PTHREAD_SEMANTICS -I/opt/pkgsrc-gcc-current/include/cairo 
-I/opt/pkgsrc-gcc-current/include/pixman-1 -I/opt/pkgsrc-gcc-current/include 
-I/opt/pkgsrc-gcc-current/include/freetype2 
-I/opt/pkgsrc-gcc-current/include/libpng14 -I/usr/include 
-I/opt/pkgsrc-gcc-current/include/python2.6 -I/opt/pkgsrc-gcc-current/include 
-I/opt/pkgsrc-gcc-current/include/freetype2  -O -march=core2 -mtune=core2 -O2 
-I/usr/include -I/opt/pkgsrc-gcc-current/include/python2.6 
-I/opt/pkgsrc-gcc-current/include -I/opt/pkgsrc-gcc-current/include/freetype2 
-std=c99 -Wall -fno-strict-aliasing -MT _cairo_la-cairomodule.lo -MD -MP -MF 
.deps/_cairo_la-cairomodule.Tpo -c -o _cairo_la-cairomodule.lo `test -f 
'cairomodule.c' || echo './'`cairomodule.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. 
-I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/python2.6
 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS 
-I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/cairo
 
-I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/pixman-1
 -I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include 
-I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/freetype2
 
-I/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/libpng14
 -O -march=core2 -mtune=core2 -O2 -std=c99 -Wall -fno-strict-aliasing -MT 
_cairo_la-cairomodule.lo -MD -MP -MF .deps/_cairo_la-cairomodule.Tpo -c 
cairomodule.c  -fPIC -DPIC -o .libs/_cairo_la-cairomodule.o
In file included from /usr/include/limits.h:18,
                 from 
/opt/gcc44/gcc44/lib/gcc/i386-pc-solaris2.10/4.4.3/include-fixed/limits.h:122,
                 from 
/opt/gcc44/gcc44/lib/gcc/i386-pc-solaris2.10/4.4.3/include-fixed/syslimits.h:7,
                 from 
/opt/gcc44/gcc44/lib/gcc/i386-pc-solaris2.10/4.4.3/include-fixed/limits.h:11,
                 from 
/root/tmp/workobjdir-gcc-current/graphics/py-cairo/work/.buildlink/include/python2.6/Python.h:19,
                 from cairomodule.c:32:
/opt/gcc44/gcc44/lib/gcc/i386-pc-solaris2.10/4.4.3/include-fixed/sys/feature_tests.h:341:2:
 error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications 
     and pre-2001 POSIX applications"
*** Error code 1

The problem seems that "include/python2.6/pyconfig.h" defines  
"_XOPEN_SOURCE=500", which clashes with "_STDC_C99" and not "_XPG6"

I noticed this in these packages:
graphics/py-cairo
net/py-ORBit
sysutils/py-dbus
>How-To-Repeat:

>Fix:
A workaround is to put "CFLAGS.SunOS+= -D_XPG6" in the Makefiles.



Home | Main Index | Thread Index | Old Index