[CDRIVER-4654] aligned_alloc is undefined on Android Created: 30/May/23 Updated: 28/Oct/23 Resolved: 05/Jun/23 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.23.4 |
| Fix Version/s: | 1.24.0, 1.23.5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jean-Marc Le Roux | Assignee: | Ezra Chung |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Building libbson for Android fails because `aligned_alloc()` is not defined in [`stdlib.h`](https://android.googlesource.com/platform/development/+/13af1d8/ndk/platforms/android-L/include/stdlib.h):
Corresponding Android NDK issue: https://github.com/android/ndk/issues/1339
Recommended solution: https://github.com/android/ndk/issues/1339#issuecomment-676821211
The test in `bson-memory.c` will most likely have to be changed to something like this:
|
| Comments |
| Comment by Githook User [ 06/Jun/23 ] |
|
Author: {'name': 'Jean-Marc Le Roux', 'email': 'jeanmarc.leroux@aerys.in', 'username': 'JMLX42'}Message:
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com> --------- Co-authored-by: Jean-Marc Le Roux <jmlx@Enterprise-C> |
| Comment by Githook User [ 05/Jun/23 ] |
|
Author: {'name': 'Jean-Marc Le Roux', 'email': 'jeanmarc.leroux@aerys.in', 'username': 'JMLX42'}Message:
Co-authored-by: Ezra Chung <88335979+eramongodb@users.noreply.github.com> --------- Co-authored-by: Jean-Marc Le Roux <jmlx@Enterprise-C> |
| Comment by Jean-Marc Le Roux [ 03/Jun/23 ] |
|
PR with a working fix: https://github.com/mongodb/mongo-c-driver/pull/1286 |
| Comment by Kevin Albertson [ 01/Jun/23 ] |
|
The linked commit "Message: |
| Comment by Githook User [ 01/Jun/23 ] |
|
Author: {'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}Message:
From specifications commit: 106caf3cfd1a92712bbbbc43626f343b619059ab
|
| Comment by PM Bot [ 30/May/23 ] |
|
Hi jeanmarc.leroux@gmail.com, thank you for reporting this issue! The team will look into it and get back to you soon. |