Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1058289

Summary: FTBFS: omelasticsearch.c:611:39: error: 'mutHTTPReqFail' undeclared (first use in this function)
Product: [Fedora] Fedora Reporter: Karsten Hopp <karsten>
Component: rsyslogAssignee: Tomas Heinrich <theinric>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwa, jlieskov, lkundrak, mah.darade, pvrabec, theinric
Target Milestone: ---   
Target Release: ---   
Hardware: powerpc   
OS: Linux   
Whiteboard:
Fixed In Version: rsyslog-7.4.7-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-13 13:18:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1071880    
Attachments:
Description Flags
updated package none

Description Karsten Hopp 2014-01-27 12:55:04 UTC
Description of problem:
make[2]: Entering directory `/builddir/build/BUILD/rsyslog-7.4.7/plugins/omelasticsearch'
  CC     omelasticsearch_la-omelasticsearch.lo
In file included from ../../runtime/prop.h:25:0,
                 from ../../runtime/glbl.h:35,
                 from ../../runtime/stream.h:70,
                 from ../../runtime/obj.h:48,
                 from ../../runtime/rsyslog.h:525,
                 from omelasticsearch.c:26:
omelasticsearch.c: In function 'curlPost':
omelasticsearch.c:611:39: error: 'mutHTTPReqFail' undeclared (first use in this function)
    STATSCOUNTER_INC(indexHTTPReqFail, mutHTTPReqFail);
                                       ^
../../runtime/atomic.h:205:22: note: in definition of macro 'ATOMIC_INC_uint64'
   pthread_mutex_lock(phlpmut); \
                      ^
omelasticsearch.c:611:4: note: in expansion of macro 'STATSCOUNTER_INC'
    STATSCOUNTER_INC(indexHTTPReqFail, mutHTTPReqFail);
    ^
omelasticsearch.c:611:39: note: each undeclared identifier is reported only once for each function it appears in
    STATSCOUNTER_INC(indexHTTPReqFail, mutHTTPReqFail);
                                       ^
../../runtime/atomic.h:205:22: note: in definition of macro 'ATOMIC_INC_uint64'
   pthread_mutex_lock(phlpmut); \
                      ^
omelasticsearch.c:611:4: note: in expansion of macro 'STATSCOUNTER_INC'
    STATSCOUNTER_INC(indexHTTPReqFail, mutHTTPReqFail);
    ^
omelasticsearch.c: In function 'modInit':
omelasticsearch.c:1004:33: error: 'mutCtrIndexSubmit' undeclared (first use in this function)
  STATSCOUNTER_INIT(indexSubmit, mutCtrIndexSubmit);
                                 ^
../../runtime/atomic.h:225:59: note: in definition of macro 'INIT_ATOMIC_HELPER_MUT64'
 # define INIT_ATOMIC_HELPER_MUT64(x) pthread_mutex_init(&(x), NULL)
                                                           ^
omelasticsearch.c:1004:2: note: in expansion of macro 'STATSCOUNTER_INIT'
  STATSCOUNTER_INIT(indexSubmit, mutCtrIndexSubmit);
  ^
omelasticsearch.c:1007:35: error: 'mutCtrIndexHTTPFail' undeclared (first use in this function)
  STATSCOUNTER_INIT(indexHTTPFail, mutCtrIndexHTTPFail);
                                   ^
../../runtime/atomic.h:225:59: note: in definition of macro 'INIT_ATOMIC_HELPER_MUT64'
 # define INIT_ATOMIC_HELPER_MUT64(x) pthread_mutex_init(&(x), NULL)
                                                           ^
omelasticsearch.c:1007:2: note: in expansion of macro 'STATSCOUNTER_INIT'
  STATSCOUNTER_INIT(indexHTTPFail, mutCtrIndexHTTPFail);
  ^
omelasticsearch.c:1010:38: error: 'mutCtrIndexHTTPReqFail' undeclared (first use in this function)
  STATSCOUNTER_INIT(indexHTTPReqFail, mutCtrIndexHTTPReqFail);
                                      ^
../../runtime/atomic.h:225:59: note: in definition of macro 'INIT_ATOMIC_HELPER_MUT64'
 # define INIT_ATOMIC_HELPER_MUT64(x) pthread_mutex_init(&(x), NULL)
                                                           ^
omelasticsearch.c:1010:2: note: in expansion of macro 'STATSCOUNTER_INIT'
  STATSCOUNTER_INIT(indexHTTPReqFail, mutCtrIndexHTTPReqFail);
  ^
omelasticsearch.c:1013:33: error: 'mutCtrIndexESFail' undeclared (first use in this function)
  STATSCOUNTER_INIT(indexESFail, mutCtrIndexESFail);
                                 ^
../../runtime/atomic.h:225:59: note: in definition of macro 'INIT_ATOMIC_HELPER_MUT64'
 # define INIT_ATOMIC_HELPER_MUT64(x) pthread_mutex_init(&(x), NULL)
                                                           ^
omelasticsearch.c:1013:2: note: in expansion of macro 'STATSCOUNTER_INIT'
  STATSCOUNTER_INIT(indexESFail, mutCtrIndexESFail);
  ^
make[2]: *** [omelasticsearch_la-omelasticsearch.lo] Error 1

Version-Release number of selected component (if applicable):
rsyslog-7.4.7-1.fc21

How reproducible:
always

Steps to Reproduce:
1. ppc-koji build --scratch f21 rsyslog-7.4.7-1.fc21.src.rpm
2.
3.

Actual results:
http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=1626688

Expected results:


Additional info:

Comment 1 Karsten Hopp 2014-02-09 10:15:02 UTC
Any news here ? This is becoming urgent as rsyslog gets pulled into the buildroots of more than 750 other packages and is blocking those builds.

I can give you access to a PPC machine if that would help. Just send me your public ssh key and reference this bugzilla in the mail.

Comment 2 Tomas Heinrich 2014-02-09 20:42:13 UTC
Created attachment 861133 [details]
updated package

Here's a patched srpm. If you can confirm it builds cleanly, I'll push the change with the next update. (Which should happen soon.)

Comment 3 Karsten Hopp 2014-02-13 13:18:16 UTC
Thanks a lot for that srpm. A scratch build succeeded.
But it looks like an update isn't necessary anymore, Lubomir Rintel has already built a new version: http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=219966

Comment 4 Tomas Heinrich 2014-02-13 13:53:59 UTC
*** Bug 1061319 has been marked as a duplicate of this bug. ***

Comment 5 Tomas Heinrich 2014-02-13 13:57:23 UTC
(In reply to Karsten Hopp from comment #3)
> Thanks a lot for that srpm. A scratch build succeeded.
> But it looks like an update isn't necessary anymore, Lubomir Rintel has
> already built a new version:
> http://ppc.koji.fedoraproject.org/koji/buildinfo?buildID=219966

Yeah, he beat me to it.
Good to hear it builds for you.