[Bug 210273] graphics/py3-cairo - cannot find Python.h

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 14 09:25:00 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210273

            Bug ID: 210273
           Summary: graphics/py3-cairo - cannot find Python.h
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome at FreeBSD.org
          Reporter: tech-lists at zyxst.net
             Flags: maintainer-feedback?(gnome at FreeBSD.org)
          Assignee: gnome at FreeBSD.org

system in freebsd 11 alpha 3
ports is Last Changed Rev: 416881
Last Changed Date: 2016-06-14 09:29:32 +0100 (Tue, 14 Jun 2016)

error:

../src/cairomodule.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>

Python.h is present:

/storage/usr/local/include/python2.7/Python.h
/storage/usr/local/include/python3.4m/Python.h

<><><> full output <><><><><>

root at pumpkin:/usr/ports/graphics/py3-cairo # make
===>   py34-cairo-1.10.0_3 depends on file: /usr/local/sbin/pkg - found
=> pycairo-1.10.0.tar.bz2 doesn't seem to exist in
/storage/usr/ports/distfiles/.
=> Attempting to fetch http://cairographics.org/releases/pycairo-1.10.0.tar.bz2
pycairo-1.10.0.tar.bz2                        100% of  240 kB  344 kBps 00m01s
===> Fetching all distfiles required by py34-cairo-1.10.0_3 for building
===>  Extracting for py34-cairo-1.10.0_3
=> SHA256 Checksum OK for pycairo-1.10.0.tar.bz2.
===>  Patching for py34-cairo-1.10.0_3
===>  Applying FreeBSD patches for py34-cairo-1.10.0_3
===>   py34-cairo-1.10.0_3 depends on package: pkgconf>=0.9.10 - found
===>   py34-cairo-1.10.0_3 depends on file: /usr/local/bin/python3.4 - found
===>   py34-cairo-1.10.0_3 depends on executable: python3 - found
===>   py34-cairo-1.10.0_3 depends on file: /usr/local/bin/ccache - found
===>   py34-cairo-1.10.0_3 depends on shared library: libcairo.so - found
(/usr/local/lib/libcairo.so)
===>  Configuring for py34-cairo-1.10.0_3
  ./options()
Setting top to                           :
/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0 
Setting out to                           :
/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory 
  ./configure()
Checking for 'gcc' (c compiler)          : ok 
Checking for program python              : /usr/local/bin/python3.4 
Checking for python version              : (3, 4, 4, 'final', 0) 
Checking for library python3.4 in LIBDIR : not found 
Checking for library python3.4 in python_LIBPL : not found 
Checking for library python3.4 in $prefix/libs : not found 
Checking for library python3.4m in LIBDIR      : yes 
Checking for program python3.4-config          :
/usr/local/bin/python3.4-config 
command ['/usr/local/bin/python3.4', '/usr/local/bin/python3.4-config',
'--includes'] returned 1
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/waflib/Tools/python.py
|+++ b/waflib/Tools/python.py
--------------------------
Patching file waflib/Tools/python.py using Plan A...
Hunk #1 succeeded at 169.
done
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/waflib/Build.py
|+++ b/waflib/Build.py
--------------------------
Patching file waflib/Build.py using Plan A...
Hunk #1 succeeded at 151.
done
  ./options()
Setting top to                           :
/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0 
Setting out to                           :
/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory 
  ./configure()
Checking for 'gcc' (c compiler)          : ok 
Checking for program python              : /usr/local/bin/python3.4 
Checking for python version              : (3, 4, 4, 'final', 0) 
Checking for library python3.4 in LIBPATH_PYEMBED : not found 
Checking for library python3.4 in LIBDIR          : not found 
Checking for library python3.4 in python_LIBPL    : not found 
Checking for library python3.4 in $prefix/libs    : not found 
Checking for library python3.4m in LIBPATH_PYEMBED : yes 
Checking for program python3.4-config              :
/usr/local/bin/python3.4-config 
Checking for header Python.h                       : yes 
Checking for program pkg-config                    : /usr/local/bin/pkg-config 
Checking for 'cairo' >= 1.10.0                     : yes 
Configuration:
PREFIX                                   : /usr/local
LIBDIR                                   : /usr/local/lib
'configure' finished successfully (0.223s)
===>  Building for py34-cairo-1.10.0_3
  ./options()
