freetype build failing

William Davis frstan at bellsouth.net
Sat Mar 21 09:17:39 PDT 2009


On Mar 21, 2009, at 11:43 AM, Noah wrote:

> Hi there,
>
> Any clues why freetype is failing to build.  Help please.  6 apps  
> including xorg-libXfont depend on it.
>
> Thanks in advance,
>
> Noah
>
>
>
> --->  Building freetype
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_print_freetype/work/freetype-2.3.9" &&  
> make all " returned error 2
> Command output: /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_print_freetype/work/freetype-2.3.9/ 
> include/freetype/internal/ftstream.h:488: error: syntax error before  
> 'FT_Stream_ReadFields'
> /opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_print_freetype/work/freetype-2.3.9/ 
> include/freetype/internal/ftstream.h:490: warning: data definition  
> has no type or storage class
> builds/unix/ftsystem.c:97: error: syntax error before 'ft_alloc'
> builds/unix/ftsystem.c: In function 'ft_alloc':
> builds/unix/ftsystem.c:102: warning: return makes integer from  
> pointer without a cast
> builds/unix/ftsystem.c: At top level:
> builds/unix/ftsystem.c:127: error: syntax error before 'ft_realloc'
> builds/unix/ftsystem.c: In function 'ft_realloc':
> builds/unix/ftsystem.c:135: warning: return makes integer from  
> pointer without a cast
> builds/unix/ftsystem.c: At top level:
> builds/unix/ftsystem.c:153: error: syntax error before 'ft_free'
> builds/unix/ftsystem.c:195: error: syntax error before  
> 'ft_close_stream_by_munmap'
> builds/unix/ftsystem.c:217: error: syntax error before  
> 'ft_close_stream_by_free'
> builds/unix/ftsystem.c:230: error: syntax error before  
> 'FT_Stream_Open'
> builds/unix/ftsystem.c: In function 'FT_Stream_Open':
> builds/unix/ftsystem.c:278: error: 'LONG_MAX' undeclared (first use  
> in this function)
> builds/unix/ftsystem.c:278: error: (Each undeclared identifier is  
> reported only once
> builds/unix/ftsystem.c:278: error: for each function it appears in.)
> builds/unix/ftsystem.c:301: warning: assignment from incompatible  
> pointer type
> builds/unix/ftsystem.c:342: warning: assignment from incompatible  
> pointer type
> builds/unix/ftsystem.c: At top level:
> builds/unix/ftsystem.c:386: error: syntax error before 'FT_New_Memory'
> builds/unix/ftsystem.c: In function 'FT_New_Memory':
> builds/unix/ftsystem.c:395: warning: assignment from incompatible  
> pointer type
> builds/unix/ftsystem.c:396: warning: assignment from incompatible  
> pointer type
> builds/unix/ftsystem.c:397: warning: assignment from incompatible  
> pointer type
> builds/unix/ftsystem.c:403: warning: return makes integer from  
> pointer without a cast
> builds/unix/ftsystem.c: At top level:
> builds/unix/ftsystem.c:410: error: syntax error before  
> 'FT_Done_Memory'
> make: *** [/opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_print_freetype/work/freetype-2.3.9/objs/ 
> ftsystem.lo] Error 1
>
> Error: Unable to upgrade port: 1
> --->  Verifying checksum(s) for libxml2
> Error: Checksum (md5) mismatch for libxml2-2.7.3.tar.gz
> Error: Checksum (sha1) mismatch for libxml2-2.7.3.tar.gz
> Error: Checksum (rmd160) mismatch for libxml2-2.7.3.tar.gz
> Error: Target org.macports.checksum returned: Unable to verify file  
> checksums
> Error: Unable to upgrade port: 1
> --->  Extracting tiff
> On Mac OS X 10.5, tiff 3.8.2 requires Xcode 3.1 or later but you  
> have Xcode 3.0.
> Error: Target org.macports.extract returned: incompatible Xcode  
> version
> Error: Unable to upgrade port: 1
>
> sh-3.2# port uninstall freetype
> --->  Unable to uninstall freetype 2.3.7_3+macosx, the following  
> ports depend on it:
> --->    fontconfig
> --->    gd2
> --->    cairo
> --->    Xft2
> --->    gtk2
> --->    xorg-libXfont
> Error: port uninstall failed: Please uninstall the ports that depend  
> on freetype first.
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

1. Your XCode is out of date. You are 3.0 but current is 3.1.2.  
Download this from ADC.
2. Is your Macports uptodate? sudo port -d selfupdate.
3. on libxml2 you may have a bad download. DO:
sudo port -d clean --all libxml2

Try this (in that order) and see how much of your problems that  
fixes.  If you still need help be sure you give your OS and cpu type  
when you wrote back. It helps troubleshoot.

good luck

William Davis
frstanATbellsouthDOTnet
Mac OS X.5.6 Darwin 9.5.0
XQuartz 2.3.3_rc2 (xorg-server 1.4.2-apple37)
Mac Mini Intel Duo @ 1.86 GHz

Mundus vult decepi, ego non



More information about the macports-users mailing list