Bug 2845 - qt4: qt4-native fails to build on SLED11.2-64bit
Summary: qt4: qt4-native fails to build on SLED11.2-64bit
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3
Assignee: Wenzong.Fan
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-07-27 07:35 UTC by Wenzong.Fan
Modified: 2012-11-14 02:07 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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