"make check" fails with error

Everything related with getting rsyslog up and running (but not beyond that point ;))

Moderator: rgerhards

Google Ads


"make check" fails with error

Postby grnadav » Tue Nov 08, 2016 1:21 pm

Hello

I've compiled rsyslog 8.22.0
Code: Select all
./configure \
--enable-elasticsearch=yes \
--enable-imptcp=yes \
--enable-diagtools=yes \
--enable-usertools=yes \
--enable-testbench=yes \
--enable-extended-tests=yes \
--enable-imdiag


And

Code: Select all
make


but when I run
Code: Select all
make check


I get error from underlying tcpflood:

Code: Select all
tcpflood-tcpflood.o: In function `closeConnections':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:415: undefined reference to `relpEngineCltDestruct'
tcpflood-tcpflood.o: In function `openConn':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:279: undefined reference to `relpEngineCltConstruct'
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:281: undefined reference to `relpCltConnect'
tcpflood-tcpflood.o: In function `openConnections':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:358: undefined reference to `relpEngineCltDestruct'
tcpflood-tcpflood.o: In function `sendMessages':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:620: undefined reference to `relpCltSendSyslog'
tcpflood-tcpflood.o: In function `main':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:1185: undefined reference to `relpEngineDestruct'
tcpflood-tcpflood.o: In function `initRELP_PLAIN':
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:231: undefined reference to `relpEngineConstruct'
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:232: undefined reference to `relpEngineSetDbgprint'
/home/sk4admin/rsyslog-8.22.0/tests/tcpflood.c:234: undefined reference to `relpEngineSetEnableCmd'
collect2: error: ld returned 1 exit status
Makefile:1929: recipe for target 'tcpflood' failed
make[2]: *** [tcpflood] Error 1
make[2]: Leaving directory '/home/sk4admin/rsyslog-8.22.0/tests'
Makefile:4697: recipe for target 'check-am' failed
make[1]: *** [check-am] Error 2
make[1]: Leaving directory '/home/sk4admin/rsyslog-8.22.0/tests'
Makefile:797: recipe for target 'check-recursive' failed
make: *** [check-recursive] Error 1


Any help will be much appreciated
grnadav
New
 
Posts: 2
Joined: Tue Nov 08, 2016 1:16 pm

Urgent Question?

  • Pulling out your Hair?
  • Wasting Time and Money?
  • Deadline Approaching?

Re: "make check" fails with error

Postby grnadav » Tue Nov 08, 2016 1:42 pm

The solution was to add the flag
Code: Select all
--enable-relp=yes

to the configure (and also required having flex and yacc packages)
so the full configure command was:
Code: Select all
./configure \
--enable-elasticsearch=yes \
--enable-imptcp=yes \
--enable-diagtools=yes \
--enable-usertools=yes \
--enable-testbench=yes \
--enable-extended-tests=yes \
--enable-imdiag=yes \
--enable-relp=yes
grnadav
New
 
Posts: 2
Joined: Tue Nov 08, 2016 1:16 pm

Google Ads



Return to Installation

Who is online

Users browsing this forum: No registered users and 1 guest

cron