Bug #2060 Fixes for HP-UX 10.20 compile
Submitted: 9 Dec 2003 10:58 Modified: 11 Oct 2005 8:36
Reporter: Zak Greant Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:? OS:HP/UX (HP-UX)
Assigned to: CPU Architecture:Any

[9 Dec 2003 10:58] Zak Greant
Description:
From the comments system:

When tried to compile the mysql/client part on
HPUX-10.20 w. gcc 2.95 I ran into problems. Lots
of errors including <stdio.h> (and some more
standard include files) about 'fpos_t' and 'int64'
stuff.

How to repeat:
Compile on HPUX-10.20

Suggested fix:
Used the setup they mention in here: didn't make a
difference. Suspected it had to do with large-file
support.

Did a ./configure, with one of the options being
'--disable-large-file'. Again no success.

Went into 'include/my_config.h'. It appeared that
the typical #define's for large-file support were
still in there.

Did a #undef on the following variables:
_FILE_OFFSET_BITS
_LARGEFILE_SOURCE
_LARGE_FILES

and *she-bang*! Compiles and runs like a charm!
[9 Dec 2003 16:46] Boyd Gerber
Verified on a customer machine.
[4 Oct 2005 14:02] Mark Matthews
Please reverify that this compilation error still exists.
[10 Oct 2005 14:36] Valeriy Kravchuk
I'll try to build new 4.1.x and 5.0.x on HPUX B.11.00 (on our hp3750, as we have no 10.20 among our development machines).