xtrabackup 2.3 can not be built from GitHub sources

Bug #1511267 reported by Valerii Kravchuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Fix Released
Medium
Sergei Glushchenko
2.3
Fix Released
Medium
Sergei Glushchenko

Bug Description

I tried to follow the manual (https://www.percona.com/doc/percona-xtrabackup/2.3/installation/compiling_xtrabackup.html) to build recent xtrabackup 2.3.x from GitHub sources:

[openxs@chief percona-xtrabackup]$ fc -l
...
1017 cd git
1018 rm -rf percona-xtrabackup/
1019 df -H
1020 git clone https://github.com/percona/percona-xtrabackup.git
1021 cd percona-xtrabackup/
1022 git branches -r
1023 git branch -r
1024 git branch
1025 git checkout 2.3
1026 git branch
1027 cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF
1028 make
[openxs@chief percona-xtrabackup]$

cmake ended up successfully, but unfortunately make failed like this:

[ 77%] Building C object storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/xbstream_write.c.o
[ 77%] Building CXX object storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/backup_mysql.cc.o
[ 77%] Building CXX object storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/backup_copy.cc.o
/home/openxs/git/percona-xtrabackup/storage/innobase/xtrabackup/src/backup_copy.cc:51:30: fatal error: version_check_pl.h: No such file or directory
compilation terminated.
make[2]: *** [storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/backup_copy.cc.o] Error 1
make[1]: *** [storage/innobase/xtrabackup/src/CMakeFiles/xtrabackup.dir/all] Error 2
make: *** [all] Error 2

and I can not find the missing version_check_pl.h anywhere in the system:

[openxs@chief percona-xtrabackup]$ find / -name version_check_pl.h 2>/dev/null
[openxs@chief percona-xtrabackup]$ echo $?
1
[openxs@chief percona-xtrabackup]$

Surely I can hack the code to remove references to this file and simplify/remove Perl version check (why is it needed at all I wonder?), but it would be niceto provide sources at GitHub that can be built based on the manualk without any modifications.

no longer affects: percona-xtradb-cluster
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

Try to install vim, then rm -rf percona-xtrabackup and repeat the whole procedure. We need xxd to generate version_check.pl which comes with vim package.
If it works, we will update docs.

Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :
Download full text (4.2 KiB)

I had vim-minimal:

[openxs@chief percona-xtrabackup]$ rpm -qa | grep vim
vim-minimal-7.3.315-1.fc14.x86_64

Then I followed your instructions:

[openxs@chief percona-xtrabackup]$ su
Password:
[root@chief percona-xtrabackup]# yum install vim
Loaded plugins: langpacks, presto, refresh-packagekit
Adding en_US to language list
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vim-enhanced.x86_64 2:7.3.315-1.fc14 set to be installed
--> Processing Dependency: vim-common = 2:7.3.315-1.fc14 for package: 2:vim-enhanced-7.3.315-1.fc14.x86_64
--> Processing Dependency: libruby.so.1.8()(64bit) for package: 2:vim-enhanced-7.3.315-1.fc14.x86_64
--> Running transaction check
---> Package ruby-libs.x86_64 0:1.8.7.352-1.fc14 set to be installed
--> Processing Dependency: libreadline.so.5()(64bit) for package: ruby-libs-1.8.7.352-1.fc14.x86_64
---> Package vim-common.x86_64 2:7.3.315-1.fc14 set to be installed
--> Processing Dependency: vim-filesystem for package: 2:vim-common-7.3.315-1.fc14.x86_64
--> Running transaction check
---> Package compat-readline5.x86_64 0:5.2-17.fc12 set to be installed
---> Package vim-filesystem.x86_64 2:7.3.315-1.fc14 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package Arch Version Repository Size
================================================================================
Installing:
 vim-enhanced x86_64 2:7.3.315-1.fc14 updates 959 k
Installing for dependencies:
 compat-readline5 x86_64 5.2-17.fc12 fedora 124 k
 ruby-libs x86_64 1.8.7.352-1.fc14 updates 1.9 M
 vim-common x86_64 2:7.3.315-1.fc14 updates 6.2 M
 vim-filesystem x86_64 2:7.3.315-1.fc14 updates 14 k

Transaction Summary
================================================================================
Install 5 Package(s)

Total download size: 9.1 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 9.1 M
(1/5): compat-readline5-5.2-17.fc12.x86_64.rpm | 124 kB 00:00
(2/5): ruby-libs-1.8.7.352-1.fc14.x86_64.rpm | 1.9 MB 00:00
(3/5): vim-common-7.3.315-1.fc14.x86_64.rpm | 6.2 MB 00:02
(4/5): vim-enhanced-7.3.315-1.fc14.x86_64.rpm | 959 kB 00:02
(5/5): vim-filesystem-7.3.315-1.fc14.x86_64.rpm | 14 kB 00:00
--------------------------------------------------------------------------------
Total 1.5 MB/s | 9.1 MB 00:05
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-readline5-5.2-17.fc12.x86_64 1/5
  Installing : ruby-libs-1.8.7.352-1.fc14.x86_64 2/5
  Installing : 2:vim-filesystem-7.3.315-1.fc14.x86_64 3/5
  Installing : 2:vim-common-7.3.315...

Read more...

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
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-737

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.