Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449436 - app-emulation/virtualbox-4.1.22-r1 - Checking for Mesa / GLU: Mesa not found at -L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -lGL -I/usr/local/include or Mesa headers not found
Summary: app-emulation/virtualbox-4.1.22-r1 - Checking for Mesa / GLU: Mesa not fou...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
: 751049 761843 (view as bug list)
Depends on:
Reported: 2012-12-31 11:43 UTC by Hans
Modified: 2022-01-29 18:38 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2012-12-31 11:43:22 UTC
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-emulation/virtualbox-4.1.22-r1/work/VirtualBox-4.1.22 ...
Checking for environment: Determined build machine: linux.amd64, target machine: linux.amd64, OK.
Checking for kBuild: found, OK.
Checking for gcc: found version 4.5.4, OK.
Checking for as86: found version 0.16.17, OK.
Checking for bcc: found version 0.16.18, OK.
Checking for iasl: found version 20090123, OK.
Checking for xslt: found, OK.
Checking for pthread: found, OK.
Checking for libxml2: found version 2.8.0, OK.
Checking for libIDL: found version 0.8.14, OK.
Checking for ssl: found version OpenSSL 1.0.0j 10 May 2012, OK.
Checking for libcurl: found version 7.26.0, OK.
Checking for zlib: found version 1.2.7, OK.
Checking for libpng: found version 1.5.13, OK.
Checking for SDL: found version 1.2.15, OK.
Checking for X libraries: Checking for Xcursor: found, OK.
Checking for Xinerama: found, OK.
Checking for Xrandr: found, OK.
Checking for Xmu: found, OK.
Checking for Mesa / GLU: 
  Mesa not found at -L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -lGL -I/usr/local/include or Mesa headers not found
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-12-31 16:29:54 UTC
Please post your `emerge --info' output in a comment.
Comment 2 Hans 2012-12-31 16:33:12 UTC
Portage (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.2-gentoo x86_64)
System uname: Linux-3.5.2-gentoo-x86_64-Intel-R-_Core-TM-_i3-3110M_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 31 Dec 2012 11:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo science gentoo-haskell
CFLAGS="-march=native -pipe -O2"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -pipe -O2"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/haskell"
USE="X acl acpi alsa amd64 apm bash-completion berkdb bzip2 cli cracklib crypt cups cxx dbus dri dvi emacs extra ffmpeg flac fontconfig fortran gdbm gif git glpk gpm hdf5 iconv icu ipv6 jpeg jpeg2k json lapack mad mmx modules mp3 mudflap multilib ncurses nls nptl numpy ogg openmp pam pcre png pppd preview-latex qt3support readline session sse sse2 ssl subversion svg szip tcpd theora tiff truetype udev umfpack unicode usb vorbis x264 xcb xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 3 jospezial 2015-08-18 12:51:22 UTC
Oldest version of app-emulation/virtualbox in the tree is 4.3.28 (stable).

If there was a bug in virtualbox-4.1.22-r1 or mesa then I think it has been fixed then.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-09-04 07:18:49 UTC
Long purged from portage
Comment 5 REdOG 2020-05-07 12:20:09 UTC
I have this same error for version 5.2.40..
Comment 6 Reversed suomynonA 2020-10-27 10:25:06 UTC
Same error for app-emulation/virtualbox-6.0.24.

> Checking for Mesa / GLU: 
>   Mesa not found at -L/usr/X11R6/lib -L/usr/X11R6/lib64 -L/usr/local/lib -lXext -lX11 -lGL -I/usr/local/include or Mesa headers not found

As this seems to be an unresolved configuration problem, it is neither obsolete nor has it been resolved in 2015.

The header <GL/glu.h> cannot be found and should be a (transitive) dependency of virtualbox. Should media-libs/glu be a direct dependency of virtualbox? Or should the dependency media-libs/libsdl include the USE of opengl?
Comment 7 Victor Orozco 2020-12-02 18:41:41 UTC
I had today the exact same issue. 

As commented by #6 it was solved by installing media-libs/glu
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-29 18:14:39 UTC
*** Bug 751049 has been marked as a duplicate of this bug. ***
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-29 18:16:05 UTC
*** Bug 761843 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2022-01-29 18:38:19 UTC
The bug has been closed via the following commit(s):

commit b051c650279e3b4ae9d834ee51e8969260afc7ab
Author:     Sam James <>
AuthorDate: 2022-01-29 18:37:27 +0000
Commit:     Sam James <>
CommitDate: 2022-01-29 18:38:02 +0000

    app-emulation/virtualbox: [QA] add missing virtual/glu dependency
    Notably a few of our patches even add an #include on the GLU headers.
    Signed-off-by: Sam James <>

 .../{virtualbox-6.1.24-r1.ebuild => virtualbox-6.1.24-r2.ebuild}     | 5 ++++-
 .../{virtualbox-6.1.28-r1.ebuild => virtualbox-6.1.28-r2.ebuild}     | 5 ++++-
 .../{virtualbox-6.1.30.ebuild => virtualbox-6.1.30-r1.ebuild}        | 5 ++++-
 .../{virtualbox-6.1.32.ebuild => virtualbox-6.1.32-r1.ebuild}        | 5 ++++-
 4 files changed, 16 insertions(+), 4 deletions(-)