# Failed to build page\_parser tool

**URL:** <https://forums.percona.com/t/failed-to-build-page-parser-tool/4180>\
**Category:** Percona Toolkit\
**Created:** [April 24, 2015, 12:02am UTC](https://forums.percona.com/t/failed-to-build-page-parser-tool/4180 "2015-04-24T00:02:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kapitanluffy](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kapitanluffy/32/1068_2.png) [@kapitanluffy](https://forums.percona.com/u/kapitanluffy)\
**Post date:** [April 24, 2015, 12:02am UTC](https://forums.percona.com/t/failed-to-build-page-parser-tool/4180/1 "2015-04-24T00:02:09Z")

</div>

I was following this wiki page

[url][http://www.percona.com/docs/wiki/innodb-data-recovery-tool:mysql-data-recovery:building\_the\_tools[/url]](http://www.percona.com/docs/wiki/innodb-data-recovery-tool:mysql-data-recovery:building_the_tools%5B/url%5D)

I run the `./configure` command inside the mysql-source directory. After that run `make` in the  
root directory of the package but only the constraints\_parser is successfully built.

Here is the output of the `make` command

[url][http://pastebin.com/5n8AEcpT[/url]](http://pastebin.com/5n8AEcpT%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Bender\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Bender\_Rodriguez](https://forums.percona.com/u/Bender_Rodriguez)\
**Post date:** [December 23, 2015, 3:29am UTC](https://forums.percona.com/t/failed-to-build-page-parser-tool/4180/2 "2015-12-23T03:29:51Z")

</div>

Are these forums even monitored? Sheesh. Anyway, I read elsewhere that the fix for your issue is to remove the -lrt from the makefile.

---

<div class="post-metadata">

**Author:** ![Bender\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@Bender\_Rodriguez](https://forums.percona.com/u/Bender_Rodriguez)\
**Post date:** [December 23, 2015, 3:31am UTC](https://forums.percona.com/t/failed-to-build-page-parser-tool/4180/3 "2015-12-23T03:31:49Z")

</div>

Funnily enough, Im trying to build the same tool but getting this error:

3 warnings generated.  
Undefined symbols for architecture x86\_64:  
“\_check\_for\_a\_record”, referenced from:  
\_process\_ibpage in constraints\_parser-9aa692.o  
“\_error”, referenced from:  
\_process\_ibfile in constraints\_parser-9aa692.o  
\_open\_ibfile in constraints\_parser-9aa692.o  
\_set\_filter\_id in constraints\_parser-9aa692.o  
\_usage in constraints\_parser-9aa692.o  
\_main in constraints\_parser-9aa692.o  
“\_make\_longlong”, referenced from:  
\_print\_field\_value in print\_data.o  
“\_make\_ulonglong”, referenced from:  
\_get\_uint\_value in print\_data.o  
\_get\_int\_value in print\_data.o  
\_print\_field\_value in print\_data.o  
“\_print\_decimal”, referenced from:  
\_print\_field\_value in print\_data.o  
ld: symbol(s) not found for architecture x86\_64  
clang: error: linker command failed with exit code 1 (use -v to see invocation)  
make: \*\*\* [constraints\_parser] Error 1

my gcc version is:

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1  
Apple LLVM version 7.0.0 (clang-700.0.72)  
Target: x86\_64-apple-darwin14.5.0  
Thread model: posix
