Re: Re: Build errors with 3.23.51

2002-09-22 Thread B. van Velzen [VelzArt.nl]

Yes, I now the problem with MySQL,

Can anyone send me te solution?

Greetings

---
B. van Velzen
VelzArt

Mobile   : +31(0)653382221
Mail  : [EMAIL PROTECTED]
Info   : [EMAIL PROTECTED]

http://www.velzart.nl

===
De informatie verzonden met dit E-mail bericht is uitsluitend bestemd voor
de geadresseerde. Gebruik van deze informatie door anderen dan de
geadresseerde is verboden. Openbaarmaking, vermenigvuldiging, verspreiding
en/of verstrekking van deze informatie aan derden is niet toegestaan.
velzart.nl staat niet in voor de juiste en volledige overbrenging
van de inhoud van een verzonden E-mail, noch voor tijdige ontvangst daarvan.

- Original Message -
From: [EMAIL PROTECTED]
To: B. van Velzen [VelzArt.nl] [EMAIL PROTECTED]
Sent: Sunday, September 22, 2002 3:06 PM
Subject: Re: Re: Build errors with 3.23.51


 Your message cannot be posted because it appears to be either spam or
 simply off topic to our filter. To bypass the filter you must include
 one of the following words in your message:

 sql,query

 If you just reply to this message, and include the entire text of it in
the
 reply, your reply will go through. However, you should
 first review the text of the message to make sure it has something to do
 with MySQL. Just typing the word MySQL once will be sufficient, for
example.

 You have written the following:

 Yes.

 I have excaclty the same problem :S

 can somebody mail me the solution?

 [EMAIL PROTECTED]

 Many thanks

 B. van Velzen





-
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: Build errors with 3.23.51

2002-09-22 Thread Julian Ladisch

Shane Allen wrote:

 configure:12730: checking style of gethost* routines
 configure:12773: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
  -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
 gcc: installation problem, cannot exec `cc1plus': No such file or directory

Configure assumes that gcc can compile .cc file as well.  This is bad
because gcc can be installed without .cc support, which is in the optional
packages gpp and libgpp.

I had the same problem with SuSE 7.3 and the unmodified mysql-4.0.3-beta
sources using the recommended gcc configure options from the manual.

Install packages gpp and libgpp, and all will work fine.

Regards

  Julian


-
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: Build errors with 3.23.51

2002-06-24 Thread Shane Allen

After much testing, I have managed to overcome the limits on file descriptors and such 
on linux; and have a mysql daemon that is fairly lean and able to support several 
thousand simultaneous connections.

I still, though, would like to see what kind of improvment gcc-3.0.4 makes as opposed 
to 2.95.

This build error that I had before (it misdetected the gethostbyname_r function) still 
plagues me, and I have been unable to find a work around for it. Can anyone lend 
assistance? Attached below (they've also come through the list before on this thread) 
are the relevant lines from my config.log with regards to the gethost* function(s)

Thanks

On Sat, Jun 22, 2002 at 02:40:38AM -0500, Shane Allen wrote:
 configure:12730: checking style of gethost* routines
 configure:12773: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
  -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
 gcc: installation problem, cannot exec `cc1plus': No such file or directory
 configure:12776: $? = 1
 configure: failed program was:
 #line 12750 configure
 #include confdefs.h
 #undef inline
 #if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
 #define _REENTRANT
 #endif
 #include pthread.h
 #include sys/types.h
 #include sys/socket.h
 #include netinet/in.h
 #include arpa/inet.h
 #include netdb.h
 int
 main ()
 {
 int skr;
  struct hostent *foo = gethostbyaddr_r((const char *) 0,
   0, 0, (struct hostent *) 0, (char *) NULL,  0, skr); return (foo == 0);
   ;
   return 0;
 }
 configure:12792: result: other
 configure:12813: checking style of gethostname_r routines
 configure:12854: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
  -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
 gcc: installation problem, cannot exec `cc1plus': No such file or directory
 configure:12857: $? = 1
 configure: failed program was:
 #line 12830 configure
 #include confdefs.h
 #undef inline
 #if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
 #define _REENTRANT
 #endif
 #include pthread.h
 #include sys/types.h
 #include sys/socket.h
 #include netinet/in.h
 #include arpa/inet.h
 #include netdb.h
 int
 main ()
 {
 int skr;
 
  skr = gethostbyname_r((const char *) 0,
   (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, skr);
   ;
   return 0;
 }
 configure:12873: result: other
 configure:12892: checking 3 argument to gethostname_r routines
 configure:12932: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
  -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
 gcc: installation problem, cannot exec `cc1plus': No such file or directory
 configure:12935: $? = 1
 configure: failed program was:
 #line 12909 configure
 #include confdefs.h
 #undef inline
 #if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
 #define _REENTRANT
 #endif
 #include pthread.h
 #include sys/types.h
 #include sys/socket.h
 #include netinet/in.h
 #include arpa/inet.h
 #include netdb.h
 int
 main ()
 {
 int skr;
 
  skr = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 
0);
   ;
   return 0;
 }
 
 
 On Sat, Jun 22, 2002 at 03:09:15AM +0200, Jocelyn Fournier wrote:
  Hi,
  
  It seems to be linked with the gethostname_r detection
  
  checking style of gethostname_r routines... other
  
  I think you should have the following line instead :
  
  checking style of gethostname_r routines... glibc2
  
  Can you take a look at the config.log file and tell us what is wrong ?
  
  (in my case I have the following lines  :
  
  configure:15261: checking style of gethostname_r routines
  configure:15309:
  gcc -c -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcommen
  t -W -Wchar-subscripts -Wformat -Wparen
  theses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wre
  order -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-con
  structors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-poi
  nter  -fno-implicit-templates -fno-exceptions -fno-rtti
  -DUSE_MYSYS_NEW -Werror  conftest.cc 5
  configure:15312: $? = 0
  configure:15315: test -s conftest.o
  configure:15318: $? = 0
  configure:15328: result: glibc2
  
  )
  
  Regards,
