Malloc error when cross compiling libXt-1.2.1

Thomas Dickey dickey at his.com
Sun May 15 23:26:34 UTC 2022


----- Original Message -----
| From: "alexandre schenberg" <ale.schenberg at yandex.com>
| To: xorg at lists.x.org
| Sent: Sunday, May 15, 2022 7:06:12 PM
| Subject: Malloc error when cross compiling libXt-1.2.1

| Hello. When I try to cross compile libXT 1.2.1 (or any version) for i386, I
| receive:
| 
|| configure:18569: checking whether malloc(0) returns NULL

looks like

https://gitlab.freedesktop.org/xorg/lib/libxt/-/blob/edd70bdfbbd16247e3d9564ca51d864f82626eb7/configure.ac

XORG_CHECK_MALLOC_ZERO

which comes from here:

https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in
https://gitlab.freedesktop.org/xorg/util/macros/-/blob/master/xorg-macros.m4.in#L1370

and as explained here

https://www.gnu.org/software/autoconf/manual/autoconf-2.63/html_node/Runtime.html

it's lacking a third choice on the end of the AC_RUN_IFELSE macro.
Overlooked here:

https://gitlab.freedesktop.org/xorg/util/macros/-/commit/af0164c2ded2dcc95b72ca3b9bfbad9b790490f7


|| configure:18576: error: in
|| `/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/libXt-1.2.1':
|| configure:18578: error: cannot run test program while cross compiling
|| See `config.log' for more details
| 
| The above four lines were taken from config.log.
| 
| My configure command it is:
| 
|| CFLAGS=-m32 ./configure
|| --prefix=/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xt-1.2.1
|| --host=i386-gnu-linux
| | PKG_CONFIG_PATH=/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/X11-1.4.4/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Xorgproto-2018.1/share/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xcb-1.7/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux/xorg/Pthread-stubs-0.1/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/Xau-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/SM-1.0.0/lib/pkgconfig/:/media/34GB/Arquivos-de-Programas-Linux-32bit/xorg/ICE-1.0.0/lib/pkgconfig

-- 
Thomas E. Dickey <dickey at invisible-island.net>
http://invisible-island.net
ftp://ftp.invisible-island.net


More information about the xorg mailing list