root wrote:
>
> >Description:
> I am trying to install mysql 3.23.2 from the .tar.gz src on a RedHat 6 Linux
> PC. I have installed pgcc and have verified that it is being used. I have copied the
> options for LInux specified in Section 4.14 of the manual, excpet I have changed pentium
> to pentiumpro.
>
> Options :
>
> CFLAGS="-O6 -mpentiumpro -mstack-align-double -fomit-frame-pointer" CXX=gcc
> CXXFLAGS="-O6 -mpentiumpro \
> -mstack-align-double -fomit-frame-pointer -felide-constructors -fno-exceptions
> -fno-rtti" ./configure \
> --prefix=/usr/local/mysql --enable-assembler --with-mysqld-ldflags=-all-static
>
>
> MySQL compiled without a problem before I installed pgcc (v 1.1.3-1.i686 + c++
> 1.1.3-1.i686, and plibstdc (and devel) 2.9.0-1 i686). When I tried to recompile it (after
> make distclean), the ./configure worked, but the make ended with this error :
>
> /bin/sed \
> -e 's!@''bindir''@!/usr/local/mysql/bin!g' \
> -e 's!@''scriptdir''@!/usr/local/mysql/bin!g' \
> -e 's!@''prefix''@!/usr/local/mysql!g' \
> -e 's!@''datadir''@!/usr/local/mysql/share!g' \
> -e 's!@''localstatedir''@!/usr/local/mysql/var!g' \
> -e 's!@''libexecdir''@!/usr/local/mysql/libexec!g' \
> -e 's!@''CC''@!gcc!'\
> -e 's!@''CXX''@!gcc!'\
> -e 's!@''GXX''@!yes!'\
> -e 's!@''PERL''@!/usr/bin/perl!' \
> -e 's!@''CFLAGS''@!-O6 -mpentiumpro -mstack-align-double -fomit-frame-pointer!'\
> -e 's!@''CXXFLAGS''@!-O6 -mpentiumpro -mstack-align-double
> -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti!'\
> -e 's!@''LDFLAGS''@!!'\
> -e 's!@''VERSION''@!3.23.2-alpha!' \
> -e 's!@''COMPILATION_COMMENT''@!Source distribution!' \
> -e 's!@''MACHINE_TYPE''@!i686!' \
> -e 's!@''HOSTNAME''@!/bin/hostname!' \
> -e 's!@''SYSTEM_TYPE''@!pc-linux-gnu!' \
> -e 's!@''CHECK_PID''@!/bin/kill -0 $PID!' \
> -e 's!@''FIND_PROC''@!/bin/ps p $PID | grep mysqld > /dev/null!' \
> -e 's!@''MYSQLD_DEFAULT_SWITCHES''@!--skip-locking!' \
> -e 's!@''MYSQL_UNIX_ADDR''@!/tmp/mysql.sock!' \
> -e 's!@''IS_LINUX''@!true!' \
> -e "s!@""CONF_COMMAND""@!./configure --prefix=/usr/local/mysql --enable-assembler
> --with-mysqld-ldflags=-all-static!" \
> -e 's!@''MYSQLD_USER''@!root!' \
> mysqlbug.sh > mysqlbug-t
> /bin/chmod +x mysqlbug-t
> /bin/mv mysqlbug-t mysqlbug
> make[2]: *** No rule to make target `mysql_find_rows', needed by `all-am'. Stop.
> make[2]: Leaving directory `/usr/src/mysql/mysql-3.23.2-alpha/scripts'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/mysql/mysql-3.23.2-alpha'
> make: *** [all-recursive-am] Error 2
>
> When I tried to re ./configure with only options --prefix=/usr/local/mysql, it
> ended with this error :
>
> checking for restartable system calls... configure: error: can not run test
> program while cross compiling
>
>
> >How-To-Repeat:
> As Above
> >Fix:
> ??
>
> >Submitter-Id: Clinton Gormley
> >Originator: clint@stripped
> >Organization: Dr Tech
>
> >MySQL support: none
> >Synopsis: make fails with pgcc compile
> >Severity: critical
> >Priority: high (well it would be wouldn't it ;)
> >Category: mysql
> >Class: support
>
> This info is from a working install (before pgcc)
>
> >Release: mysql-3.23.2-alpha (Source distribution)
> >Server: /usr/local/bin/mysqladmin Ver 7.11 Distrib 3.23.2-alpha, for
> pc-linux-gnu on i686
> TCX Datakonsult AB, by Monty
>
> Server version 3.23.2-alpha
> Protocol version 10
> Connection Localhost via UNIX socket
> UNIX socket /tmp/mysql.sock
> Uptime: 24 min 48 sec
>
> Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 2
> >Environment:
>
> System: Linux bruiser.consol.co.uk 2.2.5-15smp #1 SMP Mon Apr 19 22:43:28 EDT 1999
> i686 unknown
> Architecture: i686
>
> Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /opt/pgcc/bin/gcc
> /usr/bin/cc
> GCC: Reading specs from /opt/pgcc/lib/gcc-lib/i686-pc-linux-gnu/pgcc-2.91.66/specs
> gcc version pgcc-2.91.66 19990314 (egcs-1.1.2 release)
> Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS='' LDFLAGS=''
> Configure command: ./configure --prefix=/usr/local/mysql
> Perl: This is perl, version 5.005_03 built for i686-linux
>
>
It looks like you made it it "too clean". make distclean cleans up a lot
of stuff, and you will need to run automake, autoconf, and possible some
other utilities to rebuild what it deleted. The best thing to do is to
unpack the distribution again, re-run configure, and recompile.
--
Sasha Pachev
http://www.sashanet.com