List:General Discussion« Previous MessageNext Message »
From:Philippe Benchemoul Date:October 11 2002 8:16am
Subject:Problem with compilation of mysql.
View as plain text  
You can find the message I have when I try to compile mysql :
---------------------------------------------------------
rm -f .libs/libmysql.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/progs/mysql\"
-DDATADIR=\"/usr/local/progs/mysql/var\"
-DSHAREDIR=\"/usr/local/progs/mysql/share/mysql\" -DDONT_USE_RAID
-I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -Wimplicit
-Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts
-Wformat -Wparentheses -Wsign-compare -Wwrite-strings -Wunused
-mcpu=pentiumpro -O3 -fno-omit-frame-pointer -c libmysql.c  -fPIC -DPIC
-o .libs/libmysql.lo
In file included from /usr/include/linux/config.h:4,
                 from /usr/include/asm/atomic.h:4,
                 from ../include/global.h:206,
                 from libmysql.c:18:
/usr/include/linux/autoconf.h:64: warning: `CONFIG_SMP' redefined
../include/global.h:205: warning: this is the location of the previous
definition
libmysql.c: In function `mysql_real_connect':
libmysql.c:1325: warning: passing arg 5 of `gethostbyname_r' from
incompatible pointer type
libmysql.c:1325: too few arguments to function `gethostbyname_r'
libmysql.c:1325: warning: assignment makes pointer from integer without
a cast
libmysql.c: In function `myodbc_remove_escape':
libmysql.c:2574: warning: `end' might be used uninitialized in this
function
make[2]: *** [libmysql.lo] Error 1
make[2]: Leaving directory
`/space1/users/pbenchem/PHP/mysql-3.23.52/libmysql_r'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/space1/users/pbenchem/PHP/mysql-3.23.52'
make: *** [all-recursive-am] Error 2
------------------------------------------------------

>Organization:
 <organization of PR author (multiple lines)>
>MySQL support: [none | licence | email support | extended email support ]
>Synopsis:      <synopsis of the problem (one line)>
>Severity:      <[ non-critical | serious | critical ] (one line)>
>Priority:      <[ low | medium | high ] (one line)>
>Category:      mysql
>Class:         <[ sw-bug | doc-bug | change-request | support ] (one line)>
>Release:       mysql-3.23.52 (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 version        10
Connection              Localhost via UNIX socket
UNIX socket             /var/run/mysqld/mysqld.sock
Uptime:                 16 days 20 hours 34 min 35 sec

Threads: 1  Questions: 19101  Slow queries: 0  Opens: 71  Flush tables:
1  Open tables: 24 Queries per second avg: 0.013
>Environment:
        <machine, os, target, libraries (multiple lines)>
System: Linux machine.wanadoo.com 2.2.18-RAID #3 SMP Wed Jan 24 17:32:56
CET 2001 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.2/specs
gcc version 2.95.2 20000220 (Debian GNU/Linux)
Compilation info: CC='gcc'  CFLAGS='-Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses
-Wsign-compare -Wwrite-strings -Wunused -mcpu=pentiumpro -O3
-fno-omit-frame-pointer'  CXX='gcc'  CXXFLAGS='-Wimplicit -Wreturn-type
-Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat
-Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual
-Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor
-felide-constructors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3
-fno-omit-frame-pointer'  LDFLAGS=''
LIBC:
lrwxrwxrwx    1 root     root           14 Aug 23 14:45 /lib/libc.so.5
-> libc.so.5.4.46
-rw-r--r--    1 root     root       563068 Feb  4  2002
/lib/libc.so.5.4.46
lrwxrwxrwx    1 root     root           13 Sep 24 13:39 /lib/libc.so.6
-> libc-2.2.5.so
-rwxr-xr-x    1 root     root      1153784 Apr 28 11:57
/lib/libc-2.2.5.so
-rw-r--r--    1 root     root      2390922 Apr 28 11:58 /usr/lib/libc.a
-rw-r--r--    1 root     root          178 Apr 28 11:58 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr/local/mysql
--enable-assembler --with-extra-charsets=complex
--enable-thread-safe-client --with-innodb --with-berkeley-db
--enable-thread-safe-client 'CFLAGS=-Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses
-Wsign-compare -Wwrite-strings -Wunused -mcpu=pentiumpro -O3
-fno-omit-frame-pointer' 'CXXFLAGS=-Wimplicit -Wreturn-type -Wswitch
-Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses
-Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo
-Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors
-fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-pointer'
CXX=gcc
Thread
Problem with compilation of mysql.Philippe Benchemoul11 Oct