Commit 3c6ca8c
Replace strtoull with manual decimal parse to drop GLIBC_2.38 requirement
std::strtoull binds __isoc23_strtoull@GLIBC_2.38 when the linux prebuild
is built on Ubuntu 24.04, so the 1.3.0 prebuild fails to dlopen on any
glibc < 2.38 host (Ubuntu 22.04, Debian 12, all bookworm-based node
Docker images). The hand-rolled parser keeps the same accepted grammar
(canonical decimal only, overflow rejected) and brings the requirement
back to GLIBC_2.33, same as 1.2.2. Verified by building and running the
test suite in a glibc-2.36 container and checking readelf -V output.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 4fa14e3 commit 3c6ca8c
1 file changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
| |||
0 commit comments