Jocelyn

-
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: Build errors with 3.23.51

2002-06-22 Thread Shane Allen

Below are what I believe to be the relevant lines from the config.log...

  Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads
  and the mysql-supplied linuxthreads patch.

After re-reading my original post as well, I realize that I forgot to mention that I 
compiled the glibc libraries with gcc 2.95; configure would fail saying that gcc 3.0.4 
was a bad compiler, and I'm not good enough with autoconf to hack the check out of the 
configure script (despite several attempts to do so). I don't know if that is 
information worth noting or not; but it can't hurt I suppose.

Thanks again.

configure:12730: checking style of gethost* routines
configure:12773: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12776: $? = 1
configure: failed program was:
#line 12750 configure
#include confdefs.h
#undef inline
#if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
#define _REENTRANT
#endif
#include pthread.h
#include sys/types.h
#include sys/socket.h
#include netinet/in.h
#include arpa/inet.h
#include netdb.h
int
main ()
{
int skr;
 struct hostent *foo = gethostbyaddr_r((const char *) 0,
  0, 0, (struct hostent *) 0, (char *) NULL,  0, skr); return (foo == 0);
  ;
  return 0;
}
configure:12792: result: other
configure:12813: checking style of gethostname_r routines
configure:12854: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12857: $? = 1
configure: failed program was:
#line 12830 configure
#include confdefs.h
#undef inline
#if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
#define _REENTRANT
#endif
#include pthread.h
#include sys/types.h
#include sys/socket.h
#include netinet/in.h
#include arpa/inet.h
#include netdb.h
int
main ()
{
int skr;

 skr = gethostbyname_r((const char *) 0,
  (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, skr);
  ;
  return 0;
}
configure:12873: result: other
configure:12892: checking 3 argument to gethostname_r routines
configure:12932: gcc -c -O -DDBUG_OFF -O3 -felide-constructors -fno-exceptions 
-fno-rtti
 -fpermissive -I/usr/local/mysql-glibc-2.2.2/include  conftest.cc 5
gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure:12935: $? = 1
configure: failed program was:
#line 12909 configure
#include confdefs.h
#undef inline
#if !defined(SCO)  !defined(__osf__)  !defined(_REENTRANT)
#define _REENTRANT
#endif
#include pthread.h
#include sys/types.h
#include sys/socket.h
#include netinet/in.h
#include arpa/inet.h
#include netdb.h
int
main ()
{
int skr;

 skr = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 
0);
  ;
  return 0;
}


