The same function
struct oh_event *oh_dup_event(struct oh_event *old_event)
exists in openhpid/event.c also
If we compile with --disable-shared the compile fails because of this duplicate definition.
It succeeds if we remove the function from utils/event_utils.
I see no duplicate definition in source code.
Suspect there is double linking of the same static library.
Right?
I do not know how it was not caught but the
struct oh_event *oh_dup_event(struct oh_event *old_event)
function exists in
utils/event_utils.c
and
openhpid/event.c
We could remove it from utils/event_utils.c
Ah, right!
Well, plug-ins use the function, so the right place for the function is in the utils library.
I removed it from openhpid/event.c in trunk (rev. #7337)
Does it work for you now?
The change was included in 3.0.0.