[MDEV-21646] Failure to compile my_addr_resolve.c with binutils-2.34 Created: 2020-02-03 Updated: 2020-12-15 Resolved: 2020-02-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Compiling |
| Affects Version/s: | 10.2.29, 10.3.20, 10.4.10 |
| Fix Version/s: | 5.5.68, 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.2 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Brian Evans | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Gentoo |
||
| Attachments: |
|
| Description |
|
Binutils 2.34 has changed its API so 3 of the calls in my_sys/my_addr_resolve.c cause a failed build. As seen in Gentoo bug 707852
Proposed patch is attached, but feel free to modify to your standards or other optimization |
| Comments |
| Comment by Oleksandr Byelkin [ 2020-02-12 ] | |||||||||||||||||||||||||||||||
|
Could you tell us if this patch helps (it is against 5.5 but should be other version applicable)
| |||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-02-12 ] | |||||||||||||||||||||||||||||||
|
grknight Thank you a lot for the report and for the patch, could you check if above patch helps? | |||||||||||||||||||||||||||||||
| Comment by Brian Evans [ 2020-02-12 ] | |||||||||||||||||||||||||||||||
|
sanja I believe a define for bfd_get_section_size -> bfd_section_size is also required | |||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-02-12 ] | |||||||||||||||||||||||||||||||
|
grknight, Thank you! You are right, here is the new version:
| |||||||||||||||||||||||||||||||
| Comment by Brian Evans [ 2020-02-12 ] | |||||||||||||||||||||||||||||||
|
Latest patch compiles fine with current releases on binutils 2.34 |