Bug #29298 Failure to compile ReadNodesConf.cpp
Submitted: 22 Jun 2007 9:14 Modified: 27 Jun 2007 19:05
Reporter: Hamish Marson Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.0.41 OS:IBM AIX (v5.3rml05)
Assigned to: CPU Architecture:Any

[22 Jun 2007 9:14] Hamish Marson
Description:
mysql 5.0.41 fails to compile on AIX 5.3rml05. Using VAC++ 6.

Making all in signaldata
        source='ReadNodesConf.cpp' object='ReadNodesConf.lo' libtool=yes  DEPDIR=.deps depmode=aix /bin/sh ../../../../../depcomp  /bin/sh ../../../../../libtool --preserve-dup-deps --tag=CXX --mode=compile xlC_r -DHAVE_CONFIG_H -DNDEBUG    -I. -I. -I../../../../..  -I. -I../../../../../include  -I../../../../../ndb/include -I../../../../../include  -I../../../../../mysys -I../../../../../ndb/include  -I../../../../../ndb/include/kernel  -I../../../../../ndb/include/transporter  -I../../../../../ndb/include/debugger  -I../../../../../ndb/include/mgmapi  -I../../../../../ndb/include/mgmcommon  -I../../../../../ndb/include/ndbapi  -I../../../../../ndb/include/util  -I../../../../../ndb/include/portlib  -I../../../../../ndb/include/logger     -DDBUG_OFF -ma -O2 -qstrict -qoptimize=2 -qmaxmem=8192     -c -o ReadNodesConf.lo ReadNodesConf.cpp
 xlC_r -DHAVE_CONFIG_H -DNDEBUG -I. -I. -I../../../../.. -I. -I../../../../../include -I../../../../../ndb/include -I../../../../../include -I../../../../../mysys -I../../../../../ndb/include -I../../../../../ndb/include/kernel -I../../../../../ndb/include/transporter -I../../../../../ndb/include/debugger -I../../../../../ndb/include/mgmapi -I../../../../../ndb/include/mgmcommon -I../../../../../ndb/include/ndbapi -I../../../../../ndb/include/util -I../../../../../ndb/include/portlib -I../../../../../ndb/include/logger -DDBUG_OFF -ma -O2 -qstrict -qoptimize=2 -qmaxmem=8192 -c -M ReadNodesConf.cpp -o ReadNodesConf.o
"/usr/include/unistd.h", line 171.17: 1540-1172 (S) More than one function "lseek64" has non-C++ linkage.
"/usr/include/unistd.h", line 169.14: 1540-0424 (I) "lseek64" is declared on line 169 of "/usr/include/unistd.h".
"/usr/include/sys/lockf.h", line 64.20: 1540-1172 (S) More than one function "lockf64" has non-C++ linkage.
"/usr/include/sys/lockf.h", line 62.20: 1540-0424 (I) "lockf64" is declared on line 62 of "/usr/include/sys/lockf.h".
"/usr/include/unistd.h", line 800.33: 1540-1172 (S) More than one function "ftruncate64" has non-C++ linkage.
"/usr/include/unistd.h", line 798.33: 1540-0424 (I) "ftruncate64" is declared on line 798 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 836.33: 1540-1172 (S) More than one function "truncate64" has non-C++ linkage.
"/usr/include/unistd.h", line 834.33: 1540-0424 (I) "truncate64" is declared on line 834 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 853.33: 1540-1172 (S) More than one function "pread64" has non-C++ linkage.
"/usr/include/unistd.h", line 850.33: 1540-0424 (I) "pread64" is declared on line 850 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 854.33: 1540-1172 (S) More than one function "pwrite64" has non-C++ linkage.
"/usr/include/unistd.h", line 851.33: 1540-0424 (I) "pwrite64" is declared on line 851 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 921.25: 1540-1172 (S) More than one function "fclear64" has non-C++ linkage.
"/usr/include/unistd.h", line 918.25: 1540-0424 (I) "fclear64" is declared on line 918 of "/usr/include/unistd.h".
"/usr/include/unistd.h", line 922.25: 1540-1172 (S) More than one function "fsync_range64" has non-C++ linkage.
"/usr/include/unistd.h", line 919.25: 1540-0424 (I) "fsync_range64" is declared on line 919 of "/usr/include/unistd.h".
"/usr/include/stdio.h", line 495.12: 1540-1172 (S) More than one function "fgetpos64" has non-C++ linkage.
"/usr/include/stdio.h", line 296.17: 1540-0424 (I) "fgetpos64" is declared on line 296 of "/usr/include/stdio.h".
"/usr/include/stdio.h", line 498.12: 1540-1172 (S) More than one function "fseeko64" has non-C++ linkage.
"/usr/include/stdio.h", line 435.17: 1540-0424 (I) "fseeko64" is declared on line 435 of "/usr/include/stdio.h".
"/usr/include/stdio.h", line 499.12: 1540-1172 (S) More than one function "fsetpos64" has non-C++ linkage.
"/usr/include/stdio.h", line 298.17: 1540-0424 (I) "fsetpos64" is declared on line 298 of "/usr/include/stdio.h".
"/usr/include/stdio.h", line 500.16: 1540-0400 (S) "ftello64(FILE *)" has a conflicting declaration.
"/usr/include/stdio.h", line 436.17: 1540-0424 (I) "ftello64" is declared on line 436 of "/usr/include/stdio.h".
"/usr/include/alloca.h", line 34.9: 1540-1401 (I) An unknown "pragma __alloca" is specified.
"/usr/include/sys/mman.h", line 148.26: 1540-1172 (S) More than one function "mmap64" has non-C++ linkage.
"/usr/include/sys/mman.h", line 143.26: 1540-0424 (I) "mmap64" is declared on line 143 of "/usr/include/sys/mman.h".
make: 1254-004 The error code from the last command is 1.

Stop.

How to repeat:
Configure with

./configure --with-ndb-docs --with-ndb-test --with-berkeley-db=/usr/local/BerkeleyDB --with-zlib-dir=/usr/local/zlib --prefix=/usr/local/mysql-5.0.41-ba.com  --with-ndbcluster  --enable-thread-safe-client --without-big-tables

Suggested fix:
Sorry. Haven't found one yet...
[27 Jun 2007 19:05] Sveta Smirnova
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely
to be the same. Because of this, we hope you add your comments to the original bug instead.

Thank you for your interest in MySQL.

Duplicate of Bug #10776.

Workaround: use --disable-largefile configure option.
[27 Jun 2007 19:06] Sveta Smirnova
Bug is repeatable with gcc as well.