Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when building on Alpine Linux 3.19 (musl) x86_64 #540

Closed
Artem-coderh opened this issue Mar 23, 2024 · 4 comments
Closed

Problem when building on Alpine Linux 3.19 (musl) x86_64 #540

Artem-coderh opened this issue Mar 23, 2024 · 4 comments

Comments

@Artem-coderh
Copy link

In file included from /root/cs16/csdll/3rdparty/yapb/ext/crlib/crlib/crlib.h:20,
                 from /root/cs16/csdll/3rdparty/yapb/inc/yapb.h:10,
                 from /root/cs16/csdll/3rdparty/yapb/src/analyze.cpp:8:
/root/cs16/csdll/3rdparty/yapb/ext/crlib/crlib/library.h: In member function 'bool cr::SharedLibrary::load(cr::StringRef, bool)':
/root/cs16/csdll/3rdparty/yapb/ext/crlib/crlib/library.h:65:20: error: 'RTLD_DEEPBIND' was not declared in this scope
   65 |       loadFlags |= RTLD_DEEPBIND;
      |                    ^~~~~~~~~~~~~
gmake[2]: *** [3rdparty/yapb/CMakeFiles/yapb.dir/build.make:76: 3rdparty/yapb/CMakeFiles/yapb.dir/src/analyze.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:194: 3rdparty/yapb/CMakeFiles/yapb.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
@jeefo
Copy link
Collaborator

jeefo commented Mar 23, 2024

Should be fixed in latest rev. However not tested.

@Artem-coderh
Copy link
Author

Here is the following error

/usr/lib/gcc/armv6-alpine-linux-musleabihf/13.2.1/../../../../armv6-alpine-linux-musleabihf/bin/ld: yapb.so: no symbol version section for versioned symbol `powf@GLIBC_2.4'
collect2: error: ld returned 1 exit status
gmake[2]: *** [3rdparty/yapb/CMakeFiles/yapb.dir/build.make:433: 3rdparty/yapb/yapb.so] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:222: 3rdparty/yapb/CMakeFiles/yapb.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2

jeefo added a commit that referenced this issue Mar 25, 2024
build: use symbol versioning only with glibc (ref #540)
@jeefo
Copy link
Collaborator

jeefo commented Mar 25, 2024

and now ? :)

@Artem-coderh
Copy link
Author

I was able to compile. All that remains is to check whether it will start

@jeefo jeefo closed this as completed May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants