jeudi 8 septembre 2011

compil AIX, freetype2, ansi a vingt ans


suite de compilation sur AIX ... casse-tête géant (comme toute l'informatique)


quelques soucis avec freetype
(à part la librairie trouvée en double apr.h pour apriconv et le make qui doit être GNU Make 3.8)

libtool: compile:  gcc -pedantic -ansi -I/logiciels/apachephp/2.2.19-5.3.6/libs/include -I/logiciels/apachephp/2.2.19-5.3.6/include -I/logiciels/openssl/1.0.0d/include -I/appli/src/apachephp/libs-src/libsrc/freetype-2.4.6/objs -I./builds/unix -I/appli/src/apachephp/libs-src/libsrc/freetype-2.4.6/include -c -Wall -g -O2 -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_OPTION_USE_BZIP2 "-DFT_CONFIG_CONFIG_H=" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=" builds/unix/ftsystem.c  -DPIC -o /appli/src/apachephp/libs-src/libsrc/freetype-2.4.6/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.)

la solution de tatonnement : compiler en std=c99 plutôt que std=c90 (alias -ansi)
cp -p builds/unix/configure  a; \
sed -e 's:-pedantic -ansi:-pedantic -std=c99:' \
a > builds/unix/configure ; \

à bientôt pour gd

1 commentaire:

wk a dit…

Thank you for the idea.

To avoid the need to modify the builds/unix/configure file, you can export XX_ANSIFLAGS=' -pedantic -std=c99' before running the configure script. Tested with freetype-2.5.5, not sure if this work for earlier version of freetype though.