Pulse-Eight/libcec — Issue #8: Can't compile on Hardy
Author: samnazarko
Created: 2011-11-27 00:53:52+00:00
State: open

```
Making all in src/lib
make[1]: Entering directory `/test/Pulse-Eight-libcec-7e793bd/src/lib'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"libcec\" -DPACKAGE_TARNAME =\"libcec\" -DPACKAGE_VERSION=\"1:2:0\" -DPACKAGE_STRING=\"libcec\ 1:2:0\" -DPACKAGE_BUGREPORT=\"\ " -DPACKAGE=\"libcec\" -DVERSION=\"1:2:0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H =1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -D HAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/test/Pulse-Eight-libcec-7e793bd/include -fPIC -Wall -Wextra -g -O2 -MT libcec_la-AdapterCommunication.lo -MD -MP -MF .deps/libcec_la-Ad apterCommunication.Tpo -c -o libcec_la-AdapterCommunication.lo `test -f 'AdapterCommunication.cpp' || echo './'`AdapterCommunication.cpp
mkdir .libs
g++ -DPACKAGE_NAME=\"libcec\" -DPACKAGE_TARNAME=\"libcec\" -DPACKAGE_VERSION=\"1:2:0\" "-DPACKAGE _STRING=\"libcec 1:2:0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libcec\" -DVERSION=\"1:2:0\" -DSTDC _HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEM ORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H= 1 -I. -I/test/Pulse-Eight-libcec-7e793bd/include -fPIC -Wall -Wextra -g -O2 -MT libcec_la-AdapterC ommunication.lo -MD -MP -MF .deps/libcec_la-AdapterCommunication.Tpo -c AdapterCommunication.cpp -fPIC -DPIC -o .libs/libcec_la-AdapterCommunication.o
In file included from AdapterCommunication.h:37,
from AdapterCommunication.cpp:33:
util/StdString.h: In function 'wchar_t* StdCodeCvt(wchar_t*, int, const char*, int, const std::loc ale&)':
util/StdString.h:867: warning: missing initializer for member '__mbstate_t::__value'
util/StdString.h: In function 'char* StdCodeCvt(char*, int, const wchar_t*, int, const std::locale &)':
util/StdString.h:910: warning: missing initializer for member '__mbstate_t::__value'
AdapterCommunication.cpp: At global scope:
AdapterCommunication.cpp:259: warning: unused parameter 'iTimeoutMs'
g++ -DPACKAGE_NAME=\"libcec\" -DPACKAGE_TARNAME=\"libcec\" -DPACKAGE_VERSION=\"1:2:0\" "-DPACKAGE _STRING=\"libcec 1:2:0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libcec\" -DVERSION=\"1:2:0\" -DSTDC _HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEM ORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H= 1 -I. -I/test/Pulse-Eight-libcec-7e793bd/include -fPIC -Wall -Wextra -g -O2 -MT libcec_la-AdapterC ommunication.lo -MD -MP -MF .deps/libcec_la-AdapterCommunication.Tpo -c AdapterCommunication.cpp - o libcec_la-AdapterCommunication.o >/dev/null 2>&1
mv -f .deps/libcec_la-AdapterCommunication.Tpo .deps/libcec_la-AdapterCommunication.Plo
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DPACKAGE_NAME=\"libcec\" -DPACKAGE_TARNAME =\"libcec\" -DPACKAGE_VERSION=\"1:2:0\" -DPACKAGE_STRING=\"libcec\ 1:2:0\" -DPACKAGE_BUGREPORT=\"\ " -DPACKAGE=\"libcec\" -DVERSION=\"1:2:0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H =1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -D HAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -I. -I/test/Pulse-Eight-libcec-7e793bd/include -fPIC -Wall -Wextra -g -O2 -MT libcec_la-AdapterDetection.lo -MD -MP -MF .deps/libcec_la-Adapte rDetection.Tpo -c -o libcec_la-AdapterDetection.lo `test -f 'AdapterDetection.cpp' || echo './'`Ad apterDetection.cpp
g++ -DPACKAGE_NAME=\"libcec\" -DPACKAGE_TARNAME=\"libcec\" -DPACKAGE_VERSION=\"1:2:0\" "-DPACKAGE _STRING=\"libcec 1:2:0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libcec\" -DVERSION=\"1:2:0\" -DSTDC _HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEM ORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H= 1 -I. -I/test/Pulse-Eight-libcec-7e793bd/include -fPIC -Wall -Wextra -g -O2 -MT libcec_la-AdapterD etection.lo -MD -MP -MF .deps/libcec_la-AdapterDetection.Tpo -c AdapterDetection.cpp -fPIC -DPIC -o .libs/libcec_la-AdapterDetection.o
In file included from AdapterDetection.cpp:49:
/usr/include/libudev.h:21:2: error: #error "#define LIBUDEV_I_KNOW_THE_API_IS_SUBJECT_TO_CHANGE is needed to use this experimental library version"
In file included from AdapterDetection.cpp:35:
util/StdString.h: In function 'wchar_t* StdCodeCvt(wchar_t*, int, const char*, int, const std::loc ale&)':
util/StdString.h:867: warning: missing initializer for member '__mbstate_t::__value'
util/StdString.h: In function 'char* StdCodeCvt(char*, int, const wchar_t*, int, const std::locale &)':
util/StdString.h:910: warning: missing initializer for member '__mbstate_t::__value'
```
Attempting compilation on Hardy. Obviously Hardy does not have a udev-dev package, so I used udev 141 source from Karmic (Lucid's is too high and requires >=2.6.27, target is 2.6.24). Dealt with dependencies:

Installed via apt:

libacl1-dev,
libattr1-dev
libusb-dev

Compiled from source:

Had to compile USBUTILS as Hardy version < 0.82
pciutils source needs for pci.ids
gobject-introspection which requires flex, libffi-dev

But getting the above error when trying to compile 1.2 or git head.