bug-gettext
[Top][All Lists]
Advanced

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

Re: [bug-gettext] Compiled Gettext Binaries are Corrupted


From: Jordan Irwin
Subject: Re: [bug-gettext] Compiled Gettext Binaries are Corrupted
Date: Tue, 20 Aug 2019 15:52:15 -0700

Thank you for the reply Bruno. I understand that it is not supported. I've sent a help request there to the MSYS2 project as well. Just hoping I can get more exposure/insight from the Gettext/GNU community. If I can't get this to work, I will try compiling using a supported set of tools on Win32.

Not sure that it shows anything helpful, but this is the config.log for 0.20.1:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gettext configure 0.20.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/configure --disable-curses --with-included-libxml --with-included-regex --with-included-libunistring --without-xz --prefix=/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64 --enable-shared=no --enable-static=yes

## --------- ##
## Platform. ##
## --------- ##

hostname = DESKTOP-23IIIE7
uname -m = x86_64
uname -r = 3.0.7-338.x86_64
uname -s = MINGW64_NT-10.0-17763
uname -v = 2019-07-11 10:58 UTC

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/bin
PATH: /c/Development/Python/3
PATH: /c/Development/Python/3/Scripts
PATH: /c/Development/Python/2
PATH: /c/Development/Python/2/Scripts
PATH: /mingw64/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /c/Windows/System32
PATH: /c/Windows
PATH: /c/Windows/System32/Wbem
PATH: /c/Windows/System32/WindowsPowerShell/v1.0/
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1795: loading site script /mingw64/etc/config.site
| # This file is in public domain.
| # Original author: Karlson2k (Evgeny Grin)
| # Written for MSys2/MinGW64 to help running 'configure' scripts
|
| # Defaults for MinGW64-targeted programs
|
| # Set proper selfname on bash and fallback to default name on other shells
| test -n "${BASH_SOURCE}" 2>/dev/null && config_site_me="${BASH_SOURCE[0]##*/}" || config_site_me=config.site
|
| # Set default 'host' to speedup configure
| if test -z "$build_alias"; then
|   build_alias="${MSYSTEM_CHOST-x86_64-w64-mingw32}" && \
|     ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default build_alias set to $build_alias" >&5
| fi
|
| # Set default 'prefix' to "/mingw64"
| if ( test -z "$prefix" || test "x$prefix" = "xNONE" ) && \
|    ( test -z "$exec_prefix" || test "x$exec_prefix" = "xNONE" ); then
|   prefix="${MSYSTEM_PREFIX-/mingw64}" && \
|     ${as_echo-echo} "$config_site_me:${as_lineno-$LINENO}: default prefix set to $prefix" >&5
| fi
config.site:13: default build_alias set to x86_64-w64-mingw32
configure:1937: checking for a BSD-compatible install
configure:2005: result: /usr/bin/install -c
configure:2016: checking whether build environment is sane
configure:2071: result: yes
configure:2222: checking for a thread-safe mkdir -p
configure:2261: result: /usr/bin/mkdir -p
configure:2268: checking for gawk
configure:2284: found /usr/bin/gawk
configure:2295: result: gawk
configure:2306: checking whether make sets $(MAKE)
configure:2328: result: yes
configure:2357: checking whether make supports nested variables
configure:2374: result: yes
configure:2463: checking whether UID '197609' is supported by ustar format
configure:2466: result: yes
configure:2473: checking whether GID '197609' is supported by ustar format
configure:2476: result: yes
configure:2484: checking how to create a ustar tar archive
configure:2495: tar --version
tar (GNU tar) 1.32
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
configure:2498: $? = 0
configure:2538: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:2541: $? = 0
configure:2545: tar -xf - <conftest.tar
configure:2548: $? = 0
configure:2550: cat conftest.dir/file
GrepMe
configure:2553: $? = 0
configure:2566: result: gnutar
configure:2635: checking build system type
configure:2649: result: x86_64-w64-mingw32
configure:2669: checking host system type
configure:2682: result: x86_64-w64-mingw32
configure:3363: checking that generated files are newer than configure
configure:3369: result: done
configure:3377: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by gettext config.status 0.20.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  CONFIG_FILES    =
  CONFIG_HEADERS  =
  CONFIG_LINKS    =
  CONFIG_COMMANDS =
  $ ./config.status

on DESKTOP-23IIIE7

