On 15 May 2001 13:21:12 +0300, Sinisa Milivojevic wrote:
> 
> The reason why you are having problems in building from source is that
> you are most probably using gcc 2.96, which is simply broken.

I have different results. Here:

(I'm doing everything on a dual-proc Linux Red Hat 7.0 system with all
updates applied, except for the kernel which is the original one)

I modified the spec file like this:

###########################################
--- mysql-3.23.38.spec.orig Wed May  9 13:56:54 2001
+++ mysql-3.23.38.spec Tue May 15 15:15:38 2001
@@ -151,9 +151,9 @@
# The --enable-assembler simply does nothing on systems that does not
# support assembler speedups.
sh -c  "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
- CC=\"${MYSQL_BUILD_CC:-egcs}\" \
+ CC=\"${MYSQL_BUILD_CC:-kgcc}\" \
CFLAGS=\"${MYSQL_BUILD_CFLAGS:- -O3}\" \
- CXX=\"${MYSQL_BUILD_CXX:-egcs}\" \
+ CXX=\"${MYSQL_BUILD_CXX:-kgcc}\" \
CXXFLAGS=\"${MYSQL_BUILD_CXXFLAGS:- -O3 \
         -felide-constructors -fno-exceptions -fno-rtti \
 }\" \
###########################################

Then "rpm -ba" on the new spec. Installed the resulting binaries.
I still get the error:

###########################################
mysql> show databases;
+----------+
| Database |
+----------+
|          |
|          |
|          |
|          |
|          |
|          |
|          |
+----------+
7 rows in set (0.00 sec)
###########################################

I just replaced egcs with kgcc in the spec file. But on RH7.0, egcs and
kgcc are the same thing! Here:

###########################################
[root@stantz /root]# egcs --version
egcs-2.91.66
[root@stantz /root]# kgcc --version
egcs-2.91.66
[root@stantz /root]# gcc --version
2.96
[root@stantz /root]#
###########################################

Now, i modified the spec again, and put gcc instead of egcs or kgcc,
then rebuilt the packages and installed them.
(pay attention, i'm using the updated gcc-2.96.69, not the original
2.96.54 which is shipped with the Red Hat 7.0 CD)

And guess what:

###########################################
mysql> show databases;
+----------+
| Database |
+----------+
| mysql    |
| test     |
+----------+
2 rows in set (0.00 sec)
###########################################

I'm confused...

It doesn't work with egcs/kgcc (same thing), but it's supposed to.
It does work with gcc, but it's not supposed to. :-)

Now what?

How are YOU building the RPM packages? Which distribution / compiler /
version / blah-blah ???

-- 
Florin Andrei

"All operating systems suck.
Linux just sucks less" - an MIT guy


---------------------------------------------------------------------
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 <mysql-unsubscribe-##L=##[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to