[Lognorm] libee 0.4.0 compilation problems on Centos 5.8

Gary gdriggs at gmail.com
Mon Mar 19 19:37:32 CET 2012


This is my target platform because that's currently collecting all our
syslogs for splunk (and eventually sending them to sagan as well if I can
get past this hurdle).

I've compiled libestr and installed it in /usr/local. The configuration of
libee seems to go well.

$ LIBESTR_CFLAGS=-I/usr/local/include LIBESTR_LIBS=-L/usr/local/lib
 ./configure
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 whether gcc and cc understand -c and -o together... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
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... 98304
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... 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 for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBESTR... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libee.pc
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/libee/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
*****************************************************
libee will be compiled with the following settings:

Debug mode enabled:          no
Testbench enabled:           yes


However, compiling is another matter...

$ make
make  all-recursive
make[1]: Entering directory `/usr/local/src/libee-0.4.0'
Making all in tests
make[2]: Entering directory `/usr/local/src/libee-0.4.0/tests'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/libee-0.4.0/tests'
Making all in include
make[2]: Entering directory `/usr/local/src/libee-0.4.0/include'
Making all in libee
make[3]: Entering directory `/usr/local/src/libee-0.4.0/include/libee'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/local/src/libee-0.4.0/include/libee'
make[3]: Entering directory `/usr/local/src/libee-0.4.0/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/src/libee-0.4.0/include'
make[2]: Leaving directory `/usr/local/src/libee-0.4.0/include'
Making all in src
make[2]: Entering directory `/usr/local/src/libee-0.4.0/src'
  CC     libee_la-cjson.lo
  CC     libee_la-ctx.lo
  CC     libee_la-tag.lo
  CC     libee_la-event.lo
  CC     libee_la-json_event.lo
  CC     libee_la-value.lo
value.c: In function ‘ee_newValue’:
value.c:37: warning: unused parameter ‘ctx’
  CC     libee_la-tagbucket.lo
  CC     libee_la-field.lo
field.c: In function ‘ee_getFieldValueAsStr’:
field.c:182: warning: ‘str’ may be used uninitialized in this function
  CC     libee_la-fieldbucket.lo
  CC     libee_la-primitivetype.lo
  CC     libee_la-int_dec.lo
  CC     libee_la-json_dec.lo
  CC     libee_la-apache_dec.lo
apache_dec.c: In function ‘ee_newApache’:
apache_dec.c:37: warning: unused parameter ‘ctx’
apache_dec.c: In function ‘ee_apacheAddName’:
apache_dec.c:71: warning: unused parameter ‘ctx’
apache_dec.c: In function ‘processLn’:
apache_dec.c:205: warning: unused variable ‘value’
apache_dec.c: In function ‘ee_apacheDec’:
apache_dec.c:143: warning: ‘r’ may be used uninitialized in this function
  CC     libee_la-syslog_enc.lo
  CC     libee_la-json_enc.lo
  CC     libee_la-csv_enc.lo
csv_enc.c: In function ‘ee_AddName’:
csv_enc.c:66: warning: unused parameter ‘ctx’
  CC     libee_la-xml_enc.lo
xml_enc.c: In function ‘ee_addValue_XML’:
xml_enc.c:60: warning: unused variable ‘j’
xml_enc.c:59: warning: unused variable ‘numbuf’
xml_enc.c: At top level:
xml_enc.c:40: warning: ‘hexdigit’ defined but not used
  CCLD   libee.la
  CC     libee_convert-convert.o
  CCLD   libee-convert
libee_convert-convert.o: In function `cbNewEvt':
/usr/local/src/libee-0.4.0/src/convert.c:109: undefined reference to
`es_str2cstr'
/usr/local/src/libee-0.4.0/src/convert.c:112: undefined reference to
`es_deleteStr'
/usr/local/src/libee-0.4.0/src/convert.c:114: undefined reference to
`es_str2cstr'
/usr/local/src/libee-0.4.0/src/convert.c:117: undefined reference to
`es_deleteStr'
/usr/local/src/libee-0.4.0/src/convert.c:119: undefined reference to
`es_str2cstr'
/usr/local/src/libee-0.4.0/src/convert.c:122: undefined reference to
`es_deleteStr'
/usr/local/src/libee-0.4.0/src/convert.c:86: undefined reference to
`es_str2cstr'
/usr/local/src/libee-0.4.0/src/convert.c:89: undefined reference to
`es_deleteStr'
libee_convert-convert.o: In function `cbGetLine':
/usr/local/src/libee-0.4.0/src/convert.c:151: undefined reference to
`es_newStrFromCStr'
/usr/local/src/libee-0.4.0/src/convert.c:156: undefined reference to
`es_unescapeStr'
libee_convert-convert.o: In function `main':
/usr/local/src/libee-0.4.0/src/convert.c:218: undefined reference to
`es_newStrFromCStr'
/usr/local/src/libee-0.4.0/src/convert.c:221: undefined reference to
`es_newStrFromCStr'
/usr/local/src/libee-0.4.0/src/convert.c:248: undefined reference to
`es_str2cstr'
/usr/local/src/libee-0.4.0/src/convert.c:263: undefined reference to
`es_str2cstr'
../src/.libs/libee.so: undefined reference to `es_addBuf'
../src/.libs/libee.so: undefined reference to `es_strbufcmp'
../src/.libs/libee.so: undefined reference to `es_newStrFromSubStr'
../src/.libs/libee.so: undefined reference to `es_addChar'
../src/.libs/libee.so: undefined reference to `es_newStr'
collect2: ld returned 1 exit status
make[2]: *** [libee-convert] Error 1
make[2]: Leaving directory `/usr/local/src/libee-0.4.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/libee-0.4.0'
make: *** [all] Error 2


Any ideas what I may be doing wrong?

much thanks,
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.adiscon.net/pipermail/lognorm/attachments/20120319/6776f02e/attachment.htm>


More information about the Lognorm mailing list