[mythtv-users] Compile including /usr/bin/locale instead of /usr/include/locale.h
Lincoln Rogers
lincoln at performaplus.co.nz
Sun Jun 15 04:29:25 UTC 2014
Hi Mythtv users,
While compiling mythtv (fixes/0.27) on a fresh mythbuntu install, I came
across a strange error such as the following:
make
ccache g++ -c -m64 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC
-DNDEBUG -fomit-frame-pointer -fPIC -pthread -g -Wall -Wpointer-arith
-D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -fvisibility-inlines-hidden
-Wmissing-declarations -Wno-switch -Woverloaded-virtual -funit-at-a-time
-fvisibility=hidden -D_REENTRANT -fPIC -DMMX -D_GNU_SOURCE -DUSING_VDPAU
-DUSING_X11 -DUSE_JOYSTICK_MENU -DUSE_LIRC -DUSING_XRANDR
-DUSE_OPENGL_PAINTER -DUSING_QTWEBKIT -DMUI_API -DQT_WEBKIT_LIB
-DQT_SQL_LIB -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB
-DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I.
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL
-I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql
-I/usr/include/qt4/QtWebKit -I/usr/include/qt4 -I/usr/include -I/usr/bin
-I/usr/include/libxml2 -I../../external/qjson/include
-I../../external/zeromq/include -I../../external/nzmqt/include/nzmqt
-I../libmythbase -I../.. -I.. -I../../external/FFmpeg -I/usr/X11R6/include
-I. -o util-nvctrl.o util-nvctrl.cpp
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:1:1: error: stray ‘\177’ in program
ELFso.2X W H�|�����L���������M at k
���f.�������>���H���&���fff.�tD��t@��
%�����H���9_ ��H������I������1��.�����^
^
/usr/bin/locale:1:1: error: stray ‘\2’ in program
/usr/bin/locale:1:1: error: stray ‘\1’ in program
/usr/bin/locale:1:1: error: stray ‘\1’ in program
/usr/bin/locale:1:8: warning: null character(s) ignored [enabled by default]
/usr/bin/locale:1:1: error: stray ‘\2’ in program
/usr/bin/locale:1:18: warning: null character(s) ignored [enabled by
default]
/usr/bin/locale:1:20: warning: null character(s) ignored [enabled by
default]
...
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:109:8: error: stray ‘\2’ in program
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:109:1187: warning: null character(s) ignored [enabled by
default]
/usr/bin/locale:109:1194: error: stray ‘@’ in program
/usr/bin/locale:109:1195: warning: null character(s) ignored [enabled by
default]
/usr/bin/locale:109:1217: warning: null character(s) ignored [enabled by
default]
...
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:1:2: error: ‘ELF’ does not name a type
/usr/bin/locale:1:901: error: expected unqualified-id before numeric
constant
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:4:109: error: ‘k’ does not name a type
In file included from util-nvctrl.cpp:12:0:
/usr/bin/locale:17:256: error: ‘H’ does not name a type
/usr/bin/locale:17:290: error: expected declaration before ‘}’ token
make: *** [util-nvctrl.o] Error 1
Now libs/libmythui/util-nvctrl.cpp includes <locale>, and I see in the -I
flags that /usr/include is given before /usr/bin, so why is the compiler
including the binary program /usr/bin/locale rather than
/usr/include/locale.h?
To remedy I just changed added the '.h' extension to the include definition
in util-nvctrl.cpp but I'm confused as to why this is happening. I checked
and my $PATH is identical to my development machine which compiles just
fine.
Any ideas appreciated.
Cheers,
Lincoln.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140615/f4c193c4/attachment.html>
More information about the mythtv-users
mailing list