Bug #7459 Compile failure in Innobase: SHM_HUGETLB not portable
Submitted: 21 Dec 2004 16:58 Modified: 5 Apr 2005 21:13
Reporter: Joerg Bruehe Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.0.3-pre OS:various Linux
Assigned to: Alexey Kopytov CPU Architecture:Any

[21 Dec 2004 16:58] Joerg Bruehe
Description:
Compilation fails with this message (or its equivalent in other compilers).
All affected machines run Linux 2.4, the CPUs differ.

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I./../include -I./../../include -I../../include    -g -O -DDBUG_ON -DSAFE_MUTEX -g -O -DDBUG_ON -DSAFE_MUTEX   -DUNIV_LINUX -c os0proc.c
os0proc.c: In function `os_mem_alloc_large':
os0proc.c:548: `SHM_HUGETLB' undeclared (first use in this function)
os0proc.c:548: (Each undeclared identifier is reported only once
os0proc.c:548: for each function it appears in.)

How to repeat:
Try to build current 5.0.3-pre.
[21 Dec 2004 17:22] Heikki Tuuri
Hi!

This is Alexey Kopytov's code, and he has a patch pending.

I cannot assign this to Alexey K., because his name is not in the list of bugs.mysql.com.

Regards,

Heikki
[21 Dec 2004 18:31] Alexey Kopytov
The bug occurs on some old Linux distributions that have no HugeTLB support. 
Patch pushed.