|
楼主 |
发表于 2003-6-16 22:44:20
|
显示全部楼层
果然是 BUG!!!不知何时修正,发布新版。我不会修改 spec 文件,然后重新打包。
Hi,
On Mon, 16 Jun 2003, liu jack wrote:
> 1.It require a user "mysqldev"!
Why do you think this is necessary? The MySQL RPM can be rebuilt by any
user. It's just our binary RPMs that are built using a "mysqldev" build
account. However, the file ownerships are being set correctly when the
binary RPMs are being installed.
> 2.There must be a BUG in "raid.cc". Just like these:
> mysql-4.0.13/mysys/raid.cc:119: undefined reference to `operator
> new(unsigned)'
> mysql-4.0.13/mysys/raid.cc:130: undefined reference to `operator
> delete(void*)'
> mysql-4.0.13/mysys/raid.cc:141: undefined reference to `operator
> new(unsigned)'
> mysql-4.0.13/mysys/raid.cc:152: undefined reference to `operator
> delete(void*)'
> mysql-4.0.13/mysys/raid.cc:277: undefined reference to `operator
> delete(void*)'
>
> 3.The same Problem (cannot be rebuilded) can occur on
> MySQL-4.0.12-0.src.rpm. Some people told me that they encountered such a
> BUG too!
This is a bug in the RPM spec file when using GCCv3 and compiling with
RAID. We've already fixed this in our BK tree:
# Build the 4.0 Max binary (includes BDB and UDFs and therefore
# cannot be linked statically against the patched glibc)
[SNIP]
- --- a/support-files/mysql.spec.sh Mon Jun 16 14:14:19 2003
+++ b/support-files/mysql.spec.sh Mon Jun 16 14:14:19 2003
@@ -254,6 +254,13 @@
+# If we want to compile with RAID using gcc 3, we need to use
+# gcc instead of g++ to avoid linking problems (RAID code is written in C++)
+if gcc -v 2>&1 | grep 'version 3' > /dev/null 2>&1
+then
+ export CXX="gcc"
+fi
+
BuildMySQL "--enable-shared \
--with-berkeley-db \
--with-innodb \
[SNIP]
Alternatively, simple remove the "--with-raid" from the configure line in
the spec file - most people don't need RAID anyway.
Bye,
LenZ
- --
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Lenz Grimmer <[email protected]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Production Engineer
/_/ /_/\_, /___/\___\_\___/ Hamburg, Germany
<___/ www.mysql.com |
|