Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug report: #84

Open
damon-kwok opened this issue May 4, 2012 · 0 comments
Open

bug report: #84

damon-kwok opened this issue May 4, 2012 · 0 comments

Comments

@damon-kwok
Copy link

Currently in fedora17 and archlinux on systems, GCC version is 4.7, HandlerSocket source cannot be compiled.

Porting to GCC 4.7:http://gcc.gnu.org/gcc-4.7/porting_to.html


【Fedora17】
[root@gww-fedora HandlerSocket-Plugin-for-MySQL]#make
make all-recursive
make[1]: Entering directory /root/HandlerSocket-Plugin-for-MySQL' Making all in libhsclient make[2]: Entering directory/root/HandlerSocket-Plugin-for-MySQL/libhsclient'
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -g -fno-rtti -fno-exceptions -fPIC -DPIC -static -o libhsclient.la -rpath /usr/local/lib libhsclient_la-config.lo libhsclient_la-escape.lo libhsclient_la-fatal.lo libhsclient_la-hstcpcli.lo libhsclient_la-socket.lo libhsclient_la-string_util.lo
libtool: link: ar cru .libs/libhsclient.a libhsclient_la-config.o libhsclient_la-escape.o libhsclient_la-fatal.o libhsclient_la-hstcpcli.o libhsclient_la-socket.o libhsclient_la-string_util.o
ar: libhsclient_la-config.o: No such file or directory
make[2]: *** [libhsclient.la] Error 1
make[2]: Leaving directory /root/HandlerSocket-Plugin-for-MySQL/libhsclient' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/HandlerSocket-Plugin-for-MySQL'
make: *** [all] Error 2
[root@gww-fedora HandlerSocket-Plugin-for-MySQL]#


【ArchLinux】

[root@gww-vbox HandlerSocket-Plugin-for-MySQL]# ./autogen.sh
Searching libtoolize...
FOUND: libtoolize -> libtoolize
Searching aclocal...
FOUND: aclocal -> aclocal
Searching automake...
FOUND: automake -> automake
Searching autoheader...
FOUND: autoheader -> autoheader
Searching autoconf...
FOUND: autoconf -> autoconf
Running libtoolize ...
libtoolize: putting auxiliary files in .'. libtoolize: copying file./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying filem4/libtool.m4'
libtoolize: copying file m4/ltoptions.m4' libtoolize: copying filem4/ltsugar.m4'
libtoolize: copying file m4/ltversion.m4' libtoolize: copying filem4/lt~obsolete.m4'
Running aclocal ...
Running autoheader...
Running automake ...
automake: warnings are treated as errors
/usr/share/automake-1.12/am/ltlibrary.am: warning: 'handlersocket.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
handlersocket/Makefile.am:3: while processing Libtool library 'handlersocket.la'
/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libhsclient.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
libhsclient/Makefile.am:7: while processing Libtool library 'libhsclient.la'
Running autoconf ...
[root@gww-vbox HandlerSocket-Plugin-for-MySQL]#

[root@gww-vbox HandlerSocket-Plugin-for-MySQL]# ./configure --with-mysql-source=$HOME/Source/mysql/mysql-5.5.23 --with-mysql-bindir=/usr/bin --with-mysql-plugindir=/usr/lib/mysql/plugin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if --enable-mysql-debug is specified... no
checking mysql source... yes: Using /root/Source/mysql/mysql-5.5.23, version 5.5.23
checking mysql binary... yes: Using /usr/bin/mysql_config, version 5.5.23
checking mysql plugin dir... yes: Using /usr/lib/mysql/plugin
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: `handlersocket/Makefile.in'
[root@gww-vbox HandlerSocket-Plugin-for-MySQL]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants