Firebird News

Tuesday, January 19, 2010

#Ubuntu #NaCL #qt compiling errors fcntl.h:99:conflicts with new declaration with ‘C’ linkage

I followed the readme http://qt.gitorious.org/qt-labs/nacl/blobs/nacl-labs/readme-nacl
git clone git://gitorious.org/qt-labs/nacl.git
cd nacl
export PATH=$PATH:/home/mariuz/Downloads/build/native_client/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/bin/
export PATH=$PATH:/home/mariuz/Downloads/build/native_client/scons-out/opt-linux-x86-32/staging/
./configure -nacl /home/mariuz/Downloads/build/
cd src/tools; make
cd ../..
make sub-src

In file included from /home/mariuz/Downloads/build/native_client/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/bin/../lib/gcc/nacl/4.2.2/../../../../nacl/include/fcntl.h:1,
from ../../mkspecs/qws/linux-nacl-g++/qplatformdefs.h:40,
from arch/generic/qatomic_generic_unix.cpp:44:
../../include/QtCore/../../src/corelib/nacl/qnaclunimplemented.h:32: error: previous declaration of ‘int open(const char*, int, ...)’ with ‘C++’ linkage
/home/mariuz/Downloads/build/native_client/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/bin/../lib/gcc/nacl/4.2.2/../../../../nacl/include/sys/fcntl.h:99: error: conflicts with new declaration with ‘C’ linkage

No comments: