Just tried building Mysql-3.x.x cloned from the Development Tree on the same
machine - works like a charm. Still no luck with 4.0.2....
Is there any known issue regarding building 4.0.2 under RedHat7.2?

Thanks,
Vadim.



"Vadim P." wrote:
> 
> The Dev. Tree Source MySQL 4.0 no longer builds on this machine, giving lots
> of errors. Had been able to build from the same source w/o any problems up
> until a few days ago, when I 'bk resync'ed the source. Any ideas?
> 
> Thanks for your help!
> 
> --------------------------------------------------------------------------
> A snapshot of build transcript. Invoked by ./BUILD/compile-pentium.
> --------------------------------------------------------------------------
> 
> [sql]# make
> Making all in share
> make[1]: Entering directory `/root/mysql-4.0/sql/share'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/root/mysql-4.0/sql/share'
> make[1]: Entering directory `/root/mysql-4.0/sql'
> gcc -DMYSQL_SERVER
> -DDEFAULT_MYSQL_HOME="\"/usr/local/mysql\""
> -DDATADIR="\"/usr/local/mysql/var\""
> -DSHAREDIR="\"/usr/local/mysql/share/mysql\""
> -DHAVE_CONFIG_H
> -I../innobase/include                   -I./../include
> -I./../regex                     -I. -I../include -I.
> -O3 -DDBUG_OFF -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs
> -Wcomment -W -Wchar-subscripts -Wformat
> -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare
> -Wwrite-strings -Woverloaded-virtual -Wextern-inline
> -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor
> -felide-constructors -fno-exceptions -fno-rtti
> -mcpu=pentiumpro -O3 -fno-omit-frame-pointer  -fno-implicit-templates
> -fno-exceptions -fno-rtti -c mysqld.cc
> cc1plus: warning: Ignoring command line option '-Wimplicit-function-dec'
> cc1plus: warning: Ignoring command line option '-Wimplicit-int'
> mysqld.cc: In function `void *handle_connections_sockets (void *)':
> mysqld.cc:2425: warning: `my_socket new_sock' might be used
> uninitialized in this function
> mysqld.cc: At top level:
> mysqld.cc:3045: `disconnect_slave_event_count' was not declared in this
> scope
> mysqld.cc:3046: `disconnect_slave_event_count' was not declared in this
> scope
> mysqld.cc:3050: `abort_slave_event_count' was not declared in this
> scope
> mysqld.cc:3050: `abort_slave_event_count' was not declared in this
> scope
> mysqld.cc:3053: `max_binlog_dump_events' was not declared in this scope
> mysqld.cc:3053: `max_binlog_dump_events' was not declared in this scope
> mysqld.cc:3056: `opt_sporadic_binlog_dump_fail' was not declared in
> this scope
> mysqld.cc:3057: `opt_sporadic_binlog_dump_fail' was not declared in
> this scope
> mysqld.cc:3299: `OPT_INNODB_MIRRORED_LOG_GROUPS' was not declared in
> this scope
> mysqld.cc:3304: `OPT_INNODB_LOG_FILES_IN_GROUP' was not declared in
> this scope
> mysqld.cc:3308: `OPT_INNODB_LOG_FILE_SIZE' was not declared in this
> scope
> mysqld.cc:3312: `OPT_INNODB_LOG_BUFFER_SIZE' was not declared in this
> scope
> mysqld.cc:3316: `OPT_INNODB_BUFFER_POOL_SIZE' was not declared in this
> scope
> mysqld.cc:3320: `OPT_INNODB_ADDITIONAL_MEM_POOL_SIZE' was not declared
> in this scope
> mysqld.cc:3325: `OPT_INNODB_FILE_IO_THREADS' was not declared in this
> scope
> mysqld.cc:3329: `OPT_INNODB_LOCK_WAIT_TIMEOUT' was not declared in this
> scope
> mysqld.cc:3333: `OPT_INNODB_THREAD_CONCURRENCY' was not declared in
> this scope
> mysqld.cc:3337: `OPT_INNODB_FORCE_RECOVERY' was not declared in this
> scope
> make[1]: *** [mysqld.o] Error 1
> make[1]: Leaving directory `/root/mysql-4.0/sql'
> make: *** [all-recursive] Error 1
> 
> ------------------------------------------------------------------
> ./configure output:
> ------------------------------------------------------------------
> 
> loading cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> 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 gawk... (cached) gawk
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc   ) works... yes
> checking whether the C compiler (gcc   ) is a cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for c++... (cached) gcc
> checking whether the C++ compiler (gcc   ) works... yes
> checking whether the C++ compiler (gcc   ) is a cross-compiler... no
> checking whether we are using GNU C++... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking how to run the C preprocessor... (cached) gcc -E
> checking C Compiler version... gcc 2.96
> checking C++ compiler version... gcc 2.96
> checking for ranlib... (cached) ranlib
> checking for ld used by GCC... (cached) /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
> checking for BSD-compatible nm... (cached) /usr/bin/nm -B
> checking whether ln -s works... (cached) yes
> loading cache ./config.cache within ltconfig
> checking for object suffix... o
> checking for executable suffix... (cached) 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
> loading cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> checking for bison... (cached) bison -y
> checking for pdftex... no
> checking return type of sprintf... int
> checking for uname... (cached) /bin/uname
> checking operating system... (cached) Linux
> checking if we should use skip-locking as default for linux-gnu... yes
> checking for ln... (cached) /bin/ln
> checking for ln... (cached) /bin/ln
> checking for mv... (cached) /bin/mv
> checking for rm... (cached) /bin/rm
> checking for cp... (cached) /bin/cp
> checking for sed... (cached) /bin/sed
> checking for cmp... (cached) /usr/bin/cmp
> checking for chmod... (cached) /bin/chmod
> checking for hostname... (cached) /bin/hostname
> checking for gnutar... (cached) gtar
> checking for perl... (cached) /usr/bin/perl
> checking for ps... (cached) /bin/ps
> checking how to check if pid exists... /bin/ps p $$PID | grep mysqld >
> /dev/null
> checking for kill... (cached) /bin/kill
> checking for kill switches... /bin/kill -0 $$PID > /dev/null 2> /dev/null
> checking for gcc option to accept ANSI C... (cached)
> 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... (cached) getconf
> checking for CFLAGS value to request large file support... (cached)
> -D_FILE_OFFSET_BITS=64
> checking for LDFLAGS value to request large file support... (cached)
> checking for LIBS value to request large file support... (cached)
> checking for _FILE_OFFSET_BITS... (cached) 64
> checking for _LARGEFILE_SOURCE... (cached) no
> checking for _LARGE_FILES... (cached) no
> checking for ANSI C header files... (cached) yes
> checking for size_t... (cached) yes
> checking for dirent.h that defines DIR... (cached) yes
> checking for opendir in -ldir... (cached) no
> checking for ANSI C header files... (cached) yes
> checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
> checking for fcntl.h... (cached) yes
> checking for float.h... (cached) yes
> checking for floatingpoint.h... (cached) no
> checking for ieeefp.h... (cached) no
> checking for limits.h... (cached) yes
> checking for memory.h... (cached) yes
> checking for pwd.h... (cached) yes
> checking for select.h... (cached) no
> checking for stdlib.h... (cached) yes
> checking for stddef.h... (cached) yes
> checking for strings.h... (cached) yes
> checking for string.h... (cached) yes
> checking for synch.h... (cached) no
> checking for sys/mman.h... (cached) yes
> checking for sys/socket.h... (cached) yes
> checking for netinet/in.h... (cached) yes
> checking for arpa/inet.h... (cached) yes
> checking for sys/timeb.h... (cached) yes
> checking for sys/types.h... (cached) yes
> checking for sys/un.h... (cached) yes
> checking for sys/vadvise.h... (cached) no
> checking for sys/wait.h... (cached) yes
> checking for term.h... (cached) yes
> checking for unistd.h... (cached) yes
> checking for utime.h... (cached) yes
> checking for sys/utime.h... (cached) no
> checking for termio.h... (cached) yes
> checking for termios.h... (cached) yes
> checking for sched.h... (cached) yes
> checking for crypt.h... (cached) yes
> checking for alloca.h... (cached) yes
> checking for sys/ioctl.h... (cached) yes
> checking for floor in -lm... (cached) yes
> checking for gethostbyname_r in -lnsl_r... (cached) no
> checking for gethostbyname_r in -lnsl... (cached) yes
> checking for gethostbyname_r... (cached) yes
> checking for setsockopt... (cached) yes
> checking for yp_get_default_domain... (cached) yes
> checking for p2open... (cached) no
> checking for p2open in -lgen... (cached) no
> checking for bind... (cached) yes
> checking for crypt in -lcrypt... (cached) yes
> checking for crypt... (cached) yes
> checking if libz with compress... (cached) yes
> checking for atomic operations... atomic_add atomic_sub
> checking if we should use pstack... no
> checking for int8... no
> checking LinuxThreads... Found
> checking named thread libs:... -lpthread
> checking for strtok_r in -lpthread... (cached) yes
> checking for strtok_r... (cached) yes
> checking for dlopen in -ldl... (cached) yes
> checking for restartable system calls... (cached) yes
> checking need of special linking flags... -rdynamic
> checking for working const... (cached) yes
> checking for inline... (cached) inline
> checking for off_t... (cached) yes
> checking for st_rdev in struct stat... (cached) yes
> checking whether time.h and sys/time.h may both be included... (cached) yes
> checking whether struct tm is in sys/time.h or time.h... (cached) time.h
> checking size of char... (cached) 1
> checking size of int... (cached) 4
> checking size of long... (cached) 4
> checking size of long long... (cached) 8
> checking size of off_t... (cached) 8
> checking whether byte ordering is bigendian... (cached) no
> checking base type of last arg to accept... (cached) socklen_t
> checking stack direction for C alloca... (cached) -1
> checking for working alloca.h... (cached) yes
> checking for alloca... (cached) yes
> checking if struct timespec has a ts_sec member... (cached) no
> checking if we have tzname variable... (cached) yes
> checking for type ulong... (cached) yes
> checking for type uchar... (cached) no
> checking for type uint... (cached) yes
> checking for type fp_except... (cached) no
> checking if gcc supports bool types... (cached) yes
> checking if conversion of longlong to float works... (cached) yes
> checking if pthread_yield takes zero arguments... (cached) yes
> checking if pthread_yield takes 1 argument... (cached) no
> checking for varargs.h... (cached) yes
> checking for stdarg.h... (cached) yes
> checking for dirent.h... (cached) yes
> checking for locale.h... (cached) yes
> checking for ndir.h... (cached) no
> checking for sys/dir.h... (cached) yes
> checking for sys/file.h... (cached) yes
> checking for sys/ndir.h... (cached) no
> checking for sys/ptem.h... (cached) no
> checking for sys/pte.h... (cached) no
> checking for sys/select.h... (cached) yes
> checking for sys/stream.h... (cached) no
> checking for sys/mman.h... (cached) yes
> checking for curses.h... (cached) yes
> checking for termcap.h... (cached) yes
> checking for termio.h... (cached) yes
> checking for termbits.h... (cached) no
> checking for asm/termbits.h... (cached) yes
> checking for grp.h... (cached) yes
> checking for paths.h... (cached) yes
> checking for lstat... (cached) yes
> checking for putenv... (cached) yes
> checking for select... (cached) yes
> checking for setenv... (cached) yes
> checking for setlocale... (cached) yes
> checking for strcoll... (cached) yes
> checking for tcgetattr... (cached) yes
> checking whether stat file-mode macros are broken... (cached) no
> checking return type of signal handlers... (cached) void
> checking for type of signal functions... (cached) posix
> checking whether programs are able to redeclare getpw functions... (cached)
> yes
> checking for TIOCGWINSZ in sys/ioctl.h... (cached) yes
> checking for FIONREAD in sys/ioctl.h... (cached) yes
> checking for TIOCSTAT in sys/ioctl.h... (cached) no
> checking if struct dirent has a d_ino member... (cached) yes
> checking whether signal handlers are of type void... (cached) yes
> (cached) checking for termcap functions library... -lncurses
> checking for unistd.h... (cached) yes
> checking for getpagesize... (cached) yes
> checking for working mmap... (cached) yes
> checking return type of signal handlers... (cached) void
> checking return type of qsort... (cached) void
> checking whether utime accepts a null argument... (cached) yes
> checking for vprintf... (cached) yes
> checking for alarm... (cached) yes
> checking for bmove... (cached) no
> checking for chsize... (cached) no
> checking for ftruncate... (cached) yes
> checking for rint... (cached) yes
> checking for finite... (cached) yes
> checking for isnan... (cached) yes
> checking for fpsetmask... (cached) no
> checking for fpresetsticky... (cached) no
> checking for cuserid... (cached) yes
> checking for fcntl... (cached) yes
> checking for fconvert... (cached) no
> checking for poll... (cached) yes
> checking for getrusage... (cached) yes
> checking for getpwuid... (cached) yes
> checking for getcwd... (cached) yes
> checking for getrlimit... (cached) yes
> checking for getwd... (cached) yes
> checking for index... (cached) yes
> checking for stpcpy... (cached) yes
> checking for locking... (cached) no
> checking for longjmp... (cached) yes
> checking for perror... (cached) yes
> checking for pread... (cached) yes
> checking for realpath... (cached) yes
> checking for readlink... (cached) yes
> checking for rename... (cached) yes
> checking for socket... (cached) yes
> checking for strnlen... (cached) yes
> checking for madvise... (cached) yes
> checking for mkstemp... (cached) yes
> checking for strtol... (cached) yes
> checking for strtoul... (cached) yes
> checking for strtoll... (cached) yes
> checking for strtoull... (cached) yes
> checking for snprintf... (cached) yes
> checking for tempnam... (cached) yes
> checking for thr_setconcurrency... (cached) no
> checking for gethostbyaddr_r... (cached) yes
> checking for gethostbyname_r... (cached) yes
> checking for getpwnam... (cached) yes
> checking for bfill... (cached) no
> checking for bzero... (cached) yes
> checking for bcmp... (cached) yes
> checking for strstr... (cached) yes
> checking for strpbrk... (cached) yes
> checking for strerror... (cached) yes
> checking for tell... (cached) no
> checking for atod... (cached) no
> checking for memcpy... (cached) yes
> checking for memmove... (cached) yes
> checking for setupterm... (cached) no
> checking for strcasecmp... (cached) yes
> checking for sighold... (cached) yes
> checking for vidattr... (cached) no
> checking for lrand48... (cached) yes
> checking for localtime_r... (cached) yes
> checking for sigset... (cached) yes
> checking for sigthreadmask... (cached) no
> checking for pthread_sigmask... (cached) yes
> checking for pthread_setprio... (cached) no
> checking for pthread_setprio_np... (cached) no
> checking for pthread_setschedparam... (cached) yes
> checking for pthread_attr_setprio... (cached) no
> checking for pthread_attr_setschedparam... (cached) yes
> checking for pthread_attr_create... (cached) no
> checking for pthread_getsequence_np... (cached) no
> checking for pthread_attr_setstacksize... (cached) yes
> checking for pthread_condattr_create... (cached) no
> checking for rwlock_init... (cached) no
> checking for pthread_rwlock_rdlock... (cached) yes
> checking for fchmod... (cached) yes
> checking for getpass... (cached) yes
> checking for getpassphrase... (cached) no
> checking for initgroups... (cached) yes
> checking for mlockall... (cached) yes
> checking for fseeko... (cached) yes
> checking for dlopen... (cached) yes
> checking for dlerror... (cached) yes
> checking style of gethost* routines... (cached) other
> checking style of gethostname_r routines... (cached) glibc2
> checking 3 argument to gethostname_r routines... (cached) char
> checking args to pthread_getspecific... (cached) POSIX
> checking args to pthread_mutex_init... (cached) POSIX
> checking args to readdir_r... (cached) POSIX
> checking style of sigwait... (cached) POSIX
> checking for pthread_attr_setscope... (cached) yes
> checking can netinet files be included... yes
> Warning: extra-tools disabled because --enable-thread-safe-client wasn't used
> checking for ORBit... not found
> checking if we should build MySQLFS... no
> checking for OpenSSL... checking character sets... default: latin1; compiled
> in: latin1
> checking for BerkeleyDB... no
> Not using Berkeley DB
> checking for Innodb... Using Innodb
> checking for aio_read in -lrt... (cached) yes
> CONFIGURING FOR INNODB
> loading cache ./config.cache
> checking host system type... i686-pc-linux-gnu
> checking target system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for a BSD compatible install... (cached) /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... (cached) yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -O3 -DDBUG_OFF     -rdynamic) works...
> yes
> checking whether the C compiler (gcc -O3 -DDBUG_OFF     -rdynamic) is a
> cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for ranlib... (cached) ranlib
> checking for a BSD compatible install... /usr/bin/install -c
> checking how to run the C preprocessor... (cached) gcc -E
> checking for aio.h... (cached) yes
> checking for sched.h... (cached) yes
> checking size of int... (cached) 4
> checking for sched_yield... (cached) yes
> checking for fdatasync... (cached) yes
> checking whether byte ordering is bigendian... (cached) no
> creating ./config.status
> creating Makefile
> creating os/Makefile
> creating ut/Makefile
> creating btr/Makefile
> creating buf/Makefile
> creating com/Makefile
> creating data/Makefile
> creating dict/Makefile
> creating dyn/Makefile
> creating eval/Makefile
> creating fil/Makefile
> creating fsp/Makefile
> creating fut/Makefile
> creating ha/Makefile
> creating ibuf/Makefile
> creating include/Makefile
> creating lock/Makefile
> creating log/Makefile
> creating mach/Makefile
> creating mem/Makefile
> creating mtr/Makefile
> creating odbc/Makefile
> creating page/Makefile
> creating pars/Makefile
> creating que/Makefile
> creating read/Makefile
> creating rem/Makefile
> creating row/Makefile
> creating srv/Makefile
> creating sync/Makefile
> creating thr/Makefile
> creating trx/Makefile
> creating usr/Makefile
> creating ib_config.h
> ib_config.h is unchanged
> END OF INNODB CONFIGURATION
> creating ./config.status
> creating Makefile
> creating extra/Makefile
> creating mysys/Makefile
> creating isam/Makefile
> creating strings/Makefile
> creating regex/Makefile
> creating heap/Makefile
> creating bdb/Makefile
> creating myisam/Makefile
> creating myisammrg/Makefile
> creating man/Makefile
> creating BUILD/Makefile
> creating readline/Makefile
> creating vio/Makefile
> creating libmysql_r/Makefile
> creating libmysqld/Makefile
> creating libmysqld/examples/Makefile
> creating libmysql/Makefile
> creating client/Makefile
> creating pstack/Makefile
> creating pstack/aout/Makefile
> creating sql/Makefile
> creating sql/share/Makefile
> creating merge/Makefile
> creating dbug/Makefile
> creating scripts/Makefile
> creating include/Makefile
> creating sql-bench/Makefile
> creating tools/Makefile
> creating tests/Makefile
> creating Docs/Makefile
> creating support-files/Makefile
> creating mysql-test/Makefile
> creating include/mysql_version.h
> creating config.h
> 
> ---------------------------------------------------------------------
> 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

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