s4/messaging: Fix undefined reference in linking libMESSAGING-samba4.so
authorAnoop C S <anoopcs@redhat.com>
Thu, 27 Dec 2018 12:49:42 +0000 (18:19 +0530)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 19 Jan 2019 23:31:25 +0000 (00:31 +0100)
commit08ba013a2b8b2cf9fc17fdcb3d107e1434709036
tree9b968c400213d5e5fb2c64ac93e7a7209419a4c1
parent60aa7b3634e3312e92955779f3c9d339456c4a95
s4/messaging: Fix undefined reference in linking libMESSAGING-samba4.so

Early check for DEVELOPER or ENABLE_SELFTEST configure options inside
messaging_handlers.c leaves us with the following undefined reference
linkage error:

[1315/3712] Linking bin/default/source4/lib/messaging/libMESSAGING-samba4.so
/usr/bin/ld: source4/lib/messaging/messaging.c.4.o: in function
`imessaging_init_internal':
/root/samba.git/bin/default/../../source4/lib/messaging/messaging.c:472:
undefined reference to `imessaging_register_extra_handlers'
collect2: error: ld returned 1 exit status

This happened due to failure in including "includes.h" before checking
the above mentioned configure options.

Signed-off-by: Anoop C S <anoopcs@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/lib/messaging/messaging_handlers.c