bug-gnulib
[Top][All Lists]
Advanced

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

stdint.h: #if with no expression


From: Tim Rühsen
Subject: stdint.h: #if with no expression
Date: Tue, 26 Sep 2017 15:59:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

With the latest gnulib I experience the mentioned error.

Command sequence (configure.ac, Makefile.am, ... exists):

../gnulib/gnulib-tool --import --local-dir=gl/override --lib=libgnu
--source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=gltests
--aux-dir=build-aux --with-tests --avoid=fcntl-h-tests
--avoid=stdlib-tests --avoid=string-tests --avoid=sys_stat-tests
--avoid=time-tests --avoid=unistd-tests --avoid=update-copyright-tests
--avoid=wchar-tests --no-conditional-dependencies --libtool
--macro-prefix=gl --no-vc-files autobuild csharpcomp-script
csharpexec-script error fdl-1.3 gendocs getline getopt-gnu gnupload
maintainer-makefile manywarnings pmccabe2html progname update-copyright
useless-if-before-free valgrind-tests vc-list-files version-etc warnings

autoreconf -fi

./configure

make -C gl

make -C gltests

make -C gltests check

Output:

/usr/bin/make  libtests.a test-alloca-opt test-binary-io test-cloexec
test-close test-dup2 test-environ test-errno test-fcntl test-fdopen
test-fgetc test-fputc test-fread test-fstat test-fwrite test-getcwd-lgpl
test-getdelim test-getdtablesize test-getline test-getopt-gnu
test-getopt-posix test-getprogname test-ignore-value test-intprops
test-inttypes test-limits-h test-lstat test-malloca test-open
test-pathmax test-setenv test-stat test-stdalign test-stdbool
test-stddef test-stdint test-stdio test-strerror test-symlink
test-sys_types test-unsetenv test-verify test-version-etc
make[3]: Entering directory '/usr/oms/src/x/gltests'
  CC       binary-io.o
  CC       fd-hook.o
  CC       malloca.o
  CC       cloexec.o
  CC       version-etc-fsf.o
  CC       fcntl.o
  CC       test-alloca-opt.o
  CC       test-binary-io.o
  CC       test-cloexec.o
  CC       test-close.o
  CC       test-dup2.o
  CC       test-environ.o
In file included from malloca.h:24:0,
                 from malloca.c:22:
../gl/stdint.h:89:5: error: #if with no expression
 #if
     ^
Makefile:2021: recipe for target 'malloca.o' failed
make[3]: *** [malloca.o] Error 1

This output is unexpected.
It seems that GNULIB_OVERRIDES_WINT_T is empty, but why ?

$ grep GNULIB_OVERRIDES_WINT_T *
configure:          if test $GNULIB_OVERRIDES_WINT_T = 1; then


System: Latest Debian unstable (gcc (Debian 7.2.0-7) 7.2.0)


With Best Regards, Tim

PS: the configure.ac:
AC_PREREQ(2.61)
AC_INIT([GNU Libidn], [1.34], address@hidden)
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS(config.h)
AM_INIT_AUTOMAKE([1.10 -Wall -Werror -Wno-override])
AM_SILENT_RULES([yes])

# Library code modified:                              REVISION++
# Interfaces changed/added/removed:   CURRENT++       REVISION=0
# Interfaces added:                             AGE++
# Interfaces removed:                           AGE=0
AC_SUBST(LT_CURRENT, 17)
AC_SUBST(LT_REVISION, 17)
AC_SUBST(LT_AGE, 6)

AC_PROG_CC
gl_EARLY
lgl_EARLY

m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT([win32-dll])

# Checks for programs.
AM_MISSING_PROG(PERL, perl, $missing_dir)
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
AM_GNU_GETTEXT(external)
AM_GNU_GETTEXT_VERSION([0.19.8])
AM_ICONV
AM_PATH_LISPDIR

# Checks for header files.
AC_HEADER_STDC

# For gnulib stuff in gl/.
gl_INIT
lgl_INIT

# Check if locale stuff works
AM_LANGINFO_CODESET

AC_CONFIG_FILES([
  Makefile
  gl/Makefile
  gltests/Makefile
])
AC_OUTPUT


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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