If you're not using GCC 3.0 AND libwrap, this message probably won't
apply to you....

Trying to compile 3.23.39 on Linux 2.4.5 with GCC 3.0 and libwrap enabled
leads to errors like this when the compiler reaches mysqld.cc:

c++ -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME="\"/usr/local\"" 
-DDATADIR="\"/usr/local/mysql-data\""
        -DSHAREDIR="\"/usr/local/share/mysql\"" -DHAVE_CONFIG_H -I./../include 
-I./../regex -I.
        -I../include -I.. -I.  -I/usr/lib/include  -O3 -DDBUG_OFF 
-fno-implicit-templates
        -fno-exceptions -fno-rtti -c mysqld.cc

/usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)':
/usr/include/tcpd.h:124: too many arguments to function `char* eval_client()'
mysqld.cc:2257: at this point in file
make[3]: *** [mysqld.o] Error 1

Apparently this is a result of updates to the C++ compiler; according to
the GCC known bugs page:

"There are many reasons why reported bugs don't get fixed. It might be
difficult to fix, or fixing it might break compatibility. Often, reports
get a low priority when there is a simple work-around. In particular, bugs
caused by invalid C++ code have a simple work-around, fix the code. Now
that there is an agreed ISO/ANSI standard for C++, the compiler has a
definitive document to adhere to. Earlier versions might have accepted
source code that is no longer C++. This means that code which might have
`worked' in a previous version, is now rejected. You should update your
code to be C++."

Anyway... these errors can be fixed by updating tcpd.h

line 69:  extern int hosts_access(struct request_info *);
line 124: extern char *eval_client(struct request_info*);
line 131: extern void sock_host(struct request_info*);

I've also experienced problems trying to compile with the --with-raid
option, but since I found that I don't need that option, I haven't
bothered to try to fix it.

--ravyn


---------------------------------------------------------------------
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