Bug #15841 Change in sql_map.cc and mmap breaks on HP-UX
Submitted: 19 Dec 2005 0:53 Modified: 6 Jan 2006 5:10
Reporter: Kent Boortz Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S1 (Critical)
Version:5.1.4-pre OS:HP/UX (HP-UX 11.00 11.11)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[19 Dec 2005 0:53] Kent Boortz
Description:
A change in "sql_map.cc" with comment "Changed HAVE_MMAP
to HAVE_SYS_MMAN_H and replaced calls to mmap and munmap
with my_mmap and my_munmap" broke compile on HP-UX 11.00
and HP-UX 11.11

aCC -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/data\"" -DSHAREDIR="\"/usr/\local/mysql/share/mysql\"" -DLIBDIR="\"/usr/local/mysql/lib/mysql\"" -DHAVE_CONFIG_H -I. -I. -I.. -I../zlib -I../include\ -I../include -I../regex -I.    -DDEFAULT_THREAD_STACK=262144  -DDBUG_OFF +O2 +O2 +DAportable -Aa   -DHPUX11  -DSNPRINTF\_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPP\ERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -c -o sql_map.o sql_map.cc..

Error 328: "sql_map.cc", line 45 # Function 'mmap64' has not been defined yet; cannot call.
          if (!(map=(byte*) my_mmap(0,(size=(ulong) stat_buf.st_size),PROT_READ,

How to repeat:
Build 5.1.4-pre on HP-UX
[19 Dec 2005 12:26] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/248
[19 Dec 2005 16:01] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/257
[26 Dec 2005 8:11] Ramil Kalimullin
fixed in 5.1.4
[6 Jan 2006 5:10] Paul DuBois
No changelog entry needed.