Skip to content

Cmake fails at linking altonegen, possibly libopenal version conflict ? #373

@1ykos

Description

@1ykos

I just tried to compile REGoth on opensuse tumbleweed and it failed at linking altonegen. I suspect there is a version conflict due to my version of libopenal (1.20), which is probably very recent.

Error Message: `multiple definition of `FuMa2N3DScale' libopenal.a`
Scanning dependencies of target altonegen
[ 97%] Building C object lib/openal-soft/CMakeFiles/altonegen.dir/examples/altonegen.c.o
[ 97%] Building C object lib/openal-soft/CMakeFiles/altonegen.dir/examples/common/alhelpers.c.o
[ 97%] Linking C executable ../../bin/altonegen
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(ALu.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: multiple definition of `FuMa2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(ALu.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: multiple definition of `SN3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(ALu.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: multiple definition of `N3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(bformatdec.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: multiple definition of `SN3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(bformatdec.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: multiple definition of `N3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(bformatdec.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: multiple definition of `FuMa2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(panning.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: multiple definition of `FuMa2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:29: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(panning.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: multiple definition of `SN3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:28: first defined here
/usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: ../libopenal.a(panning.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: multiple definition of `N3D2N3DScale'; ../libopenal.a(ALc.c.o):/home/wolfi/src/REGoth/lib/openal-soft/Alc/bformatdec.h:27: first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [lib/openal-soft/CMakeFiles/altonegen.dir/build.make:121: bin/altonegen] Error 1
make[1]: *** [CMakeFiles/Makefile2:1432: lib/openal-soft/CMakeFiles/altonegen.dir/all] Error 2
make: *** [Makefile:150: all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions