gcc-4.3 does not compile wine /usr/include/linux/serial.h:164: error: expected specifier-qualifier-list before '__u32'

Bug #303711 reported by Susan Cragin
14
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
High
Andy Whitcroft

Bug Description

Binary package hint: gcc-4.3

/usr/include/linux/serial.h:164: error: expected specifier-qualifier-list before '__u32'

gcc (Ubuntu 4.3.2-2ubuntu5) 4.3.3 20081129 (prerelease)
has the above bug when trying to compile wine from 30-Nov-2008 git.

jaunty 9.04
kernel 2.6.27-7 generic
and
kernel 2.6.27-9 generic

 gcc -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_NTSYSTEM_ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement
-Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o serial.o serial.c In file included from serial.c:77:
 /usr/include/linux/serial.h:164: error: expected specifier-qualifier-list before '__u32'
make[2]: *** [serial.o] Error 1
make[2]: Leaving directory `/home/susan/wine/dlls/ntdll'
make[1]: *** [ntdll] Error 2
make[1]: Leaving directory `/home/susan/wine/dlls'
make: *** [dlls] Error 2

Revision history for this message
Susan Cragin (susancragin) wrote :

Same result kernel 2.6.28-1-ub

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Andy Whitcroft (apw)
Changed in linux:
assignee: ubuntu-kernel-team → apw
status: Triaged → In Progress
Revision history for this message
Andy Whitcroft (apw) wrote :

@Susan Cragin -- can see this here, seems to be caused by a change to the serial.h to bring a new ioctl which failed to expose the types used in the construction of the ioctl data structure.

I have made a proposed fix to the headers to sort this out, which I have just sent upstream for consideration. Proposed patch is attached here.

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, dupe of 302888, marked mine as dupe of this since this has a patch.

For the record, this also breaks the build of hal and cups.

Revision history for this message
Andy Whitcroft (apw) wrote :

Fix pushed up to the Jaunty tree.

Changed in linux:
status: In Progress → Fix Committed
Revision history for this message
Andy Whitcroft (apw) wrote :

Marking this bug high priority to reflect the status of the duplicate.

Changed in linux:
importance: Medium → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.28-2.2

---------------
linux (2.6.28-2.2) jaunty; urgency=low

  [ Andy Whitcroft ]

  * Revert "SAUCE: (no-up) version: Implement version_signature proc file."
  * SAUCE: (no-up) version: Implement version_signature proc file.
  * SAUCE: serial: RS485 ioctl structure uses __u32 include linux/types.h
    - LP: #303711

  [ Tim Gardner ]

  * UBUNTU: Removed CONFIG_DRM_VIA_CHROME9 since it is upstream.
  * UBUNTU: Removed ubuntu/via_chrome9

  [ Upstream Kernel Changes ]

  * Rebased to v2.6.28-rc7

 -- Tim Gardner <email address hidden> Tue, 02 Dec 2008 07:33:32 -0700

Changed in linux:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.