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

build test failed on windows wsl ubuntu 22.04 #66

Closed
cagev opened this issue Sep 14, 2022 · 2 comments
Closed

build test failed on windows wsl ubuntu 22.04 #66

cagev opened this issue Sep 14, 2022 · 2 comments
Labels
Compatibility Compatibility Done Done

Comments

@cagev
Copy link

cagev commented Sep 14, 2022

build env:
ubuntu 22.04 in windows wsl
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0

/home/arthur/work/PhotonLibOS/fs/test/test.cpp: In function ‘void malloc_hook()’:
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:693:5: error: ‘__malloc_hook’ was not declared in this scope; did you mean ‘malloc_hook’?
693 | __malloc_hook = my_malloc;
| ^~~~~~~~~~~~~
| malloc_hook
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:694:5: error: ‘__free_hook’ was not declared in this scope
694 | __free_hook = my_free;
| ^~~~~~~~~~~
/home/arthur/work/PhotonLibOS/fs/test/test.cpp: In function ‘void malloc_unhook()’:
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:698:5: error: ‘__malloc_hook’ was not declared in this scope; did you mean ‘malloc_hook’?
698 | __malloc_hook = old_malloc;
| ^~~~~~~~~~~~~
| malloc_hook
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:699:5: error: ‘__free_hook’ was not declared in this scope
699 | __free_hook = old_free;
| ^~~~~~~~~~~
/home/arthur/work/PhotonLibOS/fs/test/test.cpp: In function ‘void init_hook()’:
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:703:18: error: ‘__malloc_hook’ was not declared in this scope; did you mean ‘malloc_hook’?
703 | old_malloc = __malloc_hook;
| ^~~~~~~~~~~~~
| malloc_hook
/home/arthur/work/PhotonLibOS/fs/test/test.cpp:704:16: error: ‘__free_hook’ was not declared in this scope
704 | old_free = __free_hook;
| ^~~~~~~~~~~
[ 80%] Linking CXX executable ../../../output/client_perf

@beef9999 beef9999 added the Compatibility Compatibility label Sep 15, 2022
@beef9999
Copy link
Collaborator

It was because __malloc_hook was removed from glibc 2.34, and Ubuntu 22 is using glibc 2.35.

We will upload a fix for this.

@beef9999 beef9999 added the Done Done label Sep 15, 2022
@beef9999
Copy link
Collaborator

Fixed

@cagev cagev closed this as completed Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility Compatibility Done Done
Projects
None yet
Development

No branches or pull requests

2 participants