Open lnxus opened 9 years ago
It looks like GitHub won't let me upload a log, so I'll paste it here.
Fetching origin
automake :
autoconfg:
Bootstrapping
Autotool bootstrapping complete.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gawk... (cached) gawk
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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /usr/bin/sed
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC 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.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether -lc should be explicitly linked in... no
creating libtool
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking whether to enable -Wall... no
checking for kstat_lookup in -lkstat... no
checking for gethostbyname in -lnsl... yes
checking for socket in -lsocket... no
checking for floor in -lm... yes
checking for pthread_exit in -lpthread... yes
checking for clock_gettime in -lrt... yes
checking for deflate in -lz... yes
checking libtool... checking for lt_dlinit in -lltdl... yes
checking for ANSI C header files... (cached) yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for unsigned long long... yes
checking for long long... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking return type of signal handlers... void
checking for gettimeofday... yes
checking for strerror... yes
checking for strtoll... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_read_info in -lpng... yes
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for gdImageCreateFromPng in -lgd... yes
checking pgsql... checking for PQconnectdb in -lpq... no
checking mysql... checking for my_thread_init in -lmysqlclient_r... no
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for CRYPTO_free in -lcrypto... yes
checking for CRYPTO_free in -ldes... no
checking for snmp_timeout in -lnetsnmp... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cgilib-0.4/Makefile
config.status: creating etc/Makefile
config.status: creating src/Makefile
config.status: creating contrib/Makefile
config.status: creating etc/createdb
config.status: creating etc/rtgtargmkr.pl
config.status: creating etc/common.php
config.status: creating man/rtgplot.1
config.status: creating man/rtgpoll.1
config.status: creating config/config.h
config.status: executing depfiles commands
Making all in cgilib-0.4
make[1]: Entering directory '/home/build/rtg2-20150209/src/RTG2/cgilib-0.4'
gcc -DHAVE_CONFIG_H -I. -I../config -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT cgi.o -MD -MP -MF .deps/cgi.Tpo -c -o cgi.o cgi.c
mv -f .deps/cgi.Tpo .deps/cgi.Po
rm -f libcgi.a
ar cru libcgi.a cgi.o
ranlib libcgi.a
make[1]: Leaving directory '/home/build/rtg2-20150209/src/RTG2/cgilib-0.4'
Making all in src
make[1]: Entering directory '/home/build/rtg2-20150209/src/RTG2/src'
/bin/sh ../config/ylwrap rtgtarg.y y.tab.c rtgtarg.c y.tab.h echo rtgtarg.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/
y.output rtgtarg.output -- bison -y -d
updating rtgtarg.h
make all-am
make[2]: Entering directory '/home/build/rtg2-20150209/src/RTG2/src'
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtgsnmp.o -MD -MP -MF .deps/rtgsnmp.Tpo -c -o rtgsnmp.o rtgsnmp.c
mv -f .deps/rtgsnmp.Tpo .deps/rtgsnmp.Po
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtgdbi.o -MD -MP -MF .deps/rtgdbi.Tpo -c -o rtgdbi.o rtgdbi.c
mv -f .deps/rtgdbi.Tpo .deps/rtgdbi.Po
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtgpoll.o -MD -MP -MF .deps/rtgpoll.Tpo -c -o rtgpoll.o rtgpoll.c
mv -f .deps/rtgpoll.Tpo .deps/rtgpoll.Po
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtgutil.o -MD -MP -MF .deps/rtgutil.Tpo -c -o rtgutil.o rtgutil.c
mv -f .deps/rtgutil.Tpo .deps/rtgutil.Po
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtgtarg.o -MD -MP -MF .deps/rtgtarg.Tpo -c -o rtgtarg.o rtgtarg.c
mv -f .deps/rtgtarg.Tpo .deps/rtgtarg.Po
/bin/sh ../config/ylwrap rtggram.l lex.yy.c rtggram.c -- flex
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtggram.o -MD -MP -MF .deps/rtggram.Tpo -c -o rtggram.o rtggram.c
mv -f .deps/rtggram.Tpo .deps/rtggram.Po
gcc -DHAVE_CONFIG_H -I. -I../config -I../cgilib-0.4 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -I/usr/include/mysql -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -MT rtghash.o -MD -MP -MF .deps/rtghash.Tpo -c -o rtghash.o rtghash.c
mv -f .deps/rtghash.Tpo .deps/rtghash.Po
/bin/sh ../libtool --mode=link gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -rpath '/usr/lib' -L/usr/local/ssl/lib -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64 -Wl,-O1,--sort-common,--as-needed,-z,relro -o rtgpoll rtgsnmp.o rtgdbi.o rtgpoll.o rtgutil.o rtgtarg.o rtggram.o rtghash.o -lfl -lnetsnmp -lcrypto -lgd -lpng -lltdl -lz -lrt -lpthread -lm -lnsl
mkdir .libs
gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -o rtgpoll rtgsnmp.o rtgdbi.o rtgpoll.o rtgutil.o rtgtarg.o rtggram.o rtghash.o -L/usr/local/ssl/lib -L/usr/lib64 -lfl -lnetsnmp -lcrypto -lgd -lpng -lltdl -lz -lrt -lpthread -lm -lnsl -Wl,--rpath -Wl,/usr/lib
Makefile:518: recipe for target 'rtgpoll' failed
make[2]: Leaving directory '/home/build/rtg2-20150209/src/RTG2/src'
Makefile:386: recipe for target 'all' failed
make[1]: Leaving directory '/home/build/rtg2-20150209/src/RTG2/src'
Makefile:471: recipe for target 'all-recursive' failed
Compiles now with this patch:
diff --git a/configure.in b/configure.in index 4e4a937..0736f11 100644 --- a/configure.in +++ b/configure.in @@ -261,7 +261,7 @@ DBD_DRIVER="mysql" LDFLAGS="-L$MYSQL_LIB_DIR $LDFLAGS" CPPFLAGS="$CPPFLAGS -I$MYSQL_INC_DIR"
-AC_CHECK_LIB(mysqlclient_r, my_thread_init, +AC_CHECK_LIB(mysqlclient_r, mysql_thread_init, [ LIBS="-lmysqlclient_r $LIBS" ltlibraries="librtgmysql.la $ltlibraries" ], AC_MSG_WARN(Cannot link with thread-safe MySQL lib (libmysqlclient_r)))
Hi,
Can you do a pull-request for this patch ? It will be better to follow and test it.
Thanks
Hello, I'm getting errors compiling the RTG2 source code on Arch Linux against MariaDB 10.0.16. Build errors are attached.
Any assistance would be appreciated.
Thanks,
Dale