|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-bugs
[Xen-bugs] [Bug 369] New: make world gives compilation errors with	gcc 4 
| http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=369
           Summary: make world gives compilation errors with gcc 4.0.0
           Product: Xen
           Version: 2.0
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: jblom@xxxxxxxxxxxxxx
1. When running "make world" at "Fedora Core release 4 (Stentz)" using gcc
version "4.0.0 20050519 (Red Hat 4.0.0-8)" at a dual Xeon processor system the
compilation failes when including line 175
    extern struct tss_struct init_tss[NR_CPUS];
from file "./xen/include/asm/processor.h" with the message
    error: array type has incomplete element type
The reason is that "struct tss_struct" is defined later in that file. For gcc 4
it is an error to have an array of still undefined struct elements while gcc 3.X
does accept this. The problem can be solved by changing line 175 into
    extern struct tss_struct *init_tss
or moving this line after the definition of "tss_struct"
2. There are at various places mismatches between function arguments where
"unsigned char *" is expected and "char *" is supplied or reversely. With
options "-Wall -error" this is leading to compiler failures at gcc 4, while gcc
3.X is accepting these mismatches.
-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Xen-bugs mailing list
Xen-bugs@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-bugs
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-bugs] [Bug 369] New: make world gives compilation errors with	gcc 4.0.0,
bugzilla-daemon <=
 |  |  | 
  
    |  |  |