On Sat, Jun 22, 2002 at 03:09:15AM +0200, Jocelyn Fournier wrote:
 Hi,
 
 It seems to be linked with the gethostname_r detection
 
 checking style of gethostname_r routines... other
 
 I think you should have the following line instead :
 
 checking style of gethostname_r routines... glibc2
 
 Can you take a look at the config.log file and tell us what is wrong ?
 
 (in my case I have the following lines  :
 
 configure:15261: checking style of gethostname_r routines
 configure:15309:
 gcc -c -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcommen
 t -W -Wchar-subscripts -Wformat -Wparen
 theses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wre
 order -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-con
 structors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-poi
 nter  -fno-implicit-templates -fno-exceptions -fno-rtti
 -DUSE_MYSYS_NEW -Werror  conftest.cc 5
 configure:15312: $? = 0
 configure:15315: test -s conftest.o
 configure:15318: $? = 0
 configure:15328: result: glibc2
 
 )
 
 Regards,
   Jocelyn
 
 - Original Message -
 From: Shane Allen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 22, 2002 3:05 AM
 Subject: Build errors with 3.23.51
 
 
  Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads
 and the mysql-supplied linuxthreads patch.
 
  I'm using the following configure line:
 
  CFLAGS=-O3 -march=pentiumpro CXX=gcc
 CXXFLAGS=-O3 -felide-constructors -fno-exceptions -fno-rtti
 /configure  --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-sta
 tic --enable-thread-safe-client --with-other-libc=/usr/local/mysql-glibc-2.2
 .2
 
  I have not successfully built against this glibc yet, however I did not
 receive any unusual warnings, and no errors occured during any part of the
 build.
 
  Following is the output of the configure:
  checking build system type... i686-pc-linux-gnu
  checking host system type... i686-pc-linux-gnu
  checking target system type... i686-pc-linux-gnu
  checking

Re: Build errors with 3.23.51

2002-06-22 Thread Jocelyn Fournier

Hi,

It seems to be linked with the gethostname_r detection

checking style of gethostname_r routines... other

I think you should have the following line instead :

checking style of gethostname_r routines... glibc2

Can you take a look at the config.log file and tell us what is wrong ?

(in my case I have the following lines  :

configure:15261: checking style of gethostname_r routines
configure:15309:
gcc -c -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcommen
t -W -Wchar-subscripts -Wformat -Wparen
theses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wsign-promo -Wre
order -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-con
structors -fno-exceptions -fno-rtti -mcpu=pentiumpro -O3 -fno-omit-frame-poi
nter  -fno-implicit-templates -fno-exceptions -fno-rtti
-DUSE_MYSYS_NEW -Werror  conftest.cc 5
configure:15312: $? = 0
configure:15315: test -s conftest.o
configure:15318: $? = 0
configure:15328: result: glibc2

)

Regards,
  Jocelyn

- Original Message -
From: Shane Allen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, June 22, 2002 3:05 AM
Subject: Build errors with 3.23.51


 Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads
and the mysql-supplied linuxthreads patch.

 I'm using the following configure line:

 CFLAGS=-O3 -march=pentiumpro CXX=gcc
CXXFLAGS=-O3 -felide-constructors -fno-exceptions -fno-rtti
/configure  --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-sta
tic --enable-thread-safe-client --with-other-libc=/usr/local/mysql-glibc-2.2
.2

 I have not successfully built against this glibc yet, however I did not
