Automake/Autoconf versions
Brad Hards
bhards at bigpond.net.au
Sun Jan 11 00:55:18 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, 11 Jan 2004 09:54 am, Brad Hards wrote:
> source='accept.c' object='accept.lo' libtool=yes \
> depfile='.deps/accept.Plo' tmpdepfile='.deps/accept.TPlo' \
> depmode=gcc3 /bin/sh ../../admin/depcomp \
> /bin/sh ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
> -I../.. -I../../dcop -I../../kio/kssl -I../../dcop -I../../libltdl
> -I../../kdefx -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio
> -I../../kio/kfile -I../..
> -I/home/bradh/coding/cvs-vers/kde-head/qt-copy//include
> -I/usr/X11R6/include -I/usr/local/kde/include -DQT_THREAD_SUPPORT
> -D_REENTRANT -DICE_t -DTRANS_SERVER -DTRANS_CLIENT -DUNIXCONN -DANSICPP
> -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith
> -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2
> -Wformat-security -Wmissing-format-attribute -c -o accept.lo `test -f
> 'accept.c' || echo './'`accept.c In file included from
> ../../dcop/KDE-ICE/ICElibint.h:29,
> from accept.c:32:
> ../../config.h:258: parse error before "gid_t"
config.h in that region with autoconf 2.52
<extract>
/* Define if you have the `initgroups' function. */
#define HAVE_INITGROUPS 1
#if !defined(HAVE_INITGROUPS_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
int initgroups(const char *, gid_t);
#ifdef __cplusplus
}
#endif
#endif
/* Define if you have the initgroups prototype */
#define HAVE_INITGROUPS_PROTO 1
</extract>
The config.log segment looks like:
<extract>
configure:31123: checking for initgroups
configure:31163: g++ -c -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SO
URCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exc
eptions -fno-check-new -fno-common -pedantic-errors -DQT_THREAD_SUPPORT -D_REENTRANT conftest.cc >&5
configure:31166: $? = 0
configure:31169: test -s conftest.o
configure:31172: $? = 0
configure:31191: result: yes
configure:31194: checking if initgroups needs custom prototype
configure:31278: result: no
</extract>
The results for 2.57 are just the same (the applicable section in config.log
appears identical), except the ordering in config.h is different in 2.57, where
all the #define's are at the top, and the conditional prototypes are at the
bottom of the file.
> In file included from ../../dcop/KDE-ICE/ICElibint.h:44,
> from accept.c:32:
> /usr/include/stdlib.h:607: conflicting types for `unsetenv'
> ../../config.h:684: previous declaration of `unsetenv'
OK, the config.h segment with 2.52 for the unsetenv stuff looks like:
<extract>
/* Define if you have unsetenv */
#define HAVE_UNSETENV 1
#if !defined(HAVE_UNSETENV_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
void unsetenv (const char *);
#ifdef __cplusplus
}
#endif
#endif
/* Define if you have the unsetenv prototype */
#define HAVE_UNSETENV_PROTO 1
</extract>
and its the same problem. Basically 2.52 is generating bogus
config.h.
A quick search through the Changelog for 2.57 didn't show
anything indicative - maybe a binary search of autoconf
versions?
Brad
- --
http://linux.conf.au - I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAAJ73GwwszQ/PZzgRArujAJ9bn6hZ8jMRsCNe+klQhsC8rqygIgCdHqDN
W4W9RV4U+a/VemBWr9el8Ig=
=s2uK
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list