# Percona-Server-5.1.60-13.1 fails to compile

**URL:** <https://forums.percona.com/t/percona-server-5-1-60-13-1-fails-to-compile/1733>\
**Category:** Other MySQL® Questions\
**Created:** [January 9, 2012, 7:04am UTC](https://forums.percona.com/t/percona-server-5-1-60-13-1-fails-to-compile/1733 "2012-01-09T07:04:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![himbeere](https://avatars.discourse-cdn.com/v4/letter/h/db5fbb/32.png) [@himbeere](https://forums.percona.com/u/himbeere)\
**Post date:** [January 9, 2012, 7:04am UTC](https://forums.percona.com/t/percona-server-5-1-60-13-1-fails-to-compile/1733/1 "2012-01-09T07:04:48Z")

</div>

Hello.

I get the following error:

make[2]: Entering directory `/usr/src/Percona-Server-5.1.60/client' if g++ -DMYSQL_CLIENT_NO_THREADS -DDEFAULT_MYSQL_HOME="\"/usr/local\"" -DMYSQL_DATADIR="\"/usr/local/var\"" -I. -I. -I../include -I../include -I../include -I../regex -g -O2 -fno-implicit-templates -fno-exceptions -fno-rtti -MT mysql.o -MD -MP -MF ".deps/mysql.Tpo" -c -o mysql.o mysql.cc; \ then mv -f ".deps/mysql.Tpo" ".deps/mysql.Po"; else rm -f ".deps/mysql.Tpo"; exit 1; fi mysql.cc:1057:12: error: 'HIST_ENTRY' does not name a type mysql.cc: In function 'int not_in_history(const char*)': mysql.cc:2482:3: error: 'HIST_ENTRY' was not declared in this scope mysql.cc:2482:15: error: 'oldhist' was not declared in this scope mysql.cc:2482:51: error: 'history_get' was not declared in this scope mysql.cc: In function 'void initialize_readline(char*)': mysql.cc:2518:52: error: invalid conversion from 'char**(*)()' to 'char** (*)(const char*, int, int)' mysql.cc:2519:34: error: invalid conversion from 'int (*)(const char*, int)' to 'char* (*)(const char*, int)' mysql.cc:2520:63: error: invalid conversion from 'int (*)()' to 'int (*)(int, int)' mysql.cc:2520:63: error: initializing argument 2 of 'int rl_add_defun(const char*, int (*)(int, int), int)' mysql.cc: In function 'char**new_mysql_completion(const char*, int, int)': mysql.cc:2542:80: error: 'completion_matches' was not declared in this scope make[2]:*** [mysql.o] Error 1 make[2]: Leaving directory `/usr/src/Percona-Server-5.1.60/client’  
make[1]: \*\*\* [all] Error 2  
make[1]: Leaving directory `/usr/src/Percona-Server-5.1.60/client’  
make: \*\*\* [all-recursive] Error 1

This is the first time i have such a problem. 5.1.59 compile fine as 5.5.18 does. What can be the reason for this?

---

<div class="post-metadata">

**Author:** ![jcesario](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@jcesario](https://forums.percona.com/u/jcesario)\
**Post date:** [February 19, 2012, 7:06pm UTC](https://forums.percona.com/t/percona-server-5-1-60-13-1-fails-to-compile/1733/2 "2012-02-19T19:06:30Z")

</div>

Try doing this

./configure  
make clean

Then do your normal install options, such as:  
./configure --your-options  
make  
make install

This issue seems to be resolved in latest version as well.
