[tlbuild] texlive 2011 build on aix 4.3 - dvipdfmx, xdvipdfmx need to check for stdint.h and use sys/types.h when it defines the needed types

Vladimir Volovich vvv at vsu.ru
Mon Jun 13 20:30:54 CEST 2011


Hi!

on AIX 4.3, I had to apply the following (quick and dirty) patch to
compile dvipdfmx and xdvipdfmx:

===============================
--- texk/dvipdfmx/dvipdfmx-20110311/src/dpxcrypt.c.orig
+++ texk/dvipdfmx/dvipdfmx-20110311/src/dpxcrypt.c
@@ -24,7 +24,8 @@
 #include "config.h"
 #endif
 
-#include <stdint.h>
+/*#include <stdint.h>*/
+#include <sys/types.h>
 #include <string.h>
 
 #include "dpxcrypt.h"
--- texk/xdvipdfmx/src/dpxcrypt.c.orig
+++ texk/xdvipdfmx/src/dpxcrypt.c
@@ -24,7 +24,8 @@
 #include "config.h"
 #endif
 
-#include <stdint.h>
+/*#include <stdint.h>*/
+#include <sys/types.h>
 #include <string.h>
 
 #include "dpxcrypt.h"
===============================

Without the patch, i was getting compile errors:

source='dvipdfmx-20110311/src/dpxcrypt.c' object='dvipdfmx-dpxcrypt.o' libtool=no \
        DEPDIR=.deps depmode=aix /bin/bash ../../../texk/dvipdfmx/../../build-aux/depcomp \
        xlc -DHAVE_CONFIG_H -I. -I../../../texk/dvipdfmx  -I/usr/local/vvv/src/source/Work/texk -I/usr/local/vvv/src/source/texk -I/usr/local/vvv/src/source/Work/libs/libpng/include -I/usr/local/vvv/src/source/Work/libs/zlib/include -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS  -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c -o dvipdfmx-dpxcrypt.o `test -f 'dvipdfmx-20110311/src/dpxcrypt.c' || echo '../../../texk/dvipdfmx/'`dvipdfmx-20110311/src/dpxcrypt.c
"../../../texk/dvipdfmx/dvipdfmx-20110311/src/dpxcrypt.c", line 27.10: 1506-296 (S) #include file <stdint.h> not found.
gmake[4]: *** [dvipdfmx-dpxcrypt.o] Error 1
gmake[4]: Leaving directory `/usr/local/vvv/src/source/Work/texk/dvipdfmx'

and

source='../../../../texk/xdvipdfmx/src/dpxcrypt.c' object='dpxcrypt.o' libtool=no \
        DEPDIR=.deps depmode=aix /bin/bash ../../../../texk/xdvipdfmx/../../build-aux/depcomp \
        xlc -DHAVE_CONFIG_H -I. -I../../../../texk/xdvipdfmx/src -I.. -I/usr/local/vvv/src/source/Work/texk -I/usr/local/vvv/src/source/texk `cat /usr/local/vvv/src/source/Work/libs/freetype2/ft-includes` -I/usr/local/vvv/src/source/Work/libs/libpng/include -I/usr/local/vvv/src/source/Work/libs/zlib/include -I/opt/freeware/include    -I/opt/freeware/include -DUSE_STDLIB_WORKAROUNDS  -O2 -qmaxmem=262144 -qarch=com -qlanglvl=extended -qcpluscmt -c ../../../../texk/xdvipdfmx/src/dpxcrypt.c
"../../../../texk/xdvipdfmx/src/dpxcrypt.c", line 27.10: 1506-296 (S) #include file <stdint.h> not found.
gmake[5]: *** [dpxcrypt.o] Error 1
gmake[5]: Leaving directory `/usr/local/vvv/src/source/Work/texk/xdvipdfmx/src'

on AIX 4.3, there's no <stdint.h> header. However, the needed integer
types are defined in <sys/types.h>

Proper fix needs some autoconf checks. See e.g. the discussion at

https://bugzilla.mozilla.org/show_bug.cgi?id=537784

which contains some workarounds to include <sys/types.h> if it defines int8_t.

Best wishes,
v.


More information about the tlbuild mailing list