Hi All,

I've built previous versions of mysql with gcc/g++ or other IBM
C++ compilers, but I'm having some problems with their VisualAge C++
V5.0.1 compiler.

Curently I have an error while compiling sql/sql_lex.cc. My command-line
(reduced to the minimum) is
        xlC_r -DMYSQL_SERVER -DHAVE_CONFIG_H -I../../db-3.2.3h/build_unix \
          -I./../include -I./../regex -DHAVE_INT_8_16_32 \
          -DUNDEF_HAVE_INITGROUPS -c sql_lex.cc
which produces the following error messages:

"/usr/include/netinet/in.h", line 377.17: 1540-1125 (W) The data member "char 
ip_opts[40]" cannot have the same name as its containing class.
"item_sum.h", line 173.31: 1540-0063 (S) The text "*" is unexpected.
"item_sum.h", line 208.31: 1540-0063 (S) The text "*" is unexpected.
"sql_map.h", line 49.10: 1540-0274 (S) The name lookup for "map_file" did not find a 
declaration.
"sql_map.h", line 37.24: 1540-1298 (I) "mapped_files *map_file(const my_string, byte 
*, uint)" needs to be declared in the containing scope to be found by name lookup.

A relavent extract from item_sum.h is

class Item_avg_field :public Item_result_field { public:
  Field *field;
  Item_avg_field(Item_sum_avg *item);
  enum Type type() const { return FIELD_AVG_ITEM; }
  double val();
  longlong val_int() { return (longlong) val(); }
  String *val_str(String*);
  void make_field(Send_field *field);
  void fix_length_and_dec() {}
};

Can anyone suggest a modification?

After running configure I modified congig.h to decalre
HAVE_GETHOSTBYNAME_R_RETURN_INT (although AIX's basic gethostbyname is
itself thread-safe).

I also modified include/*global.h to remove "_AIX32_CURSES", since
the AIX-3.2 version of the include defines bool as a char which the
compiler didn't like.

Thanks for any pointers,
Ciaran


+-------------------------------------------------------------------------+
Ciaran Deignan                                Tel: (France) 04 76 29 79 92
BULL XS-BU (http://www-frec.bull.com)                 HA and Consolidation

Mail to: [EMAIL PROTECTED]                        Bullcom: 229 79 92
PGP: B1 78 FB 88 FD 86 58 A8  89 7B 22 8C D0 E8 71 FC       Fax: 229 75 18
+-------------------------------------------------------------------------+


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to