rsyslog / liblognorm

a fast samples-based log normalization library
http://www.liblognorm.com
GNU Lesser General Public License v2.1
99 stars 64 forks source link

error compiling on openbsd-6.1/amd64 #258

Open gretel opened 7 years ago

gretel commented 7 years ago

following https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm i end up with:

/usr/bin/ld: warning: libm.so.7.1, needed by /usr/local/lib/liblognorm.so.0.0, not found (try using -rpath or -rpath-link)
lognormalizer-lognormalizer.o: In function `outputEvent':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:116: undefined reference to `ln_fmtEventToCSV'
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:113: undefined reference to `ln_fmtEventToXML'
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:110: undefined reference to `ln_fmtEventToRFC5424'
lognormalizer-lognormalizer.o: In function `handle_generic_option':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:293: undefined reference to `ln_setCtxOpts'
lognormalizer-lognormalizer.o: In function `printVersion':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:284: undefined reference to `ln_hasAdvancedStats'
lognormalizer-lognormalizer.o: In function `handle_generic_option':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:291: undefined reference to `ln_setCtxOpts'
lognormalizer-lognormalizer.o: In function `main':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:481: undefined reference to `ln_setErrMsgCB'
lognormalizer-lognormalizer.o: In function `genDOT':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:275: undefined reference to `ln_genDotPDAGGraph'
lognormalizer-lognormalizer.o: In function `handle_generic_option':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:297: undefined reference to `ln_setCtxOpts'
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:295: undefined reference to `ln_setCtxOpts'
lognormalizer-lognormalizer.o: In function `main':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:513: undefined reference to `ln_fullPdagStats'
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:517: undefined reference to `ln_fullPDagStatsDOT'
lognormalizer-lognormalizer.o: In function `handle_generic_option':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:299: undefined reference to `ln_setCtxOpts'
lognormalizer-lognormalizer.o: In function `main':
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:493: undefined reference to `ln_loadSamplesFromString'
/home/tom/src/sagan/liblognorm/src/lognormalizer.c:508: undefined reference to `ln_displayPDAG'
collect2: ld returned 1 exit status
*** Error 1 in src (Makefile:525 'lognormalizer': @echo "  CCLD    " lognormalizer;/bin/sh ../libtool --silent --tag=CC    --mode=link gcc -...)
*** Error 1 in . (Makefile:484 'all-recursive')
*** Error 1 in /home/tom/src/sagan/liblognorm (Makefile:367 'all')

symlinking libm.so.10.0 to libm.so.7.1 makes the first warning disappear but the error resides. please assist