Does not compile on RHEL6.1

Bug #899985 reported by Ryan Lowe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Data Recovery Tool for InnoDB
Invalid
Undecided
Unassigned

Bug Description

The tools don't compile on RHEL6.1, but they do fine on CentOS5.7. Here are the important differences (both ec2 instances):

===== CentOS 5.7 =====

%> gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

%> ld --version
GNU ld version 2.17.50.0.6-14.el5 20061020
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.

%> cat /etc/*release
CentOS release 5.7 (Final)

===== RHEL 6.1 =====

%> gcc --version
gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

%> ld --version
GNU ld version 2.20.51.0.2-5.20.el6_1.1 20091009
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.

%> cat /etc/*release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
Red Hat Enterprise Linux Server release 6.1 (Santiago)

===== FAILURE =====

%> bzr branch https://code.launchpad.net/~percona-dev/percona-data-recovery-tool-for-innodb/trunk
%> cd trunk
%> make
...
make[1]: Leaving directory `/root/trunk/mysql-source/strings'
ln -fs ../mysql-source/strings/libmystrings.a lib/libmystrings.a
gcc -DHAVE_OFFSET64_T -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -Wall -O3 -g -I include -I mysql-source/include -I mysql-source/innobase/include -o constraints_parser constraints_parser.c lib/tables_dict.o lib/print_data.o lib/check_data.o lib/libut.a lib/libmystrings.a
gcc -DHAVE_OFFSET64_T -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 -Wall -O3 -g -I include -I mysql-source/include -I mysql-source/innobase/include -static -lrt -o page_parser page_parser.c lib/tables_dict.o lib/libut.a
/usr/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
make: *** [page_parser] Error 1

Revision history for this message
Valentine Gostev (longbow) wrote :

Ryan,
please make sure that libaio and librt are installed

Revision history for this message
Ryan Lowe (ryan-a-lowe) wrote :

Just needed libaio-devel & glibc-static, thanks!

Revision history for this message
Stewart Smith (stewart) wrote : Re: [Bug 899985] Re: Does not compile on RHEL6.1

On Sun, 04 Dec 2011 18:41:54 -0000, Ryan Lowe <email address hidden> wrote:
> Just needed libaio-devel & glibc-static, thanks!

does this mean we should close this bug?

--
Stewart Smith

Revision history for this message
Aleksandr Kuzminsky (akuzminsky) wrote :

related to Bug #904406

Changed in percona-data-recovery-tool-for-innodb:
status: New → Invalid
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.