FTBFS on armel natty

Bug #727771 reported by Jani Monoses
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mumble (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: mumble

http://launchpadlibrarian.net/65379724/buildlog_ubuntu-natty-armel.mumble_1.2.3-1ubuntu1_FAILEDTOBUILD.txt.gz

g++ -c -include release/mumble11x -pipe -Wfatal-errors -Wshadow -Woverloaded-virtual -Wold-style-cast -Wconversion -Wsign-compare -fvisibility=hidden -g -Wall -Wextra -O2 -I/usr/include/alsa -D_REENTRANT -Wall -W -D_REENTRANT -DNO_UPDATE_CHECK -DPLUGIN_PATH=/usr/lib/mumble -DMUMBLE_VERSION=1.2.3-1ubuntu1 -DHAVE_LIMITS_H -DHAVE_ENDIAN_H -DRESTRICT=__restrict__ -D_FORTIFY_SOURCE=2 -DMUMBLE_VERSION_STRING=1.1.8 -DMUMBLE_VERSION=1.1.x -DCOMPAT_CLIENT -DUSE_ALSA -DUSE_OSS -DUSE_PULSEAUDIO -DUSE_DBUS -DUSE_SPEECHD -DQT_NO_DEBUG -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++ -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 -I/usr/include/qt4/QtDBus -I.. -I/usr/lib/oss/include -Irelease -I/usr/X11R6/include -I. -o release/AudioStats.o AudioStats.cpp
<command-line>:0:0: warning: "MUMBLE_VERSION" redefined
<command-line>:0:0: note: this is the location of the previous definition
AudioStats.cpp: In member function 'virtual void AudioEchoWidget::initializeGL()':
AudioStats.cpp:132:12: error: 'GL_LIGHTING' was not declared in this scope
compilation terminated due to -Wfatal-errors.
make[3]: *** [release/AudioStats.o] Error 1

Jani Monoses (jani)
tags: added: arm-porting-queue
Revision history for this message
Dr. David Alan Gilbert (davidgil-uk) wrote :

This appears related to Qt on ARM using the newer GLES2 rather than GL:

  1) It calls GL calls without #including the GL headers itself, and gets lucky on other platforms with Qt including them
  2) It doesn't have a dependency in on mesa even though it's including the headers directly.
  3) If it did include/link with GL it might cause a clash with the GLES that's linked.

See:
  https://wiki.linaro.org/WorkingGroups/Middleware/Graphics/Docs/GLPortingGuide
  http://www.khronos.org/opengles/2_X/

tags: added: gles2
Revision history for this message
Dr. David Alan Gilbert (davidgil-uk) wrote :

I reckon the quick fix here is to just ifdef out the AudioStats GL code either on ARM or preferably if there is a useful ifdef for GLES2.

Given what it's doing I think the right fix is probably to avoid GL or go through standard Qt interfaces rather than calling GL directly.

Dave

Revision history for this message
Thorvald Natvig (slicer) wrote :

There's already work in progress upstream to switch this to regular Qt drawing. Qt drawing is slightly slower, but a lot more portable.

tags: added: armel
Revision history for this message
Loïc Minier (lool) wrote :

Cool, is there any update on this upstream work? Any upstream bug or branch we should watch?

Revision history for this message
Jani Monoses (jani) wrote :

On #mumble I was pointed at this commit which is not in master yet but on a separate branch
https://github.com/pcgod/mumble-wip/commit/393d013ac86a3b27cdff2b1a69501995314f6da4
I wonder if we should apply it or wait to see if a new minor release appears before 11.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.