Bug 2845

Summary: qt4: qt4-native fails to build on SLED11.2-64bit
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Wenzong.Fan <wenzong.fan>
Component: graphicsAssignee: Wenzong.Fan <wenzong.fan>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher, sgw, song.liu, yi.zhao, zhenfeng.zhao
Version: 1.3   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Wenzong.Fan 2012-07-27 07:35:55 UTC
$ bitbake qt4-natvie

It fails on SLED11.2-x86, the log says:
-----------------------
In file included from embedded/qkbdtty_qws.cpp:57:
| /usr/include/linux/vt.h:74: error: expected unqualified-id before 'new'
| make: *** [.obj/release-shared-emb-x86_64/qkbdtty_qws.o] Error 1
-----------------------

This caused by an old version of '/usr/include/linux/vt.h' which has:

74     unsigned int new;     /* New console (if changing) */

While compile this code with g++, the error occured. The 'new' has been replaced as 'newdv' on mostly distributions.
Comment 2 Yi Zhao 2012-11-14 02:07:22 UTC
Verified with 1.3 danny branch on SLED 11.2.
gitinfo: 27af23e65f63b41962a7cfddba9e9372d5212396