bug-m4
[Top][All Lists]
Advanced

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

Re: regex.c not 64-bit clean (?)


From: Santiago Vila
Subject: Re: regex.c not 64-bit clean (?)
Date: Mon, 12 Jun 2006 20:07:11 +0200 (CEST)

> First, confirm if the bug is still present in CVS m4:
> $ cd m4
> $ ./bootstrap
> $ ./configure CFLAGS='-Wall -Werror'
> $ make

It fails, yes. Lots of lines like this:

regex.c: In function 're_match_2_internal':
regex.c:3999: warning: cast from pointer to integer of different size
regex.c:3999: warning: cast from pointer to integer of different size
[...]

> I suspect it will be, since I really haven't touched regex.c that much
> since 1.4.4.  Then try this patch which pulls the latest regex.c from
> gnulib:
> 
> $ make clean
> $ patch -p0 < email
> $ GNULIB_TOOL=../gnulib/gnulib-tool ./bootstrap
> $ ./configure CFLAGS='-Wall -Werror'
> $ make

This is what happens:

make  all-recursive
make[1]: Entering directory `/home/sanvila/tmp/m4'
Making all in examples
make[2]: Entering directory `/home/sanvila/tmp/m4/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/sanvila/tmp/m4/examples'
Making all in lib
make[2]: Entering directory `/home/sanvila/tmp/m4/lib'
cp ./alloca_.h alloca.h-t
mv alloca.h-t alloca.h
make  all-am
make[3]: Entering directory `/home/sanvila/tmp/m4/lib'
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c strnlen1.c
gcc -DHAVE_CONFIG_H -I. -I. -I..     -Wall -Werror -c xalloc-die.c
In file included from /usr/include/stdlib.h:433,
                 from xalloc-die.c:26:
/usr/include/sys/types.h:110: error: two or more data types in declaration 
specifiers
make[3]: *** [xalloc-die.o] Error 1
make[3]: Leaving directory `/home/sanvila/tmp/m4/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/sanvila/tmp/m4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sanvila/tmp/m4'
make: *** [all] Error 2

$ gcc --version
gcc (GCC) 4.1.2 20060604 (prerelease) (Debian 4.1.1-2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


This is on a debian machine with architecture "ia64". Unfortunately,
I am not root, so I can't change anything in the build environment
(in fact I've had to do the cvs and bootstrap parts in another machine).




reply via email to

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