Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 626398 - games-strategy/0ad-0.0.22_alpha : snd.cpp:(.text+<snip>): undefined reference to alcIsExtensionPresent
Summary: games-strategy/0ad-0.0.22_alpha : snd.cpp:(.text+<snip>): undefined reference...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-10-09
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2017-07-27 22:01 UTC by Toralf Förster
Modified: 2021-02-19 20:53 UTC (History)
6 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.22 KB, text/plain)
2017-07-27 22:01 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,200.86 KB, text/plain)
2017-07-27 22:01 UTC, Toralf Förster
Details
environment (environment,137.66 KB, text/plain)
2017-07-27 22:01 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,27.11 KB, application/x-bzip)
2017-07-27 22:01 UTC, Toralf Förster
Details
games-strategy:0ad-0.0.22_alpha:20170727-193243.log.bz2 (games-strategy:0ad-0.0.22_alpha:20170727-193243.log.bz2,25.16 KB, application/x-bzip)
2017-07-27 22:01 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.09 KB, application/x-bzip)
2017-07-27 22:01 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,56.10 KB, application/x-bzip)
2017-07-27 22:01 UTC, Toralf Förster
Details
games-strategy/0ad gzipped build log (0ad-0.0.24_alpha_pre20210116040036-r1:20210219-192958.log.gz,278.03 KB, application/gzip)
2021-02-19 20:50 UTC, Fab
Details
games-strategy/0ad-data build log (0ad-data-0.0.24_alpha_pre20210116040036:20210219-203300.log,2.38 KB, text/plain)
2021-02-19 20:52 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-27 22:01:08 UTC
../../../binaries/system/liblowlevel.a(snd.o): In function `snd_detect()':
snd.cpp:(.text+0xe): undefined reference to `alcIsExtensionPresent'
snd.cpp:(.text+0xd3): undefined reference to `alGetString'
snd.cpp:(.text+0x110): undefined reference to `alcIsExtensionPresent'
snd.cpp:(.text+0x120): undefined reference to `alcGetString'

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-gnome_20170723-192245

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

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

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.5.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-07-27 22:01:12 UTC
Created attachment 486990 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-27 22:01:15 UTC
Created attachment 486992 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-27 22:01:18 UTC
Created attachment 486994 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-27 22:01:21 UTC
Created attachment 486996 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-27 22:01:25 UTC
Created attachment 486998 [details]
games-strategy:0ad-0.0.22_alpha:20170727-193243.log.bz2
Comment 6 Toralf Förster gentoo-dev 2017-07-27 22:01:28 UTC
Created attachment 487000 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2017-07-27 22:01:31 UTC
Created attachment 487002 [details]
temp.tbz2
Comment 8 tt_1 2017-07-30 18:16:22 UTC
I'm hitting this too. Looks like trouble with linking and openal? I am using stable Keywords mostly, therefore have openal-1.15.1 installed but the same error.
Comment 9 tt_1 2017-07-30 18:46:08 UTC
Okay, so this can be solved for me by building with USE="sound" 

If you still run into this, please post the output of emerge -pv 0ad since I have no idea if you build with or without the sound useflag.
Comment 10 Toralf Förster gentoo-dev 2017-07-30 18:51:17 UTC
(In reply to tt_1 from comment #9)
woops, which info is missing in the attached files (would enhance the tinderbox script then by the missing feature)
Comment 11 tt_1 2017-07-30 18:56:53 UTC
Well, you could adapt it to paste the output of emerge -pv *package* in plain text into the comment boxes, at least I cannot find any hard evidence about your actuall build setup. My guess is that you have build it without the sound useflag, because I cannot find +sound in make.conf or package.use, but this isn't a proof that you had been using it (or not) in my opinion. 

So, what are your build flags?
Comment 12 Toralf Förster gentoo-dev 2017-07-30 19:06:56 UTC
(In reply to tt_1 from comment #11)
tinderbox@mr-fox ~ $ scw 13.0-desktop-gnome_20170723-192245
mr-fox / # emerge -pv games-strategy/0ad

These are the packages that would be merged, in reverse order:

Calculating dependencies  ..... done!
[ebuild  N    #] games-strategy/0ad-0.0.22_alpha::gentoo  USE="lobby -editor -nvtt -pch -sound {-test}" 0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB





FWIW the attached "emerge info" isn't what you needed, right ?
Comment 13 tt_1 2017-07-30 19:14:33 UTC
Yeah, so just alter your script in a way that this information is included into the comments, in plain text. I don't know if it is one of the archives the script seems to generate, but I certainly can't find it fast enough. 

For me it works with +sound, test again with +sound and if this works please ping the maintainer, if there is one, or games@gentoo.org
Comment 14 augustin 2017-08-05 03:29:41 UTC
See my update to:
https://bugs.gentoo.org/show_bug.cgi?id=626470 
I have 0ad +sound. 
Yesterday 0ad-0.0.22_alpha wouldn't compile. Today, it does. Apparently, something got fixed.
Comment 15 Mike Lothian 2017-08-08 09:40:38 UTC
Adding -lopenal to pyrogenesis.make fixes this for me
Comment 16 Tolga Dalman 2017-08-13 13:28:30 UTC
Same problem here. Also duplicated by #626470.
Comment 17 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-08-22 07:15:48 UTC
commit 63ef41c718a62fa23050d4f8abc9086b0e02feea (HEAD -> master, origin/master, origin/HEAD)             
Author: Lars Wendler <polynomial-c@gentoo.org>      
Date:   Tue Aug 22 09:13:55 2017                    

    games-strategy/0ad: Removed "sound" USE flag.   
                                                    
    A game without sound does not really provide optimal game experience.                                
                                                    
    Package-Manager: Portage-2.3.8, Repoman-2.3.3
Comment 18 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-08-22 07:22:30 UTC
Reopening... this still isn't fixed...
Comment 19 Fab 2017-08-24 18:17:23 UTC
(In reply to Mike Lothian from comment #15)
> Adding -lopenal to pyrogenesis.make fixes this for me

Can you please elaborate ?
I do not know the build system used by 0ad.
After doing :
>$ ebuild $(equery w 0ad) prepare
I do not find that file. Is it a generated file ?
If the fix is so easy, is there an upstream bug opened ?
Comment 20 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-12 20:21:14 UTC
Please retry with 0.0.24_alpha_pre20210116040036-r1.
Comment 21 Fab 2021-02-19 20:47:42 UTC
(In reply to Sam James from comment #20)
> Please retry with 0.0.24_alpha_pre20210116040036-r1.

Trying to run this on stable system :
> # emerge -pv games-strategy/0ad
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N     ] net-libs/enet-1.3.17:1.3/7::gentoo  USE="-static-libs" 687 KiB
> [ebuild  N    ~] net-libs/gloox-1.0.24:0/18::gentoo  USE="gnutls ssl zlib -debug -idn (-libressl) -static-libs -test" 711 KiB
> [ebuild  N     ] media-libs/ilmbase-2.5.2:0/25::gentoo  USE="-large-stack -static-libs -test" ABI_X86="32 (64) (-x32)" 26 881 KiB
> [ebuild  N    ~] media-gfx/nvidia-texture-tools-2.1.2::gentoo  USE="openmp" CPU_FLAGS_X86="sse2" 44 115 KiB
> [ebuild  N    #] games-strategy/0ad-0.0.24_alpha_pre20210116040036-r1::gentoo  USE="lobby (nvtt) -editor -pch -test" 2 502 340 KiB
> [ebuild  N    #] games-strategy/0ad-data-0.0.24_alpha_pre20210116040036::gentoo  0 KiB
games-strategy/0ad builds and installs fine :
> $ genlop -t 0ad
> * games-strategy/0ad
> 
>     Fri Feb 19 21:33:00 2021 >>> games-strategy/0ad-0.0.24_alpha_pre20210116040036-r1
>       merge time: 1 hour, 3 minutes and 2 seconds.
But games-strategy/0ad-data is failing with :
>  * 0ad -archivebuild=binaries/data/mods/mod -archivebuild-output=archives/mod/mod.zip
> 0ad: error while loading shared libraries: libmozjs78-ps-release.so: cannot open shared object file: No such file or directory
Will attach both build logs.
Comment 22 Fab 2021-02-19 20:50:44 UTC
Created attachment 687672 [details]
games-strategy/0ad gzipped build log
Comment 23 Fab 2021-02-19 20:52:40 UTC
Created attachment 687675 [details]
games-strategy/0ad-data build log
Comment 24 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-19 20:53:34 UTC
Thanks, this looks like bug 771147 now