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