hi,
problem when compiling from source. fails in the 'aux' section with
libconfuse.a and compiler option errors:
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
./configure --prefix /usr/local/moonshot LDFLAGS=-Wl,-L/usr/local/moonshot/lib -Wl,-rpath=/usr/local/moonshot/lib CPPFLAGS=-I /usr/local/moonshot/include --with-system-libtool --with-system-libltdl --enable-tls --with-gssapi=/usr/local/moonshot --with-xmltooling=/usr/local/moonshot
configure: WARNING: unrecognized options: --with-system-libtool, --with-system-libltdl, --with-gssapi, --with-xmltooling
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 build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /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... 1966080
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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 ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -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 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... no
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 for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for cfg_init in -lconfuse... yes
checking for event_get_version in -levent_core... yes
checking for bufferevent_openssl_socket_new in -levent_openssl... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint8_t... yes
checking for memset... yes
checking for socket... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libradsec.spec
config.status: creating radius/Makefile
config.status: creating include/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --with-system-libtool, --with-system-libltdl, --with-gssapi, --with-xmltooling
make all-recursive
make[1]: Entering directory `/usr/local/src/moonshot/libradsec/lib'
Making all in radius
make[2]: Entering directory `/usr/local/src/moonshot/libradsec/lib/radius'
make all-am
make[3]: Entering directory `/usr/local/src/moonshot/libradsec/lib/radius'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/moonshot/libradsec/lib/radius'
make[2]: Leaving directory `/usr/local/src/moonshot/libradsec/lib/radius'
Making all in include
make[2]: Entering directory `/usr/local/src/moonshot/libradsec/lib/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/moonshot/libradsec/lib/include'
Making all in .
make[2]: Entering directory `/usr/local/src/moonshot/libradsec/lib'
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -g -I. -I./include -Werror -g -O2 -version-info 1:0:0 -export-symbols radsec.sym -Wl,-L/usr/local/moonshot/lib -Wl,-rpath=/usr/local/moonshot/lib -o libradsec.la -rpath /usr/local/moonshot/lib libradsec_la-avp.lo libradsec_la-compat.lo libradsec_la-conf.lo libradsec_la-conn.lo libradsec_la-debug.lo libradsec_la-err.lo libradsec_la-event.lo libradsec_la-packet.lo libradsec_la-peer.lo libradsec_la-radsec.lo libradsec_la-request.lo libradsec_la-send.lo libradsec_la-tcp.lo libradsec_la-udp.lo libradsec_la-rsp_debug.lo libradsec_la-rsp_hash.lo libradsec_la-rsp_list.lo libradsec_la-rsp_util.lo libradsec_la-tls.lo libradsec_la-rsp_tlscommon.lo radius/libradsec-radius.la -levent_openssl -levent_core -lconfuse
libtool: link: rm -fr .libs/libradsec.ver
libtool: link: echo "{ global:" > .libs/libradsec.ver
libtool: link: cat radsec.sym | sed -e "s/\(.*\)/\1;/" >> .libs/libradsec.ver
libtool: link: echo "local: *; };" >> .libs/libradsec.ver
libtool: link: gcc -shared .libs/libradsec_la-avp.o .libs/libradsec_la-compat.o .libs/libradsec_la-conf.o .libs/libradsec_la-conn.o .libs/libradsec_la-debug.o .libs/libradsec_la-err.o .libs/libradsec_la-event.o .libs/libradsec_la-packet.o .libs/libradsec_la-peer.o .libs/libradsec_la-radsec.o .libs/libradsec_la-request.o .libs/libradsec_la-send.o .libs/libradsec_la-tcp.o .libs/libradsec_la-udp.o .libs/libradsec_la-rsp_debug.o .libs/libradsec_la-rsp_hash.o .libs/libradsec_la-rsp_list.o .libs/libradsec_la-rsp_util.o .libs/libradsec_la-tls.o .libs/libradsec_la-rsp_tlscommon.o -Wl,--whole-archive radius/.libs/libradsec-radius.a -Wl,--no-whole-archive -levent_openssl -levent_core -lconfuse -Wl,-L/usr/local/moonshot/lib -Wl,-rpath=/usr/local/moonshot/lib -Wl,-soname -Wl,libradsec.so.1 -Wl,-version-script -Wl,.libs/libradsec.ver -o .libs/libradsec.so.1.0.0
/usr/bin/ld: /usr/local/lib/libconfuse.a(confuse.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libconfuse.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libradsec.la] Error 1
make[2]: Leaving directory `/usr/local/src/moonshot/libradsec/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/moonshot/libradsec/lib'
make: *** [all] Error 2
Error:(' make -j3',)
alan
|