argus client 3.0.7.11 on ubuntu

Carter Bullard carter at qosient.com
Fri Jul 19 09:15:03 EDT 2013


Hey CS Lee,
Seems that the ubuntu linker is very particular about the order
that library paths are specified at linking time.  Had to change
every Makefile in the examples tree, fix is in argus-clients-3.0.7.12
that will be up this weekend.

Carter



On Jul 16, 2013, at 7:01 AM, CS Lee <geek00l at gmail.com> wrote:

> hi Carter,
> 
> No manual found, anyway this is the version of ubuntu  
> 
> lsb_release -a
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:    Ubuntu 12.04.1 LTS
> Release:        12.04
> Codename:       precise
> 
> 
> 
> 
> On Tue, Jul 16, 2013 at 7:00 PM, Carter Bullard <carter at qosient.com> wrote:
> With this line coming from /usr/bin/pcre-config....
> 
>    V_PCRE='-L/usr/lib/x86_64-linux-gnu -lpcreposix -lpcre'
> 
> Are the pcre libraries in /usr/lib/x86_64-linux-gnu ?  If so, do they define the missing routines ?
> Does this work ?
> 
>    % man pcreposix_regexec
> 
> I've got an Ubuntu vm I can test with here.  What version ?
> 
> Carter
> 
> Sent from my iPad
> 
> On Jul 16, 2013, at 6:48 AM, CS Lee <geek00l at gmail.com> wrote:
> 
>> hi Carter,
>> 
>> The readline issue is gone once I installed libreadline6-dev, however the pcre issue still persists -
>> 
>>  grep pcre config.log
>> configure:5808: checking for pcre library
>> configure:5827: checking for pcre-config
>> configure:5843: found /usr/bin/pcre-config
>> configure:5854: result: pcre-config
>> ac_cv_prog_PCRE_CONFIG=pcre-config
>> PCRE_CONFIG='pcre-config'
>> V_PCRE='-L/usr/lib/x86_64-linux-gnu -lpcreposix -lpcre'
>> 
>> grep 'readline' config.log
>> configure:4626: checking readline/readline.h usability
>> configure:4626: checking readline/readline.h presence
>> configure:4626: checking for readline/readline.h
>> ac_cv_header_readline_readline_h=yes
>> V_READLINE='-lreadline'
>> 
>> 
>> The compile error still similar to the one I have sent.
>> 
>> 
>> 
>> On Tue, Jul 16, 2013 at 6:34 PM, Carter Bullard <carter at qosient.com> wrote:
>> Your ./configure run thinks it found the pcre library, and is trying to use it.
>> What does your ./config.log say about pcre ?  Is pcre installed on your machine?
>> Same for the readline libraries.
>> 
>> Carter
>> 
>> Sent from my iPad
>> 
>> On Jul 16, 2013, at 6:19 AM, CS Lee <geek00l at gmail.com> wrote:
>> 
>>> hi Carter,
>>> 
>>> Here's the error I get when compiling on Ubuntu linux -
>>> 
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusGrepUserData':
>>> argus_grep.c:(.text+0x192): undefined reference to `pcreposix_regexec'
>>> argus_grep.c:(.text+0x24e): undefined reference to `pcreposix_regexec'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../../bin/rastrip] Error 1
>>> make[2]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples/rastrip'
>>> making in ./ratop
>>> make[2]: Entering directory `/home/developer/argus-clients-3.0.7.11/examples/ratop'
>>> gcc -O3 -I. -I../../include -I../../common   -DHAVE_CONFIG_H -c ./raclient.c
>>> In file included from ./raclient.c:38:0:
>>> ./racurses.h:87:31: fatal error: readline/readline.h: No such file or directory
>>> compilation terminated.
>>> make[2]: *** [raclient.o] Error 1
>>> make[2]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples/ratop'
>>> making in ./ratimerange
>>> make[2]: Entering directory `/home/developer/argus-clients-3.0.7.11/examples/ratimerange'
>>> gcc -O3 -o ../../bin/ratimerange ratimerange.o -L/usr/lib/x86_64-linux-gnu -lpcreposix -lpcre ../../lib/argus_parse.a ../../lib/argus_common.a ../../lib/argus_client.a -lm   -lpthread  -lGeoIP  -lz
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusHandleDatum':
>>> argus_util.c:(.text+0x2e97c): undefined reference to `pcreposix_regexec'
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusProcessLabelOptions':
>>> argus_util.c:(.text+0x30794): undefined reference to `pcreposix_regcomp'
>>> argus_util.c:(.text+0x307ce): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_client.o): In function `ArgusParseAggregator':
>>> argus_client.c:(.text+0x172af): undefined reference to `pcreposix_regcomp'
>>> argus_client.c:(.text+0x1741a): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusInitializeGrep':
>>> argus_grep.c:(.text+0x5b): undefined reference to `pcreposix_regcomp'
>>> argus_grep.c:(.text+0xae): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusGrepUserData':
>>> argus_grep.c:(.text+0x192): undefined reference to `pcreposix_regexec'
>>> argus_grep.c:(.text+0x24e): undefined reference to `pcreposix_regexec'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../../bin/ratimerange] Error 1
>>> make[2]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples/ratimerange'
>>> making in ./ratemplate
>>> make[2]: Entering directory `/home/developer/argus-clients-3.0.7.11/examples/ratemplate'
>>> gcc -O3 -o ../../bin/ratemplate ratemplate.o -L/usr/lib/x86_64-linux-gnu -lpcreposix -lpcre ../../lib/argus_parse.a ../../lib/argus_common.a ../../lib/argus_client.a -lm   -lpthread  -lGeoIP  -lz
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusHandleDatum':
>>> argus_util.c:(.text+0x2e97c): undefined reference to `pcreposix_regexec'
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusProcessLabelOptions':
>>> argus_util.c:(.text+0x30794): undefined reference to `pcreposix_regcomp'
>>> argus_util.c:(.text+0x307ce): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_client.o): In function `ArgusParseAggregator':
>>> argus_client.c:(.text+0x172af): undefined reference to `pcreposix_regcomp'
>>> argus_client.c:(.text+0x1741a): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusInitializeGrep':
>>> argus_grep.c:(.text+0x5b): undefined reference to `pcreposix_regcomp'
>>> argus_grep.c:(.text+0xae): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusGrepUserData':
>>> argus_grep.c:(.text+0x192): undefined reference to `pcreposix_regexec'
>>> argus_grep.c:(.text+0x24e): undefined reference to `pcreposix_regexec'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../../bin/ratemplate] Error 1
>>> make[2]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples/ratemplate'
>>> making in ./ramysql
>>> make[2]: Entering directory `/home/developer/argus-clients-3.0.7.11/examples/ramysql'
>>> gcc -O3 -o ../../bin/rasql rasql.o -L/usr/lib/x86_64-linux-gnu -lpcreposix -lpcre  -L/usr/lib/mysql -lmysqlclient_r  ../../lib/argus_parse.a ../../lib/argus_common.a ../../lib/argus_client.a -lm   -lpthread  -lGeoIP  -lz
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusHandleDatum':
>>> argus_util.c:(.text+0x2e97c): undefined reference to `pcreposix_regexec'
>>> ../../lib/argus_common.a(argus_util.o): In function `ArgusProcessLabelOptions':
>>> argus_util.c:(.text+0x30794): undefined reference to `pcreposix_regcomp'
>>> argus_util.c:(.text+0x307ce): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_client.o): In function `ArgusParseAggregator':
>>> argus_client.c:(.text+0x172af): undefined reference to `pcreposix_regcomp'
>>> argus_client.c:(.text+0x1741a): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusInitializeGrep':
>>> argus_grep.c:(.text+0x5b): undefined reference to `pcreposix_regcomp'
>>> argus_grep.c:(.text+0xae): undefined reference to `pcreposix_regerror'
>>> ../../lib/argus_client.a(argus_grep.o): In function `ArgusGrepUserData':
>>> argus_grep.c:(.text+0x192): undefined reference to `pcreposix_regexec'
>>> argus_grep.c:(.text+0x24e): undefined reference to `pcreposix_regexec'
>>> collect2: ld returned 1 exit status
>>> make[2]: *** [../../bin/rasql] Error 1
>>> make[2]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples/ramysql'
>>> make[1]: *** [all] Error 2
>>> make[1]: Leaving directory `/home/developer/argus-clients-3.0.7.11/examples'
>>> make: *** [all] Error 2
>>> 
>>> 
>>> -- 
>>> Best Regards,
>>> 
>>> CS Lee<geek00L[at]gmail.com>
>>> 
>>> http://geek00l.blogspot.com
>>> http://defcraft.net
>> 
>> 
>> 
>> -- 
>> Best Regards,
>> 
>> CS Lee<geek00L[at]gmail.com>
>> 
>> http://geek00l.blogspot.com
>> http://defcraft.net
> 
> 
> 
> -- 
> Best Regards,
> 
> CS Lee<geek00L[at]gmail.com>
> 
> http://geek00l.blogspot.com
> http://defcraft.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130719/072f897e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6837 bytes
Desc: not available
URL: <https://pairlist1.pair.net/pipermail/argus/attachments/20130719/072f897e/attachment.bin>


More information about the argus mailing list