[tlbuild] TL2012 aix 4.3 build report
Vladimir Volovich
vvv at vsu.ru
Wed May 16 12:51:24 CEST 2012
Hi!
I've built TL2012 on AIX 4.3, using IBM xlc compilers, just like in
previous years.
I had to apply some patches - see attached files.
1) aix-patch-build.diff - use $CONFIG_SHELL in top-level Build script
[Karl objected against it, and I'm ok with this]
2) aix-patch-freetype2.diff - use $CONFIG_SHELL in freetype's builds/unix/detect.mk
otherwise the build fails.
3) aix-patch-icu.diff - add const declarations, to fix compile problem.
The cause and a way to fix is the same as discussed in
http://tug.org/pipermail/tlbuild/2010q2/001541.html
4) aix-patch-poppler.diff - add const declarations, to fix compile problem.
The cause and a way to fix is the same as discussed in
http://tug.org/pipermail/tlbuild/2010q2/001541.html
5) aix-patch-mtx.diff - this is not a real fix, but a workaround against
an improper way in which mtx declares its own prototypes for malloc and free.
proper way is to use autoconf to test for presence of prototypes in
header files.
without a patch I was getting a compile error:
gmake[3]: Entering directory `/usr/local/vvv/src/source/Work/utils/mtx'
source='mtx-0.60d/libp2c/p2clib.c' object='p2clib.o' libtool=no \
DEPDIR=.deps depmode=aix /bin/bash ../../../utils/mtx/../../build-aux/depcomp \
xlc -DPACKAGE_NAME=\"mtx\ for\ TeX\ Live\" -DPACKAGE_TARNAME=\"mtx-for-tex-live\" -DPACKAGE_VERSION=\"0.60d\" -DPACKAGE_STRING=\"mtx\ for\ TeX\ Live\ 0.60d\" -DPACKAGE_BUGREPORT=\"tex-k at tug.org\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mtx-for-tex-live\" -DVERSION=\"0.60d\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_STRCHR=1 -DHAVE_STRRCHR=1 -DHAVE_STRTOL=1 -I. -I../../../utils/mtx -I../../../utils/mtx/mtx-0.60d/libp2c -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS -D_THREAD_SAFE -DU_IS_BIG_ENDIAN=1 -DU_HAVE_STDINT_H=0 -DU_HAVE_INTTYPES_H=1 -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c -o p2clib.o `test -f 'mtx-0.60d/libp2c/p2clib.c' || echo '../../../utils/mtx/'`mtx-0.60d/libp2c/p2clib.
c
"../../../utils/mtx/mtx-0.60d/libp2c/p2c.h", line 311.17: 1506-343 (S) Redeclaration of malloc differs from previous declaration on line 173 of "/usr/include/stdlib.h".
"../../../utils/mtx/mtx-0.60d/libp2c/p2c.h", line 311.17: 1506-050 (I) Return type "unsigned char*" in redeclaration is not compatible with the previous return type "void*".
gmake[3]: *** [p2clib.o] Error 1
gmake[3]: Leaving directory `/usr/local/vvv/src/source/Work/utils/mtx'
6) aix-patch-synctex.diff - fix for synctex. without a patch,
synctex_parser.c, after preprocessing, contained fragments such as
struct _synctex_node {
;
synctex_class_t class;
synctex_info_t * implementation;
};
(SYNCTEX_USE_CHARINDEX is not defined, and SYNCTEX_DECLARE_CHARINDEX was
defined as empty macro).
xlc doesn't like the above constructs, and complained like this:
source='synctexdir/synctex_parser.c' object='synctex-synctex_parser.o' libtool=no \
DEPDIR=.deps depmode=aix /bin/bash ../../../texk/web2c/../../build-aux/depcomp \
xlc -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c -I../../../texk/web2c/synctexdir -I/usr/local/vvv/src/source/Work/libs/zlib/include -DSYNCTEX_USE_LOCAL_HEADER -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS -D_THREAD_SAFE -DU_IS_BIG_ENDIAN=1 -DU_HAVE_STDINT_H=0 -DU_HAVE_INTTYPES_H=1 -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c -o synctex-synctex_parser.o `test -f 'synctexdir/synctex_parser.c' || echo '../../../texk/web2c/'`synctexdir/synctex_parser.c
"../../../texk/web2c/synctexdir/synctex_parser_utils.h", line 65.9: 1506-236 (W) Macro name TRUE has been redefined.
"../../../texk/web2c/synctexdir/synctex_parser_utils.h", line 65.9: 1506-358 (I) "TRUE" is defined on line 406 of /usr/include/sys/types.h.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 136.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 360.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 428.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 481.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 517.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 572.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 637.30: 1506-275 (S) Unexpected text ';' encountered.
"../../../texk/web2c/synctexdir/synctex_parser.c", line 695.30: 1506-275 (S) Unexpected text ';' encountered.
gmake[4]: *** [synctex-synctex_parser.o] Error 1
gmake[4]: Leaving directory `/usr/local/vvv/src/source/Work/texk/web2c'
So I've fixed it by removing a semicolon.
7) aix-patch-xpdf.diff - fix a compile problem:
source='../../../libs/xpdf/xpdf-3.03/xpdf/GlobalParams.cc' object='GlobalParams.o' libtool=no \
DEPDIR=.deps depmode=aix /bin/bash ../../../libs/xpdf/../../build-aux/depcomp \
xlC -DHAVE_CONFIG_H -I. -I../../../libs/xpdf -Igoo -Ifofi -Isplash -Ixpdf -I../../../libs/xpdf/xpdf-3.03/goo -I../../../libs/xpdf/xpdf-3.03/fofi -I../../../libs/xpdf/xpdf-3.03/splash -I../../../libs/xpdf/xpdf-3.03/xpdf -DPDF_PARSER_ONLY -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -c -o GlobalParams.o `test -f '../../../libs/xpdf/xpdf-3.03/xpdf/GlobalParams.cc' || echo '../../../libs/xpdf/'`../../../libs/xpdf/xpdf-3.03/xpdf/GlobalParams.cc
"../../../libs/xpdf/xpdf-3.03/xpdf/GlobalParams.cc", line 188.11: 1540-0274 (S) The name lookup for "strcasecmp" did not find a declaration.
"../../../libs/xpdf/xpdf-3.03/xpdf/GlobalParams.cc", line 193.11: 1540-0274 (S) The name lookup for "strcasecmp" did not find a declaration.
gmake[5]: *** [GlobalParams.o] Error 1
gmake[5]: Leaving directory `/usr/local/vvv/src/source/Work/libs/xpdf'
Best wishes,
v.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-build.diff
Type: text/x-diff
Size: 315 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-freetype2.diff
Type: text/x-diff
Size: 509 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-icu.diff
Type: text/x-diff
Size: 1620 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-poppler.diff
Type: text/x-diff
Size: 835 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-mtx.diff
Type: text/x-diff
Size: 308 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-synctex.diff
Type: text/x-diff
Size: 3265 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix-patch-xpdf.diff
Type: text/x-diff
Size: 229 bytes
Desc: not available
URL: <http://tug.org/pipermail/tlbuild/attachments/20120516/bc7a5662/attachment-0006.bin>
More information about the tlbuild
mailing list