Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672634

Summary: media-libs/allegro-5.2.4.0 : /.../xglx_config.c:495:42: error: glXCreateContextAttribsARB undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal CC: scott, yamadharma
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-libs:allegro-5.2.4.0:20181206-082233.log
temp.tbz2
adjusted for 4.4.2

Description Toralf Förster gentoo-dev 2018-12-06 16:54:45 UTC
/var/tmp/portage/media-libs/allegro-5.2.4.0/work/allegro-5.2.4.0/src/x/xglx_config.c: In function ‘create_context_new’:
/var/tmp/portage/media-libs/allegro-5.2.4.0/work/allegro-5.2.4.0/src/x/xglx_config.c:495:42: error: ‘glXCreateContextAttribsARB’ undeclared (first use in this function); did you mean ‘_xglx_glXCreateContextAttribsARB’?
       _xglx_glXCreateContextAttribsARB = glXCreateContextAttribsARB;
                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                          _xglx_glXCreateContextAttribsARB

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome-systemd_libressl_20181204-170128

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby24 (with Rubygems) *
  [3]   ruby25 (with Rubygems)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.9.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-libs/allegro
[ebuild  N    ] media-libs/allegro-5.2.4.0  USE="X alsa flac gtk jpeg opengl png pulseaudio truetype vorbis -dumb -openal -opus -oss -physfs -test -webp -xinerama" ABI_X86="(64) -32 (-x32)"
Comment 1 Toralf Förster gentoo-dev 2018-12-06 16:54:47 UTC
Created attachment 557168 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-12-06 16:54:50 UTC
Created attachment 557170 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-12-06 16:54:53 UTC
Created attachment 557172 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-12-06 16:54:55 UTC
Created attachment 557174 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-12-06 16:54:58 UTC
Created attachment 557176 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-12-06 16:55:01 UTC
Created attachment 557178 [details]
media-libs:allegro-5.2.4.0:20181206-082233.log
Comment 7 Toralf Förster gentoo-dev 2018-12-06 16:55:03 UTC
Created attachment 557180 [details]
temp.tbz2
Comment 8 Cyp 2019-03-03 14:35:55 UTC
I get the same error. Trying 5.2.5, it works (compiles, at least).

git bisect blames this commit for fixing it:

https://github.com/liballeg/allegro5/commit/a40d30e21802ecf5c9382cf34af9b01bd3781e47.patch
Comment 9 Cyp 2019-03-04 06:40:46 UTC
Could emerge and seems to work, after saving the patch to /etc/portage/patches/media-libs/allegro-5.2.4.0/
Comment 10 Cyp 2019-03-08 09:17:39 UTC
Created attachment 568166 [details, diff]
adjusted for 4.4.2

The patch almost applies against 4.4.2-r2, except that the paths are different.

4.4.2:
/addons/allegrogl/include/alleggl.h
/addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h

5.0.11 and 5.2.4.0:
/include/allegro5/allegro_opengl.h
/include/allegro5/opengl/GLext/glx_ext_defs.h
Comment 11 Larry the Git Cow gentoo-dev 2019-05-24 10:09:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81cf1a0cfd9db6aee35b2a6a3d2e973d1d87dda2

commit 81cf1a0cfd9db6aee35b2a6a3d2e973d1d87dda2
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-05-24 07:46:40 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-05-24 10:08:00 +0000

    media-libs/allegro: bump version to 5.2.5.0
    
    Closes: https://bugs.gentoo.org/666996
    Closes: https://bugs.gentoo.org/672634
    Closes: https://bugs.gentoo.org/678002
    Closes: https://bugs.gentoo.org/684808
    Package-Manager: Portage-2.3.66, Repoman-2.3.12
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 media-libs/allegro/Manifest               |  1 +
 media-libs/allegro/allegro-5.2.5.0.ebuild | 88 +++++++++++++++++++++++++++++++
 2 files changed, 89 insertions(+)