public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/30750]  New: Cannot compile: conflicting types for 'sys_errlist'
@ 2007-02-09 21:39 acoletti at smrcusa dot com
  2007-02-09 21:43 ` [Bug c/30750] " pinskia at gcc dot gnu dot org
  2007-02-09 21:55 ` acoletti at smrcusa dot com
  0 siblings, 2 replies; 3+ messages in thread
From: acoletti at smrcusa dot com @ 2007-02-09 21:39 UTC (permalink / raw)
  To: gcc-bugs

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


-- 
           Summary: Cannot compile: conflicting types for 'sys_errlist'
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: acoletti at smrcusa dot com


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/30750] Cannot compile: conflicting types for 'sys_errlist'
  2007-02-09 21:39 [Bug c/30750] New: Cannot compile: conflicting types for 'sys_errlist' acoletti at smrcusa dot com
@ 2007-02-09 21:43 ` pinskia at gcc dot gnu dot org
  2007-02-09 21:55 ` acoletti at smrcusa dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-09 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/30750] Cannot compile: conflicting types for 'sys_errlist'
  2007-02-09 21:39 [Bug c/30750] New: Cannot compile: conflicting types for 'sys_errlist' acoletti at smrcusa dot com
  2007-02-09 21:43 ` [Bug c/30750] " pinskia at gcc dot gnu dot org
@ 2007-02-09 21:55 ` acoletti at smrcusa dot com
  1 sibling, 0 replies; 3+ messages in thread
From: acoletti at smrcusa dot com @ 2007-02-09 21:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from acoletti at smrcusa dot com  2007-02-09 21:55 -------
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.


-- 


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-09 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-09 21:39 [Bug c/30750] New: Cannot compile: conflicting types for 'sys_errlist' acoletti at smrcusa dot com
2007-02-09 21:43 ` [Bug c/30750] " pinskia at gcc dot gnu dot org
2007-02-09 21:55 ` acoletti at smrcusa dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).