Bug 58128 - Sources won't compile with Intel C/C++ compiler (icc)
Summary: Sources won't compile with Intel C/C++ compiler (icc)
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypserv
Version: 7.2
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-09 12:29 UTC by Sysoltsev Slawa
Modified: 2007-03-27 03:50 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-03-21 16:31:59 UTC
Embargoed:


Attachments (Terms of Use)
Patch for redeclaration of variable with various keywords (295 bytes, patch)
2002-01-09 12:30 UTC, Sysoltsev Slawa
no flags Details | Diff

Description Sysoltsev Slawa 2002-01-09 12:29:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Description of problem:
If we using Intel C/C++ compiler (icc), we got an error while building 
package 'ypserv-1.3.12' on ypxfrd.c:
ypxfrd.c
"ypxfrd.c", line 81: error: declaration is incompatible with "volatile int 
children" (declared at line 22 of "ypserv.h")
  int children = 0;
      ^
looking into sources we see that variable 'children' was previously declared 
as 'volatile int' in "ypserv.h" and redeclared just as 'int' in "ypxfrd.c". It 
is OK for gcc (gcc just ignores first 'volatile' this way), but normally C 
compiler should emit error or at least warning.
I try to change second declaration from 'int' to 'volatile int' 
(file "ypxfrd.c", line 81) and package was built.

With this I create and attach patch for eliminate this error in order to 
increase Red Hat Linux portability.

Version-Release number of selected component (if applicable):
1.3.12

How reproducible:
Always

Steps to Reproduce:
You are unable to reproduce the error now even if you have Intel C/C++ 
compiler, because Intel C/C++ compiler doesn't support __attribute__ ((unused)) 
on function parameters yet.

Actual Results:  Compile-time error.

Expected Results:  Succesfully built package.

Additional info:

Comment 1 Sysoltsev Slawa 2002-01-09 12:30:46 UTC
Created attachment 42092 [details]
Patch for redeclaration of variable with various keywords

Comment 2 Alexander Larsson 2002-08-15 09:03:36 UTC
We don't support icc, please send the patch upstream instead. Upstream here is
kukuk



Note You need to log in before you can comment on or make changes to this bug.