RPM compile error on Mandrake 9.1 with default values

RPM compile error on Mandrake 9.1 with default values

am 26.04.2003 10:21:00 von water modem

OS: Mandrake 9.1

Compiling with:
rpmbuild --rebuild MySQL-4.0.12-0.src.rpm


[...]

gcc -O3 -DDBUG_OFF -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro
-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+0x56): In function `my_tempnam':
: the use of `tempnam' is dangerous, better use `mkstemp'
.../mysys/libmysys.a(raid.o)(.text+0x9f): In function `my_raid_create':
: undefined reference to `operator new(unsigned)'
.../mysys/libmysys.a(raid.o)(.text+0x134): In function `my_raid_create':
: undefined reference to `operator delete(void*)'
.../mysys/libmysys.a(raid.o)(.text+0x19f): In function `my_raid_open':
: undefined reference to `operator new(unsigned)'
.../mysys/libmysys.a(raid.o)(.text+0x22c): In function `my_raid_open':
: undefined reference to `operator delete(void*)'
.../mysys/libmysys.a(raid.o)(.text+0x809): In function `my_raid_close':
: undefined reference to `operator delete(void*)'
collect2: ld returned 1 exit status
make[2]: *** [isamchk] Error 1
make[2]: Leaving directory `/usr/src/RPM/BUILD/mysql-4.0.12/isam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/mysql-4.0.12'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.40553 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.40553 (%build)
[root@dali watermod]# `mkstemp'
> ../mysys/libmysys.a(raid.o)(.text+0x9f): In function `my_raid_create':
> : undefined reference to `operator new(unsigned)'
-bash: command substitution: line 1: unexpected EOF while looking for matching `''
-bash: command substitution: line 3: syntax error: unexpected end of file
-bash: my_raid_create:
: undefined reference to `operator new(unsigned): command not found


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org

Re: RPM compile error on Mandrake 9.1 with default values

am 26.04.2003 19:29:42 von Sinisa Milivojevic

water modem writes:
> OS: Mandrake 9.1
>
> Compiling with:
> rpmbuild --rebuild MySQL-4.0.12-0.src.rpm
>
>
> [...]
>
> gcc -O3 -DDBUG_OFF -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro
> -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+0x56): In function `my_tempnam':
> : the use of `tempnam' is dangerous, better use `mkstemp'
> ../mysys/libmysys.a(raid.o)(.text+0x9f): In function `my_raid_create':
> : undefined reference to `operator new(unsigned)'
> ../mysys/libmysys.a(raid.o)(.text+0x134): In function `my_raid_create':
> : undefined reference to `operator delete(void*)'
> ../mysys/libmysys.a(raid.o)(.text+0x19f): In function `my_raid_open':
> : undefined reference to `operator new(unsigned)'
> ../mysys/libmysys.a(raid.o)(.text+0x22c): In function `my_raid_open':
> : undefined reference to `operator delete(void*)'
> ../mysys/libmysys.a(raid.o)(.text+0x809): In function `my_raid_close':
> : undefined reference to `operator delete(void*)'
> collect2: ld returned 1 exit status
> make[2]: *** [isamchk] Error 1
> make[2]: Leaving directory `/usr/src/RPM/BUILD/mysql-4.0.12/isam'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/RPM/BUILD/mysql-4.0.12'
> make: *** [all] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.40553 (%build)
>
>

RAID option is no longer supported.

--

Regards,

--
For technical support contracts, go to https://order.mysql.com/?ref=msmi
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, FullTime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com


--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@m.gmane.org