Re: compile problem with 3.23.50

2002-04-24 Thread Sinisa Milivojevic

[EMAIL PROTECTED] writes:
 Description:
   I get the following error:
 
   c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME=\/usr\
-
 DDATADIR=\/var/lib/mysql\   -DSHAREDIR=\/usr/share/mysql\
-DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/includ
 e   -I./../include  -I./../regex   -
 I. -I../include -I.. -I.-O3 -DDBUG_OFF   -fno-implicit-templates -fno-except
 ions -fno-rtti -c mysqld.cc
 mysqld.cc: In function `void * handle_connections_sockets(void *)':
 /usr/include/tcpd.h:161: too few arguments to function `void sock_host(request_i
 nfo *)'
 mysqld.cc:2428: at this point in file
 /usr/include/tcpd.h:119: too few arguments to function `int hosts_access(request
 _info *)'
 mysqld.cc:2429: at this point in file 
 /usr/include/tcpd.h:153: too few arguments to function `char * eval_client(reque
 st_info *)'
 mysqld.cc:2437: at this point in file
 make[4]: *** [mysqld.o] Error 1
 make[4]: Leaving directory `/home/ch/debian/mysql-3.23.50/sql'
 make[3]: *** [all-recursive] Error 1
 make[3]: Leaving directory `/home/ch/debian/mysql-3.23.50/sql'
   

Hi!

Problem that you are experiencing is caused by changes that were
needed to solve problem building MySQL with libwrap on Linux.

All Linux versions that we tested, had prototypes as in 3.23.50. 

Can you explain why is your Linux so different ??


-- 
Regards,
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic [EMAIL PROTECTED]
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Fulltime Developer
/_/  /_/\_, /___/\___\_\___/   Larnaca, Cyprus
   ___/   www.mysql.com


-
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




Re: compile problem with 3.23.50

2002-04-24 Thread Christian Hammers

On Wed, Apr 24, 2002 at 02:27:40PM +0300, Sinisa Milivojevic wrote:
  mysqld.cc:2428: at this point in file
  /usr/include/tcpd.h:119: too few arguments to function `int hosts_access(request
  _info *)'
  mysqld.cc:2429: at this point in file 
  /usr/include/tcpd.h:153: too few arguments to function `char * eval_client(reque
 
 Problem that you are experiencing is caused by changes that were
 needed to solve problem building MySQL with libwrap on Linux.
... 
 Can you explain why is your Linux so different ??

Hehe, it seems the Debian maintainer once applied some patches because 
mysqld.cc used arguments to the above functions:
http://bugs.debian.org/100891
 
 * tcpd.h: define __P() ourselves; sys/cdefs.h doesn't appear to be
   standard, and the glibc version adds __throw to the prototypes.
 
 mysqld.cc:1190:21: warning: multi-line string literals are deprecated
 /usr/include/tcpd.h: In function `void* handle_connections_sockets(void*)':
 /usr/include/tcpd.h:141: too many arguments to function `void sock_host()' 


I will ask him if these changes are obsolete now. MySQL seems to be right 
here.

bye,

-christian-


-
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




compile problem with 3.23.50

2002-04-23 Thread ch

Description:
I get the following error:

c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME=\/usr\
-
DDATADIR=\/var/lib/mysql\   -DSHAREDIR=\/usr/share/mysql\
   -DHAVE_CONFIG_H -I../bdb/build_unix -I../innobase/includ
e   -I./../include  -I./../regex   -
I. -I../include -I.. -I.-O3 -DDBUG_OFF   -fno-implicit-templates -fno-except
ions -fno-rtti -c mysqld.cc
mysqld.cc: In function `void * handle_connections_sockets(void *)':
/usr/include/tcpd.h:161: too few arguments to function `void sock_host(request_i
nfo *)'
mysqld.cc:2428: at this point in file
/usr/include/tcpd.h:119: too few arguments to function `int hosts_access(request
_info *)'
mysqld.cc:2429: at this point in file 
/usr/include/tcpd.h:153: too few arguments to function `char * eval_client(reque
st_info *)'
mysqld.cc:2437: at this point in file
make[4]: *** [mysqld.o] Error 1
make[4]: Leaving directory `/home/ch/debian/mysql-3.23.50/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ch/debian/mysql-3.23.50/sql'

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
ii  libwrap0   7.6-9  Wietse Venema's TCP wrappers library
ii  libwrap0-dev   7.6-9  Wietse Venema's TCP wrappers library, develo
ii  libc6  2.2.5-4GNU C Library: Shared libraries and Timezone
ii  libc6-dev  2.2.5-4GNU C Library: Development Libraries and Hea
ii  gcc2.95.4-14  The GNU C compiler.
ii  gcc-2.95   2.95.4-7   The GNU C compiler.
ii  gcc-3.0-base   3.0.4-7The GNU Compiler Collection (base package).

How-To-Repeat:
see above
Fix:
none

Submitter-Id:  submitter ID
Originator:Christian Hammers
Organization:
 Debian Project
MySQL support: none
Synopsis:  compile problem 3.23.50
Severity:  serious
Priority:  medium
Category:  mysql
Class: sw-bug
Release:   mysql-3.23.49 (Source distribution)
Server: /usr/bin/mysqladmin  Ver 8.23 Distrib 3.23.49, for pc-linux-gnu on i686
Copyright (C) 2000 MySQL AB  MySQL Finland AB  TCX DataKonsult AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version  3.23.49-log
Protocol version10
Connection  Localhost via UNIX socket
UNIX socket /var/run/mysqld/mysqld.sock
Uptime: 1 day 7 hours 39 min 28 sec

Threads: 1  Questions: 621696  Slow queries: 0  Opens: 506  Flush tables: 1  Open 
tables: 12 Queries per second avg: 5.455
Environment:

System: Linux xeniac 2.4.17 #2 Fre Jan 18 19:15:02 CET 2002 i686 unknown
Architecture: i686

Some paths:  /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
Compilation info: CC='gcc'  CFLAGS=''  CXX='c++'  CXXFLAGS=''  LDFLAGS=''
LIBC: 
lrwxrwxrwx1 root root   13 Mär 26 15:17 /lib/libc.so.6 - libc-2.2.5.so
-rwxr-xr-x1 root root  1153816 Mär 24 18:00 /lib/libc-2.2.5.so
-rw-r--r--1 root root  2391274 Mär 24 18:00 /usr/lib/libc.a
-rw-r--r--1 root root  178 Mär 24 18:01 /usr/lib/libc.so
-rw-r--r--1 root root   726660 Mär 24 05:56 /usr/lib/libc-client.so.2001
Configure command: ./configure  --prefix=/usr --exec-prefix=/usr 
--libexecdir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc/mysql 
--localstatedir=/var/lib/mysql --includedir=/usr/include --infodir=/usr/share/info 
--mandir=/usr/share/man --enable-shared --with-libwrap --enable-assembler 
--with-berkeley-db --with-innodb --enable-static --enable-shared --enable-local-infile 
--with-raid --enable-thread-safe-client --without-readline 
--with-unix-socket-path=/var/run/mysqld/mysqld.sock --with-mysqld-user=mysql 
--without-bench --with-client-ldflags=-lstdc++ --with-extra-charsets=all


-
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