Building OpenJDK 7 on OSX Leopard PPC fails

Thomas Winkler tom.winkler at mac.com
Mon Dec 27 08:25:42 PST 2010


Hi all, 

I want to build openjdk 7 on osx PPC using the instructions from Landon Fuller posted here: http://landonf.bikemonkey.org/2009/12/index.html but always get the same error:

freetypecheck.c:32:22: error: ft2build.h: No such file or directory
freetypecheck.c:33:10: error: #include expects "FILENAME" or <FILENAME>
freetypecheck.c: In function 'main':
freetypecheck.c:79: error: 'FT_Int' undeclared (first use in this function)
freetypecheck.c:79: error: (Each undeclared identifier is reported only once
freetypecheck.c:79: error: for each function it appears in.)
freetypecheck.c:79: error: syntax error before 'major'
freetypecheck.c:80: error: 'FT_Library' undeclared (first use in this function)
freetypecheck.c:81: error: 'FREETYPE_MAJOR' undeclared (first use in this function)
freetypecheck.c:81: error: 'FREETYPE_MINOR' undeclared (first use in this function)
freetypecheck.c:81: error: 'FREETYPE_PATCH' undeclared (first use in this function)
freetypecheck.c:91: warning: implicit declaration of function 'FT_Init_FreeType'
freetypecheck.c:91: error: 'library' undeclared (first use in this function)
freetypecheck.c:92: warning: implicit declaration of function 'FT_Library_Version'
freetypecheck.c:92: error: 'major' undeclared (first use in this function)
freetypecheck.c:92: error: 'minor' undeclared (first use in this function)
freetypecheck.c:92: error: 'patch' undeclared (first use in this function)
make[2]: *** [/Users/thwinkle/bsd-port/build/bsd-ppc/btbins/freetype_versioncheck] Error 1

I installed new version of X11 and freetypecheck and adapted the ALT_FREETYPE_HEADERS_PATH and ALT_FREETYPE_LIB_PATH but without success. I always get the same error. Here is my exact build.sh:

make \
CC=gcc-4.0 \
CXX=g++-4.0 \
ALT_BOOTDIR=/usr/local/openjdk7-macppc-2009-12-16-b4
ANT_HOME=/usr/share/ant \
ALT_FREETYPE_HEADERS_PATH=/opt/local/var/macports/software/freetype/2.4.3_0/opt/local/include \
ALT_FREETYPE_LIB_PATH=/opt/local/var/macports/software/freetype/2.4.3_0/opt/local/lib \
ALT_CUPS_HEADERS_PATH=/usr/include \
ALT_CACERTS_FILE=/System/Library/Frameworks/JavaVM.framework/Home/lib/security/cacerts \
LIBFFI_CFLAGS="-I/usr/include/ffi" \
NO_DOCS=true \
ZERO_BUILD=true \
ZERO_ENDIANNESS=big \
ZERO_LIBARCH=ppc \
ZERO_ARCHDEF=PPC \
ZERO_ARCHFLAG=-m32

The ft2build.h should be there as you see here:
G467:bsd-port thwinkle$ locate ft2build.h
/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include/ft2build.h
/Developer/SDKs/MacOSX10.5.sdk/usr/X11/include/ft2build.h
/opt/local/include/ft2build.h
/opt/local/var/macports/software/freetype/2.4.3_0/opt/local/include/ft2build.h
/usr/X11/include/ft2build.h

Do you have any idea?

Cheers,

Thomas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/bsd-port-dev/attachments/20101227/26b1ddfb/attachment.html 


More information about the bsd-port-dev mailing list