-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
sorry for the late reply - I was on a short vacation until yesterday.
On Thu, 24 Jul 2003, Bernhard Graf wrote:
> > What's wrong with using the "official" 4.0 MySQL RPMs?
>
> They don't compile on my recent SuSE-Linux boxes.
I still cannot reproduce that here :(
How exactly do they fail to compile? What's the error message?
> Their RPM structure differ from the more mature SuSE RPMs, so I would
> expect incompatibilities with other SuSE packages that require certain
> MySQL-packages.
Can you please elaborate on "more mature" a bit? In which way do they
differ?
> > The latter should not be necessary. Try to aviod linking against
> > libstdc++ when compiling MySQL, if possible - the manual has some
> > more info on that subject.
>
> Following this advice (or do a rpm --rebuild on your 4.0.14 RPM), build
> ends with:
>
> gcc -O3 -DDBUG_OFF -O2 -m486 -DNDEBUG -rdynamic -o isamchk isamchk.o sort.o
> libnisam.a ../mysys/libmysys.a ../dbug/libdbug.a ../strings/libmystrings.a -lpthread -lz
> -lcrypt -lnsl -lm -lpthread
> ../mysys/libmysys.a(my_tempnam.o)(.text+0x40): In function `my_tempnam':
> : the use of `tempnam' is dangerous, better use `mkstemp'
> ../mysys/libmysys.a(raid.o)(.text+0x8d): In function `my_raid_create':
> : undefined reference to `operator new(unsigned)'
> ../mysys/libmysys.a(raid.o)(.text+0xf1): In function `my_raid_create':
> : undefined reference to `operator delete(void*)'
> ../mysys/libmysys.a(raid.o)(.text+0x149): In function `my_raid_open':
> : undefined reference to `operator new(unsigned)'
> ../mysys/libmysys.a(raid.o)(.text+0x1a9): In function `my_raid_open':
> : undefined reference to `operator delete(void*)'
> ../mysys/libmysys.a(raid.o)(.text+0x60a): In function `my_raid_close':
> : undefined reference to `operator delete(void*)'
> collect2: ld returned 1 exit status
> make[2]: *** [isamchk] Fehler 1
> make[2]: Leaving directory `/home/graf/packages/BUILD/mysql-4.0.14/isam'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory `/home/graf/packages/BUILD/mysql-4.0.14'
> make: *** [all] Fehler 2
> Fehlerhafter Status nach Ausführen von /var/tmp/rpm-tmp.7303 (%build)
This happens if you compile with RAID, but don't use CXX=gcc - you must
use gcc instead of g++ as the C++ compiler, when compiling with RAID
support.
> With LDFLAGS='-lstdc++' I'm able to build a dynamic version at least.
When using CXX=gcc, this should not be necessary.
> Hm - I'm unable to rebuild your RPM on my system, see above. Aside from
> gcc 3.3 final (which you also used) this is a out-of-the-box SuSE8.2
> setup.
Please make sure that you really use CXX=gcc - this will fix the undefined
reference errors you reported above.
Bye,
LenZ
- --
Lenz Grimmer <lenz@stripped>
Senior Production Engineer
MySQL GmbH, http://www.mysql.de/
Hamburg, Germany
For technical support contracts, visit https://order.mysql.com/?ref=mlgr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
iD8DBQE/J5DHSVDhKrJykfIRAuxJAJ9d/wV1rEF+WKK9g8YFEVTkUJMIVgCbBwZB
u5+wD/X7QrRF6841XBV8YYM=
=nIqz
-----END PGP SIGNATURE-----