Skip to content

Commit

Permalink
Fixed glibc compatibility by hardcoding lower version for log2
Browse files Browse the repository at this point in the history
fixes #1690

- the minimum glibc version was inadvertently bumped in the latest
  release because `log2` was linked to a higher version
- this adds the downgrade to the gcc preinclude file to resolve this
- in an upcoming commit, we will add a test to prevent these issues from
  occurring again
  • Loading branch information
daniellockyer committed Mar 14, 2023
1 parent 776fc55 commit 1a206df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gcc-preinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
__asm__(".symver exp,exp@GLIBC_2.2.5");
__asm__(".symver log,log@GLIBC_2.2.5");
__asm__(".symver log2,log2@GLIBC_2.2.5");
__asm__(".symver pow,pow@GLIBC_2.2.5");
__asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
#endif
Expand All @@ -20,6 +21,7 @@ __asm__(".symver fcntl64,fcntl@GLIBC_2.2.5");
__asm__(".symver memcpy,memcpy@GLIBC_2.17");
__asm__(".symver exp,exp@GLIBC_2.17");
__asm__(".symver log,log@GLIBC_2.17");
__asm__(".symver log2,log2@GLIBC_2.17");
__asm__(".symver pow,pow@GLIBC_2.17");
__asm__(".symver fcntl64,fcntl@GLIBC_2.17");
#endif
Expand Down

0 comments on commit 1a206df

Please sign in to comment.