Waf: Entering directory
`/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory'
  ./build()
  src/build()
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
[2/9] c: src/context.c -> build_directory/src/context.c.1.o
[3/9] c: src/font.c -> build_directory/src/font.c.1.o
[4/9] c: src/path.c -> build_directory/src/path.c.1.o
[5/9] c: src/pattern.c -> build_directory/src/pattern.c.1.o
[6/9] c: src/matrix.c -> build_directory/src/matrix.c.1.o
[7/9] c: src/surface.c -> build_directory/src/surface.c.1.o
../src/cairomodule.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
[8/9] subst: py3cairo.pc.in -> build_directory/py3cairo.pc
../src/context.c:21:10: ../src/font.c:21:10: fatal error: 'Python.h' file not
found
#include <Python.h>
         ^
fatal error: 'Python.h' file not found
#include <Python.h>
         ^
../src/path.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
../src/pattern.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
1 error generated.
../src/matrix.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
1 error generated.
1 error generated.
1 error generated.
../src/surface.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
Waf: Leaving directory
`/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory'
Build failed
 -> task failed (exit status 1): 
        {task 34454353120: c cairomodule.c -> cairomodule.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/cairomodule.c', '-c', '-o', 'src/cairomodule.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353344: c font.c -> font.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/font.c', '-c', '-o', 'src/font.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353456: c path.c -> path.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/path.c', '-c', '-o', 'src/path.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353568: c pattern.c -> pattern.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/pattern.c', '-c', '-o', 'src/pattern.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353232: c context.c -> context.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/context.c', '-c', '-o', 'src/context.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353680: c matrix.c -> matrix.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/matrix.c', '-c', '-o', 'src/matrix.c.1.o']
 -> task failed (exit status 1): 
        {task 34454353792: c surface.c -> surface.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/surface.c', '-c', '-o', 'src/surface.c.1.o']
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /storage/usr/ports/graphics/py3-cairo
root at pumpkin:/usr/ports/graphics/py3-cairo # make MAKE_JOBS_UNSAFE=yes
===>  Building for py34-cairo-1.10.0_3
  ./options()
Waf: Entering directory
`/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory'
  ./build()
  src/build()
[1/9] c: src/cairomodule.c -> build_directory/src/cairomodule.c.1.o
../src/cairomodule.c:21:10: fatal error: 'Python.h' file not found
#include <Python.h>
         ^
1 error generated.
Waf: Leaving directory
`/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory'
Build failed
 -> task failed (exit status 1): 
        {task 34454353176: c cairomodule.c -> cairomodule.c.1.o}
['cc', '-I/usr/local/include', '-O2', '-pipe', '-fstack-protector',
'-fno-strict-aliasing', '-fPIC', '-fstack-protector', '-fstack-protector',
'-fstack-protector', '-fno-strict-aliasing', '-fno-strict-aliasing',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/build_directory/src',
'-I/storage/usr/ports/graphics/py3-cairo/work/pycairo-1.10.0/src',
'-I/usr/local/include/cairo', '-I/usr/local/include/glib-2.0',
'-I/usr/local/lib/glib-2.0/include', '-I/usr/local/include',
'-I/usr/local/include/pixman-1', '-I/usr/local/include/freetype2',
'-I/usr/local/include/libpng16', '-I/usr/local/include/libdrm',
'-I/storage/storage/usr/local/include/python3.4m', '-D_THREAD_SAFE',
'-DNDEBUG', '../src/cairomodule.c', '-c', '-o', 'src/cairomodule.c.1.o']
*** Error code 1

Stop.
make: stopped in /storage/usr/ports/graphics/py3-cairo

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-gnome mailing list