Opened 20 years ago

Closed 19 years ago

Last modified 9 years ago

#3119 closed defect (fixed)

BUG: py-pil build error on tiger

Reported by: spierre@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

sudo port install py-pil ---> Fetching py-pil ---> Attempting to fetch Imaging-1.1.4.tar.gz from http://effbot.org/downloads/ ---> Verifying checksum(s) for py-pil ---> Extracting py-pil ---> Applying patches to py-pil ---> Configuring py-pil ---> Building py-pil with target build Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/ file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_python_py-pil/ work/Imaging-1.1.4" && /opt/local/bin/python2.4 setup.py build" returned error 1 Command output: _imagingft.c:93: error: 'char_out' undeclared (first use in this function) _imagingft.c:93: error: array subscript is not an integer _imagingft.c:100: warning: comparison between pointer and integer _imagingft.c:102: error: array subscript is not an integer _imagingft.c: In function 'font_getsize': _imagingft.c:112: error: 'FT_ULong' undeclared (first use in this function) _imagingft.c:112: error: parse error before "ch" _imagingft.c:129: error: 'ch' undeclared (first use in this function) _imagingft.c:135: error: dereferencing pointer to incomplete type _imagingft.c:140: error: dereferencing pointer to incomplete type _imagingft.c: In function 'font_render': _imagingft.c:155: error: 'FT_ULong' undeclared (first use in this function) _imagingft.c:155: error: parse error before "ch" _imagingft.c:176: error: 'ch' undeclared (first use in this function) _imagingft.c:181: error: dereferencing pointer to incomplete type _imagingft.c:182: error: dereferencing pointer to incomplete type _imagingft.c:183: error: dereferencing pointer to incomplete type _imagingft.c:184: error: dereferencing pointer to incomplete type _imagingft.c:185: error: dereferencing pointer to incomplete type _imagingft.c:186: error: dereferencing pointer to incomplete type _imagingft.c:191: error: dereferencing pointer to incomplete type _imagingft.c:195: error: dereferencing pointer to incomplete type _imagingft.c:197: error: dereferencing pointer to incomplete type _imagingft.c: In function 'font_getattr': _imagingft.c:235: error: dereferencing pointer to incomplete type _imagingft.c:237: error: dereferencing pointer to incomplete type _imagingft.c:240: error: dereferencing pointer to incomplete type _imagingft.c:242: error: dereferencing pointer to incomplete type _imagingft.c:246: error: dereferencing pointer to incomplete type error: command 'gcc' failed with exit status 1

Change History (6)

comment:1 Changed 20 years ago by jmpp@…

Owner: changed from darwinports-bugs@… to rshaw@…

comment:2 Changed 19 years ago by benwill@…

Workaround: It seems that a file ft2build.h is required. On Panther, this file is located at /usr/X11R6/include/freetype2/ft2build.h. On Tiger, it has moved to /usr/X11R6/include/ft2build.h.

So the (tested, successful) workaround is: cd /usr/X11R6/include/freetype2/ sudo ln -s ../ft2build.h ft2build.h before doing: sudo port install py-pil

This is clearly not the Right way to do it, but I know nothing of portfiles etc.

Reason why this works: [ben@assam Imaging-1.1.4] $ /opt/local/bin/python2.4 setup.py build

* Tk disabled. running build running build_py running build_ext building '_imagingft' extension gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -fno-common -dynamic -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -IlibImaging -I/usr/X11R6/include/freetype2 -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c _imagingft.c -o build/temp.darwin-8.1.0-Power_Macintosh-2.4/_imagingft.o -framework Tcl -framework Tk In file included from _imagingft.c:18: /usr/X11R6/include/freetype2/freetype/freetype.h:41:22: error: ft2build.h: No such file or directory

comment:3 Changed 19 years ago by eichin@…

While perhaps not fully general (I haven't looked at the other stanzas in patch-setup all that closely) this patch gets it to work on tiger -- I don't know why it isn't getting /usr/X11R6/include from somewhere else, but this at least fixes it in place... _Mark_ <eichin@…>

--- darwinports/dports/python/py-pil/files/patch-setup.py~	2005-02-14 19:37:03.000000000 -0500
+++ darwinports/dports/python/py-pil/files/patch-setup.py	2005-06-11 14:15:40.000000000 -0400
@@ -96,7 +96,7 @@
  # --------------------------------------------------------------------
  # configure imagingft module
  
-@@ -266,13 +295,20 @@
+@@ -266,13 +295,21 @@
          # FIXME: search for libraries
          LIBRARIES.append("freetype")
          INCLUDE_DIRS.append("/usr/include/freetype2")
@@ -107,6 +107,7 @@
 +        # FIXME: search for libraries
 +        LIBRARIES.append("freetype")
 +        INCLUDE_DIRS.append("/usr/X11R6/include/freetype2")
++        INCLUDE_DIRS.append("/usr/X11R6/include")
 +        LIBRARY_DIRS.append("/usr/X11R6/lib")
 +    elif os.path.isdir("@prefix@/include/freetype2"):
          # assume that the freetype library is installed in a
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 19 years ago by robotix@…

fixed in Imaging-1.1.5 (thanks, mww)

comment:5 Changed 19 years ago by rshaw@…

Owner: changed from rshaw@… to darwinports-bugs@…

No longer maintaining these ports.

comment:6 Changed 19 years ago by mww@…

Resolution: fixed
Status: newclosed
Summary: py-pil build error on tigerBUG: py-pil build error on tiger

was fixed by update to 1.1.5

Note: See TracTickets for help on using tickets.