Opened 13 years ago

Closed 13 years ago

#1428 closed bug (fixed)

Build breaks on 32-bit FreeBSD

Reported by: anevilyak Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: x86


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 (1)

comment:1 by bonefish, 13 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.