config.status:765: creating Makefile
config.status:765: creating gnulib-local/Makefile
configure:4463: === configuring in gettext-runtime (/c/Users/antum/Development/MyABCs/code/libraries/build/gettext-0.20.1-win32-x86_64/gettext-runtime)
configure:4526: running /bin/sh /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/gettext-runtime/configure --disable-option-checking '--prefix=/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64'  '--disable-curses' '--with-included-libxml' '--with-included-regex' '--with-included-libunistring' '--without-xz' '--enable-shared=no' '--enable-static=yes' 'CFLAGS=' 'LDFLAGS= -L/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/lib' 'LIBS=' 'CPPFLAGS= -I/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/include' 'CXXFLAGS=' --cache-file=/dev/null --srcdir=/c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/gettext-runtime
configure:4463: === configuring in libtextstyle (/c/Users/antum/Development/MyABCs/code/libraries/build/gettext-0.20.1-win32-x86_64/libtextstyle)
configure:4526: running /bin/sh /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/libtextstyle/configure --disable-option-checking '--prefix=/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64'  '--disable-curses' '--with-included-libxml' '--with-included-regex' '--with-included-libunistring' '--without-xz' '--enable-shared=no' '--enable-static=yes' 'CFLAGS=' 'LDFLAGS= -L/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/lib' 'LIBS=' 'CPPFLAGS= -I/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/include' 'CXXFLAGS=' --cache-file=/dev/null --srcdir=/c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/libtextstyle
configure:4463: === configuring in gettext-tools (/c/Users/antum/Development/MyABCs/code/libraries/build/gettext-0.20.1-win32-x86_64/gettext-tools)
configure:4526: running /bin/sh /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/gettext-tools/configure --disable-option-checking '--prefix=/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64'  '--disable-curses' '--with-included-libxml' '--with-included-regex' '--with-included-libunistring' '--without-xz' '--enable-shared=no' '--enable-static=yes' 'CFLAGS=' 'LDFLAGS= -L/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/lib' 'LIBS=' 'CPPFLAGS= -I/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/include' 'CXXFLAGS=' --cache-file=/dev/null --srcdir=/c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/gettext-tools

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-w64-mingw32
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=' -I/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_EMACSLOADPATH_set=
ac_cv_env_EMACSLOADPATH_value=
ac_cv_env_EMACS_set=
ac_cv_env_EMACS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=' -L/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/lib'
ac_cv_env_LIBS_set=set
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-w64-mingw32
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
am_cv_prog_tar_ustar=gnutar

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/missing aclocal-1.16'
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/missing automake-1.16'
AWK='gawk'
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=' -I/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/include'
CXX=''
CXXCPP=''
CXXFLAGS=''
CYGPATH_W='cygpath -w'
DEFS='-DPACKAGE_NAME=\"gettext\" -DPACKAGE_TARNAME=\"gettext\" -DPACKAGE_VERSION=\"0.20.1\" -DPACKAGE_STRING=\"gettext\ 0.20.1\" -DPACKAGE_BUGREPORT=\"address@hidden\" -DPACKAGE_URL=\"\" -DPACKAGE=\"gettext\" -DVERSION=\"0.20.1\"'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EMACS=''
EMACSLOADPATH=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=' -L/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64/lib'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/missing makeinfo'
MKDIR_P='/usr/bin/mkdir -p'
PACKAGE='gettext'
PACKAGE_BUGREPORT='address@hidden'
PACKAGE_NAME='gettext'
PACKAGE_STRING='gettext 0.20.1'
PACKAGE_TARNAME='gettext'
PACKAGE_URL=''
PACKAGE_VERSION='0.20.1'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='0.20.1'
YACC=''
YFLAGS=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__tar='${AMTAR} chf - --format=ustar --owner=root --group=root "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='x86_64-w64-mingw32'
build_alias='x86_64-w64-mingw32'
build_cpu='x86_64'
build_os='mingw32'
build_vendor='w64'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-w64-mingw32'
host_alias=''
host_cpu='x86_64'
host_os='mingw32'
host_vendor='w64'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /c/Users/antum/Development/MyABCs/code/libraries/source/gettext-0.20.1/build-aux/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/c/Users/antum/Development/MyABCs/code/libraries/libprefix-win32-x86_64'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=' gettext-runtime libtextstyle gettext-tools'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "gettext"
#define PACKAGE_TARNAME "gettext"
#define PACKAGE_VERSION "0.20.1"
#define PACKAGE_STRING "gettext 0.20.1"
#define PACKAGE_BUGREPORT "address@hidden"
#define PACKAGE_URL ""
#define PACKAGE "gettext"
#define VERSION "0.20.1"

configure: exit 0

On Tue, Aug 20, 2019 at 3:39 PM Bruno Haible <address@hidden> wrote:
Jordan Irwin wrote:
> I have tried compiling both version 0.19.8.1 & 0.20.1 on my Windows system.
> 0.20.1 compiled successfully, but the executables *msgfmt.exe*,
> *msgmerge.exe*, & *xgettext.exe* all segfault. So, I decided to try
> downgrading to v0.19.8.1. This one fails ...

Version 0.20.1 is the one to look at. There have been many Windows-specific
fixes between 0.19.8.1 and 0.20.1; I won't explain them here one-by-one.

> I am on Windows 10 64-bit compiling under the MSYS2/MinGW-w64 environment
> <https://www.msys2.org/>. Any help is much appreciated.

Read the INSTALL.windows file. You will see that the MSYS2 build environment
is not supported. Choose one of the supported ones.

Note also that Michele Locati provides precompiled binaries of GNU gettext
for Windows, at
https://github.com/mlocati/gettext-iconv-windows
https://github.com/mlocati/gettext-iconv-windows/releases
https://mlocati.github.io/articles/gettext-iconv-windows.html

Bruno


reply via email to

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