Debian bug report logs -
#1130, boring messages
Message sent to debian-devel@pixar.com:
Subject: Bug#1130: Stdlib.h problems when using gcc -O-traditional
Reply-To: tim@derwent.co.uk (Tim Morley), debian-bugs@pixar.com
Resent-To: debian-devel@pixar.com
Resent-From: tim@derwent.co.uk (Tim Morley)
Resent-Sender: iwj10@cus.cam.ac.uk
Resent-Date: Thu, 20 Jul 1995 15:55:49 GMT
Resent-Message-ID: <debian-bugs-handler.1130.072015400417571@pixar.com>
X-Debian-PR-Package: libc
X-Debian-PR-Keywords:
Received: via spool for debian-bugs; Thu, 20 Jul 1995 15:55:49 GMT
Received: with rfc822 via encapsulated-mail id 072015400417571;
Thu, 20 Jul 1995 15:40:05 GMT
Received: from pixar.com by mongo.pixar.com with smtp
(Smail3.1.28.1 #15) id m0sYxgB-00065hC; Thu, 20 Jul 95 08:38 PDT
Received: from rh2.derwent.co.uk by pixar.com with SMTP id AA20102
(5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Thu, 20 Jul 1995 08:36:39 -0700
Received: from morgoth.derwent.co.uk by rh2.derwent.co.uk with smtp
(SMAIL3.1.28.1#5)
id m0sYyj0-0000czC;Thu, 20 Jul 95 16:45 GMT
Received: by morgoth.derwent.co.uk
id <m0sYxc5-0000d8C@morgoth.derwent.co.uk>
(Debian /\oo/\ Smail3.1.29.1 #29.32); Thu, 20 Jul 95 16:34 BST
Message-Id: <m0sYxc5-0000d8C@morgoth.derwent.co.uk>
Date: Thu, 20 Jul 95 16:34 BST
From: tim@derwent.co.uk (Tim Morley)
To: debian-bugs@pixar.com
Package: libc
Version: 4.6.27-5
If you use 'gcc -O -traditional' and include stdlib.h it barfs about
multiple definition of a few things...
tim@morgoth:~/> cat test.c
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world\n");
}
tim@morgoth:~/> gcc -O -traditional -o test test.c
In file included from test.c:2:
/usr/include/stdlib.h:154: conflicting types for `initstate'
/usr/include/stdlib.h:143: previous declaration of `initstate'
/usr/include/stdlib.h:156: conflicting types for `setstate'
/usr/include/stdlib.h:144: previous declaration of `setstate'
/usr/include/stdlib.h:196: conflicting types for `cfree'
/usr/include/stdlib.h:191: previous declaration of `cfree'
tim@morgoth:~/>
An example from the stdlib.h follows:
#ifdef __USE_MISC
/* Free a block. An alias for `free'. (Sun Unices). */
extern void cfree __P((void * __ptr));
#ifdef __OPTIMIZE__
#if defined(__cplusplus) || __GNUC__ >= 2
extern __inline void cfree (__ptr_t __ptr)
{ free (__ptr); }
#else
#define cfree(ptr) free(ptr)
#endif
#endif /* Optimizing. */
#endif /* Use misc. */
It would seem that there needs to be some more checking that it
doesn't get __USE_MISC and __OPTIMIZE__ defined at the same time (or
indeed that it does the right things when it gets it!)
Tim M
Message sent:
From: iwj10@thor.cam.ac.uk (Ian Jackson)
To: tim@derwent.co.uk (Tim Morley)
Subject: Bug#1130: Acknowledgement (was: Stdlib.h problems when using gcc -O-traditional)
In-Reply-To: <m0sYxc5-0000d8C@morgoth.derwent.co.uk>
References: <m0sYxc5-0000d8C@morgoth.derwent.co.uk>
Thank you for the problem report you have sent regarding Debian GNU/Linux.
This is an automatically generated reply, to let you know your message has
been received. It is being forwarded to the developers' mailing list for
their attention; they will reply in due course.
If you wish to submit further information on your problem, please send
it to debian-bugs@pixar.com, but please ensure that the Subject
line of your message starts with "Bug#1130" or "Re: Bug#1130" so that
we can identify it as relating to the same problem.
Please do not reply to the address at the top of this message,
unless you wish to report a problem with the bug-tracking system.
Ian Jackson
(maintainer, debian-bugs)
Ian Jackson /
iwj10@thor.cam.ac.uk,
with the debian-bugs tracking mechanism