receive any unusual warnings, and no errors occured during any part of the
build.

 Following is the output of the configure:
 checking build system type... i686-pc-linux-gnu
 checking host system type... i686-pc-linux-gnu
 checking target system type... i686-pc-linux-gnu
 checking for a BSD compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking whether make sets ${MAKE}... yes
 checking for working aclocal... missing
 checking for working autoconf... missing
 checking for working automake... missing
 checking for working autoheader... missing
 checking for working makeinfo... found
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking whether build environment is sane... yes
 checking whether make sets ${MAKE}... (cached) yes
 checking for mawk... mawk
 checking for gcc... gcc
 checking for C compiler default output... a.out
 checking whether the C compiler works... yes
 checking whether we are cross compiling... no
 checking for executable suffix...
 checking for object suffix... o
 checking whether we are using the GNU C compiler... yes
 checking whether gcc accepts -g... yes
 checking whether we are using the GNU C++ compiler... no
 checking whether gcc accepts -g... no
 checking how to run the C preprocessor... gcc -E
 checking C Compiler version... gcc 3.0.4
 checking C++ compiler version... gcc 3.0.4
 checking for ranlib... ranlib
 checking for ld used by GCC... /usr/bin/ld
 checking if the linker (/usr/bin/ld) is GNU ld... yes
 checking for BSD-compatible nm... /usr/bin/nm -B
 checking whether ln -s works... yes
 loading cache /dev/null within ltconfig
 checking for object suffix... o
 checking for executable suffix... no
 checking for gcc option to produce PIC... -fPIC
 checking if gcc PIC flag -fPIC works... yes
 checking if gcc supports -c -o file.o... yes
 checking if gcc supports -c -o file.lo... yes
 checking if gcc supports -fno-rtti -fno-exceptions ... yes
 checking if gcc static flag -static works... -static
 checking if the linker (/usr/bin/ld) is GNU ld... yes
 checking whether the linker (/usr/bin/ld) supports shared libraries... yes
 checking command to parse /usr/bin/nm -B output... ok
 checking how to hardcode library paths into programs... immediate
 checking for /usr/bin/ld option to reload object files... -r
 checking dynamic linker characteristics... Linux ld.so
 checking if libtool supports shared libraries... yes
 checking whether to build shared libraries... yes
 checking whether to build static libraries... yes
 checking for objdir... .libs
 creating libtool
 updating cache /dev/null
 checking for a BSD compatible install... /usr/bin/install -c
 checking for bison... bison -y
 checking for pdftex... manual.pdf
 checking return type of sprintf... int
 checking for uname... /bin/uname
 checking operating system... Linux
 checking if we should use 'skip-locking' as default for linux-gnu...
yes
 checking for ln... /bin/ln
 checking for ln... /bin/ln
 checking for mv... /bin/mv
 checking for rm... /bin/rm
 checking for cp... /bin/cp
 checking for sed... /bin/sed
 checking for cmp... /usr/bin/cmp
 checking for chmod... /bin/chmod
 checking for hostname... /bin/hostname
 checking for gnutar... no
 checking for gtar... no
 checking for tar... tar
 checking for perl... /usr/bin/perl
 checking for ps... /bin/ps

Build errors with 3.23.51

2002-06-21 Thread Shane Allen

Running Debian, 2.4.19pre1 kernel, gcc 3.0.4, glib-2.2.2 with linuxthreads and the 
mysql-supplied linuxthreads patch.

I'm using the following configure line:

CFLAGS=-O3 -march=pentiumpro CXX=gcc CXXFLAGS=-O3 -felide-constructors 
-fno-exceptions -fno-rtti ./configure  --with-client-ldflags=-all-static 
--with-mysqld-ldflags=-all-static --enable-thread-safe-client 
--with-other-libc=/usr/local/mysql-glibc-2.2.2

I have not successfully built against this glibc yet, however I did not receive any 
unusual warnings, and no errors occured during any part of the build.

Following is the output of the configure:
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for mawk... mawk
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking whether we are using the GNU C++ compiler... no
checking whether gcc accepts -g... no
checking how to run the C preprocessor... gcc -E
checking C Compiler version... gcc 3.0.4
checking C++ compiler version... gcc 3.0.4
checking for ranlib... ranlib
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
loading cache /dev/null within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache /dev/null
checking for a BSD compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for pdftex... manual.pdf
checking return type of sprintf... int
checking for uname... /bin/uname
checking operating system... Linux
checking if we should use 'skip-locking' as default for linux-gnu... yes
checking for ln... /bin/ln
checking for ln... /bin/ln
checking for mv... /bin/mv
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for sed... /bin/sed
checking for cmp... /usr/bin/cmp
checking for chmod... /bin/chmod
checking for hostname... /bin/hostname
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking for perl... /usr/bin/perl
checking for ps... /bin/ps
checking how to check if pid exists... /bin/ps p $$PID | grep mysqld  /dev/null
checking for kill... /bin/kill
checking for kill switches... /bin/kill -0 $$PID  /dev/null 2 /dev/null
checking for gcc option to accept ANSI C... 
checking if we should use assembler functions... no
checking if we should use RAID... no
checking if we should should enable LOAD DATA LOCAL by default... no
checking for getconf... getconf
checking for CFLAGS value to request large file support... -D_FILE_OFFSET_BITS=64
checking for LDFLAGS value to request large file support... 
checking for LIBS value to request large file support... 
checking for _FILE_OFFSET_BITS... 64
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... (cached) yes
checking for