freetype
[Top][All Lists]
Advanced

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

[ft] [PATCH] build failure on aix with gcc


From: J Raynor
Subject: [ft] [PATCH] build failure on aix with gcc
Date: Fri, 4 Mar 2016 18:18:10 -0600

freetype2 fails to build on aix when using gcc (various versions).
I've included the error messages at the bottom of this email.  The
problem is that freetype uses the -ansi flag with gcc, and that flag
causes problems with various system headers on aix, leading to the
"undeclared" errors.

I've attached a patch that makes freetype not use -ansi with gcc on aix.


address@hidden> gmake
./builds/unix/libtool --mode=compile gcc -ansi
-I/home/jxraynor/freetype2/freetype-2.6.3/objs -I./builds/unix
-I/home/jxraynor/freetype2/freetype-2.6.3/include  -c -Wall -g -O2
-DFT_CONFIG_OPTION_SYSTEM_ZLIB  -DFT_CONFIG_OPTION_USE_BZIP2
-DFT_CONFIG_CONFIG_H="<ftconfig.h>" -DFT2_BUILD_LIBRARY
-DFT_CONFIG_MODULES_H="<ftmodule.h>"  -o
/home/jxraynor/freetype2/freetype-2.6.3/objs/ftsystem.lo
builds/unix/ftsystem.c
libtool: compile:  gcc -ansi
-I/home/jxraynor/freetype2/freetype-2.6.3/objs -I./builds/unix
-I/home/jxraynor/freetype2/freetype-2.6.3/include -c -Wall -g -O2
-DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_OPTION_USE_BZIP2
"-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY
"-DFT_CONFIG_MODULES_H=<ftmodule.h>" builds/unix/ftsystem.c  -fPIC
-DPIC -o /home/jxraynor/freetype2/freetype-2.6.3/objs/.libs/ftsystem.o
builds/unix/ftsystem.c: In function 'ft_close_stream_by_munmap':
builds/unix/ftsystem.c:197: warning: implicit declaration of function 'munmap'
builds/unix/ftsystem.c: In function 'FT_Stream_Open':
builds/unix/ftsystem.c:234: error: storage size of 'stat_buf' isn't known
builds/unix/ftsystem.c:241: warning: implicit declaration of function 'open'
builds/unix/ftsystem.c:241: error: 'O_RDONLY' undeclared (first use in
this function)
builds/unix/ftsystem.c:241: error: (Each undeclared identifier is
reported only once
builds/unix/ftsystem.c:241: error: for each function it appears in.)
builds/unix/ftsystem.c:262: warning: implicit declaration of function 'fstat'
builds/unix/ftsystem.c:292: warning: implicit declaration of function 'mmap'
builds/unix/ftsystem.c:294: error: 'PROT_READ' undeclared (first use
in this function)
builds/unix/ftsystem.c:295: error: 'MAP_PRIVATE' undeclared (first use
in this function)
builds/unix/ftsystem.c:304: error: 'ssize_t' undeclared (first use in
this function)
builds/unix/ftsystem.c:304: error: expected ';' before 'total_read_count'
builds/unix/ftsystem.c:319: error: 'total_read_count' undeclared
(first use in this function)
builds/unix/ftsystem.c:322: error: expected ';' before 'read_count'
builds/unix/ftsystem.c:325: error: 'read_count' undeclared (first use
in this function)
builds/unix/ftsystem.c:325: warning: implicit declaration of function 'read'
builds/unix/ftsystem.c:346: warning: implicit declaration of function 'close'
builds/unix/ftsystem.c:234: warning: unused variable 'stat_buf'
gmake: *** [/home/jxraynor/freetype2/freetype-2.6.3/objs/ftsystem.lo] Error 1

Attachment: freetype2-aix.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]