Package: autoconf
Version: 2.69-2
Severity: minor
A developer may want to test his software with
-Werror=old-style-definition (in particular because such definitions
could be a real bug in the software). But configure fails because
autoconf generates such a function definition. For instance:
[...]
configure:4069: checking whether the C compiler works
configure:4130: gcc -O2 -Wall -Wold-style-declaration -Wold-style-definition
-Wmissing-parameter-type -Wmissing-prototypes -Wmissing-declarations
-Wmissing-field-initializers -Werror conftest.c >&5
conftest.c: In function 'main':
conftest.c:12:1: error: old-style function definition
[-Werror=old-style-definition]
main ()
^
cc1: all warnings being treated as errors
configure:4130: $? = 1
configure:4144: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "3.2.0-dev"
| #define PACKAGE_STRING "MPFR 3.2.0-dev"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MPFR_USE_LOGGING 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4144: error: in `/home/vlefevre/software/mpfr':
configure:4144: error: C compiler cannot create executables
See `config.log' for more details
[...]
Are there still compilers that fail on "int main(void) { ... }"?
In any case, certainly not when the compiler has been recognized
as gcc (like here).
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages autoconf depends on:
ii debianutils 4.4
ii m4 1.4.17-2
ii perl 5.18.1-5
Versions of packages autoconf recommends:
ii automake [automaken] 1:1.14.1-2
Versions of packages autoconf suggests:
pn autoconf-archive <none>
ii autoconf-doc 2.69-2
pn autoconf2.13 <none>
ii gettext 0.18.3.1-2
ii gnu-standards 2010.03.11-1
ii libtool 2.4.2-1.6+local1
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]