Can't compile xtrabackup with mysql 5.1.32

Bug #352983 reported by MarkD
6
This bug affects 1 person
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:/usr/src# ls -l mysql-5.0.77/innobase/usr/
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:/usr/src# ls -la mysql-5.1.32/innobase/usr/
total 4
-rw-r--r-- 1 7155 wheel 1583 Feb 14 01:56 usr0sess.c

Greets
Mark Davis

Revision history for this message
Vadim Tkachenko (vadim-tk) wrote : Re: [Bug 352983] [NEW] Can't compile xtrabackup with mysql 5.1.32

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
../que/libque.a\
                ../srv/libsrv.a ../ibuf/libibuf.a ../row/librow.a
../pars/libpars.a\
                ../btr/libbtr.a ../trx/libtrx.a ../read/libread.a
../usr/libusr.a\
                ../buf/libbuf.a ../ibuf/libibuf.a ../eval/libeval.a
../log/liblog.a\
                ../fsp/libfsp.a ../fut/libfut.a ../fil/libfil.a
../lock/liblock.a\
                ../mtr/libmtr.a ../page/libpage.a ../rem/librem.a
../thr/libthr.a\
                ../sync/libsync.a ../data/libdata.a ../mach/libmach.a
../ha/libha.a\
                ../dyn/libdyn.a ../mem/libmem.a ../sync/libsync.a
../ut/libut.a\
                ../os/libos.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
../ha_innodb_la-btr0pcur.o ../ha_innodb_la-btr0sea.o ../ha_inn
#INNODBOBJS= ../libinnobase_a-btr0btr.o ../libinnobase_a-btr0cur.o
../libinnobase_a-btr0pcur.o ../libinnobase_a-btr0sea.o ../li
#MYSQLOBJS= ../../../mysys/libmysys.a ../../../strings/libmystrings.a

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:
> 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:/usr/src# ls -l mysql-5.0.77/innobase/usr/
> 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:/usr/src# ls -la mysql-5.1.32/innobase/usr/
> 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
>

--
Vadim Tkachenko, CTO
Percona Inc.
ICQ: 369-510-335, Skype: vadimtk153, Phone +1-888-401-3403
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.percona.com/

  Attend the 2009 Percona Performance Conference
  April 22-23 - http://conferences.percona.com/

Revision history for this message
MarkD (mark-davis-ewetel) wrote :

Thx,

ah, now it compiles nicely. Thank you.

> xtrabackup Ver beta-0.4 for 5.1.32 unknown-linux-gnu (x86_64)

Greets
Mark

Percona (percona-team)
Changed in percona-xtrabackup:
status: New → Won't Fix
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-1044

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.