Can't compile xtrabackup with mysql 5.1.32
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hello,
i try to compile xtrabackup with mysql 5.1.32 (also tried 5.1.31, same result).
If i interpred the documentation right, then i need a xtrabackup version, that is compiled with the innodb version of the mysql-server. In my case this is stock mysql 5.1.32.
2 Problems:
- the innobase directory is in the storage directory (problems with includes).
- if i move the innobase in the mysql-base directory, then i get the following error:
make: *** No rule to make target `../usr/libusr.a', needed by `xtrabackup'. Stop
root@mysql:
total 48
-rw-r--r-- 1 root root 2982 Apr 1 11:02 libusr.a
-rw-r--r-- 1 root root 13904 Apr 1 11:02 Makefile
-rw-r--r-- 1 7155 wheel 870 Jan 29 22:42 Makefile.am
-rw-r--r-- 1 7155 wheel 14155 Jan 29 22:56 Makefile.in
-rw-r--r-- 1 7155 wheel 1740 Jan 29 22:42 usr0sess.c
-rw-r--r-- 1 root root 2816 Apr 1 11:02 usr0sess.o
root@mysql:
total 4
-rw-r--r-- 1 7155 wheel 1583 Feb 14 01:56 usr0sess.c
Greets
Mark Davis
Changed in percona-xtrabackup: | |
status: | New → Won't Fix |
Mark,
Build for 5.1 is not polished, please fix Makefile manually.
you need to comment lines
INC= -I. -I.. -I./../include -I./../../include
INNODBOBJS= ../usr/libusr.a ../srv/libsrv.a ../dict/libdict.a
../srv/ libsrv. a ../ibuf/libibuf.a ../row/librow.a
../btr/ libbtr. a ../trx/libtrx.a ../read/libread.a
../buf/ libbuf. a ../ibuf/libibuf.a ../eval/libeval.a
../fsp/ libfsp. a ../fut/libfut.a ../fil/libfil.a
../mtr/ libmtr. a ../page/libpage.a ../rem/librem.a
../sync/ libsync. a ../data/libdata.a ../mach/libmach.a
../dyn/ libdyn. a ../mem/libmem.a ../sync/libsync.a
../os/ libos.a ../ut/libut.a
../que/libque.a\
../pars/libpars.a\
../usr/libusr.a\
../log/liblog.a\
../lock/liblock.a\
../thr/libthr.a\
../ha/libha.a\
../ut/libut.a\
MYSQLOBJS= ../../mysys/ libmysys. a ../../strings/ libmystrings. a
and uncomment
#MySQL 5.1
#INC= -I. -I.. -I./../include -I./../../include -I./../ ../../include
#INNODBOBJS= ../ha_innodb_ la-btr0btr. o ../ha_innodb_ la-btr0cur. o la-btr0pcur. o ../ha_innodb_ la-btr0sea. o ../ha_inn a-btr0btr. o ../libinnobase_ a-btr0cur. o a-btr0pcur. o ../libinnobase_ a-btr0sea. o ../li ./mysys/ libmysys. a ../../. ./strings/ libmystrings. a
../ha_innodb_
#INNODBOBJS= ../libinnobase_
../libinnobase_
#MYSQLOBJS= ../../.
Please not you need to uncomment only single line with INNODBOBJS, which
one it depends how you built MySQL. just check if you have ha_innodb*.o
or libinnobase*.o files
MarkD wrote: /usr/src# ls -l mysql-5. 0.77/innobase/ usr/ /usr/src# ls -la mysql-5. 1.32/innobase/ usr/
> Public bug reported:
>
> Hello,
>
> i try to compile xtrabackup with mysql 5.1.32 (also tried 5.1.31, same
> result).
>
> If i interpred the documentation right, then i need a xtrabackup
> version, that is compiled with the innodb version of the mysql-server.
> In my case this is stock mysql 5.1.32.
>
> 2 Problems:
> - the innobase directory is in the storage directory (problems with includes).
> - if i move the innobase in the mysql-base directory, then i get the following error:
>
> make: *** No rule to make target `../usr/libusr.a', needed by
> `xtrabackup'. Stop
>
> root@mysql:
> total 48
> -rw-r--r-- 1 root root 2982 Apr 1 11:02 libusr.a
> -rw-r--r-- 1 root root 13904 Apr 1 11:02 Makefile
> -rw-r--r-- 1 7155 wheel 870 Jan 29 22:42 Makefile.am
> -rw-r--r-- 1 7155 wheel 14155 Jan 29 22:56 Makefile.in
> -rw-r--r-- 1 7155 wheel 1740 Jan 29 22:42 usr0sess.c
> -rw-r--r-- 1 root root 2816 Apr 1 11:02 usr0sess.o
> root@mysql:
> total 4
> -rw-r--r-- 1 7155 wheel 1583 Feb 14 01:56 usr0sess.c
>
>
> Greets
> Mark Davis
>
> ** Affects: percona-xtrabackup
> Importance: Undecided
> Status: New
>
-- www.mysqlperfor manceblog. com www.percona. com/
Vadim Tkachenko, CTO
Percona Inc.
ICQ: 369-510-335, Skype: vadimtk153, Phone +1-888-401-3403
MySQL Performance Blog - http://
MySQL Consulting http://
Attend the 2009 Percona Performance Conference conferences. percona. com/
April 22-23 - http://