Ticket #1428 (closed bug: fixed)

Opened 15 months ago

Last modified 15 months ago

Build breaks on 32-bit FreeBSD

Reported by: anevilyak Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1 development
Cc: Blocked By:
Platform: x86 Blocking:

Description

On FreeBSD/i386, the build gets 99% of the way, but fails on the bash build step. Specifically, MkSigNamesExt1 fails, for the following reason:

In support/mksignames.c, the size of the signals array is defined by looking up the value of NSIG. Given the arithmetic, this yields an array of 64 entries. However, it also checks for SIGRTMIN AND SIGRTMAX. On FreeBSD these resolve to 65 and 126. As a consequence, it tries to also populate those entries, but these are out of the array's bounds and so it crashes. This can be fixed by using a similar workaround to what is done for AIX, where RTMIN and RTMAX are undef'd.

Change History

Changed 15 months ago by bonefish

  • status changed from new to closed
  • resolution set to fixed

I avoided touching the mksignames source. It wasn't correct to use it for cross-compilation anyway. The problem should be gone in r22092.

Note: See TracTickets for help on using tickets.