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

Reply via email to