Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-1903

LP #924599: percona5.1 compile error on centos5.7


    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:


      **Reported in Launchpad by hch last update 09-01-2013 04:17:37

      (cd .libs && rm -f libmysqlclient_r.la && ln -s ../libmysqlclient_r.la libmysqlclient_r.la)
      if gcc -DDEFAULT_CHARSET_HOME="\"/opt/percona51\"" -DMYSQL_DATADIR="\"/opt/percona51/var\"" -DDEFAULT_HOME_ENV=MYSQL_HOME -DDEFAULT_GROUP_SUFFIX_ENV=MYSQL_GROUP_SUFFIX -DDEFAULT_SYSCONFDIR="\"/opt/percona51/etc\"" -DSHAREDIR="\"/opt/percona51/share/mysql\"" -DDONT_USE_RAID -DMYSQL_CLIENT -I. -I. -I../include -I../include -I../include -g -O2 -DUNIV_LINUX -DUNIV_LINUX -MT conf_to_src.o -MD -MP -MF ".deps/conf_to_src.Tpo" -c -o conf_to_src.o conf_to_src.c; \
      then mv -f ".deps/conf_to_src.Tpo" ".deps/conf_to_src.Po"; else rm -f ".deps/conf_to_src.Tpo"; exit 1; fi
      /bin/sh ../libtool --preserve-dup-deps --tag=CC --mode=link gcc -g -O2 -DUNIV_LINUX -DUNIV_LINUX -rdynamic -o conf_to_src -static conf_to_src.o -lrt -lpthread -lcrypt -lnsl -lm -lpthread -lz
      gcc -g -O2 -DUNIV_LINUX -DUNIV_LINUX -rdynamic -o conf_to_src conf_to_src.o -lrt -lpthread -lcrypt -lnsl -lm -lpthread -lz
      make[2]: Leaving directory `/root/package/Percona-Server-5.1.60/libmysql_r'
      make[1]: Leaving directory `/root/package/Percona-Server-5.1.60/libmysql_r'
      Making all in client
      make[1]: Entering directory `/root/package/Percona-Server-5.1.60/client'
      make all-am
      make[2]: Entering directory `/root/package/Percona-Server-5.1.60/client'
      if g++ -DMYSQL_CLIENT_NO_THREADS -DDEFAULT_MYSQL_HOME="\"/opt/percona51\"" -DMYSQL_DATADIR="\"/opt/percona51/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: error: expected constructor, destructor, or type conversion before * token
      mysql.cc: In function int not_in_history(const char*):
      mysql.cc:2482: error: HIST_ENTRY was not declared in this scope
      mysql.cc:2482: error: oldhist was not declared in this scope
      mysql.cc:2482: error: history_get was not declared in this scope
      mysql.cc: In function void initialize_readline(char*):
      mysql.cc:2518: error: invalid conversion from char** () to char** (const char*, int, int)
      mysql.cc:2519: error: invalid conversion from int (const char*, int) to char* (const char*, int)
      mysql.cc:2520: error: invalid conversion from int () to int (int, int)
      mysql.cc:2520: 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: error: completion_matches was not declared in this scope
      make[2]: *** [mysql.o] Error 1
      make[2]: Leaving directory `/root/package/Percona-Server-5.1.60/client'
      make[1]: *** [all] Error 2
      make[1]: Leaving directory `/root/package/Percona-Server-5.1.60/client'
      make: *** [all-recursive] Error 1

      configure command is
      ./configure --prefix=/opt/percona51

      platform info
      Linux SN-HP 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 17:25:58 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

        Smart Checklist




              • Assignee:
                lpjirasync lpjirasync (Inactive)
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created: