Bug 30750 - Cannot compile: conflicting types for 'sys_errlist'
Summary: Cannot compile: conflicting types for 'sys_errlist'
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.4.6
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-09 21:39 UTC by alex coletti
Modified: 2007-02-09 21:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex coletti 2007-02-09 21:39:48 UTC
Dear Sir or Madam,
Could you please help me in solving this conflict on compilation? The sys_errlist.h is defined under the TOOLKIT directory and the one in /usr/include/bits needs to be excluded.
This bug is very similar to one reported for cygwin, but I am usind a RedHat box and I ma NOT using cygwin.
Thank you in advance,
Alex

In file included from /home/..../PGE04_untar/PGE04_V5.2.5/shared_src/atmos_src/src_UW/modis_grib_read.c:8:
/home/.../bin/TOOLKIT/include/PGS_SMF.h:200: error: conflicting types for 'sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of 'sys_errlist' was here
/home/..../bin/TOOLKIT/include/PGS_SMF.h:200: error: conflicting types for 'sys_errlist'
/usr/include/bits/sys_errlist.h:28: error: previous declaration of 'sys_errlist' was here
Comment 1 Andrew Pinski 2007-02-09 21:43:29 UTC
First off, this is not the place for asking how to fix C code.
Second what is happening is that the code in /home/.../bin/TOOLKIT/include/PGS_SMF.h on line 200 does a typedef for sys_errlist which is different from what was previously typedef'ed in /usr/include/bits/sys_errlist.h on line 28.  Since GCC does not controll either of those files, this is not a GCC bug.
Comment 2 alex coletti 2007-02-09 21:55:09 UTC
Subject: RE:  Cannot compile: conflicting types for 'sys_errlist'

Thank you for your prompt response. Your comment is helping me a lot.
I apologize for the inconvenience, I saw the discussion of the cygwin error
that was similar..
Warm regards,
Alex

-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Friday, February 09, 2007 4:43 PM
To: acoletti@smrcusa.com
Subject: [Bug c/30750] Cannot compile: conflicting types for
'sys_errlist'




------- Comment #1 from pinskia at gcc dot gnu dot org  2007-02-09
21:43 -------
First off, this is not the place for asking how to fix C code.
Second what is happening is that the code in
/home/.../bin/TOOLKIT/include/PGS_SMF.h on line 200 does a typedef for
sys_errlist which is different from what was previously typedef'ed in
/usr/include/bits/sys_errlist.h on line 28.  Since GCC does not controll
either
of those files, this is not a GCC bug.


--

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30750

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.