This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
GCC 3.2.3 Linker error while compiling appz using <errno.h> (maybe glibc error)
- From: Radosław Ejsmont <rejsmont at rejsmont dot eu dot org>
- To: <bugtraq at securityfocus dot com>,<gcc-bugs at gcc dot gnu dot org>
- Date: Sun, 23 Nov 2003 13:38:02 +0100
- Subject: GCC 3.2.3 Linker error while compiling appz using <errno.h> (maybe glibc error)
- Organization: Radosław Ejsmont
- Reply-to: <rejsmont at rejsmont dot eu dot org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've found an error in GCC 3.2.3. When compiling some applications using errno.h when errno.h is included indirectly (in other included file) GCC bails out with a message:
Acze <acze@acze.net> has reported that it also applies to GCC 2.95, but only in some (unknown) cases.
# make
substdio.a(substdo.o): In function `allwrite':
substdo.o(.text+0x47): undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [auto-str] Error 1
This can be easly fixed in compiled application by supplying errorous file with #include <errno.h> however this is just a temporary fix letting you complite desired application. GCC or GLIBC still has this error.
This message has albo been sent to vendor.
This has been tested on Slackware 9.1 with most current packages, and on Gentoo while compiling Qmail, PHP and a few more appz.
Regards,
Radoslaw Ejsmont
- --
_________________________________________________________
/ *** Radoslaw Ejsmont *** \
\ <rejsmont@rejsmont.eu.org> /
/=========================================================\
\ ICQ#: 264814098; GG#: 1282983; IRCname: Bugsik /
/ WEBsite: http://rejsmont.eu.org \
\ A74F 2BE1 C705 AE05 A4BC BA5A 092E C3AB 8594 AE8E /
/ \
\____________________________________________ArcAngel@UHE_/
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBP8CqKQkuw6uFlK6OEQJ0EACgv0PGi1NUKxRNsMuYSXRqw8/rqp4AoObp
cJNo0eDKbEMOQzj1jNL9fMLN
=Vshv
-----END PGP SIGNATURE-----