typesafe_cb redefined if we #include both ctdb.h and tdb_compat.h

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Aug 30 08:44:27 MDT 2011


Hi, Rusty!

When trying to compile current Samba master against current
ctdb master I am getting the warning in the attachment.
Probably it is harmless, but to me it looks as if we have
conflicting #defines of the typesafe callbacks. Wouldn't it
be good to rename either the macros in ccan or the macros
included via the ctdb headers?

With best regards,

Volker Lendecke

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
-------------- next part --------------
Compiling lib/ctdbd_conn.c
In file included from /home/vlendec/git/inst/include/ctdb.h:812,
                 from lib/ctdbd_conn.c:31:
/home/vlendec/git/inst/include/ctdb_typesafe_cb.h:90:1: warning: "typesafe_cb" redefined
In file included from ./../lib/tdb_compat/tdb_compat.h:29,
                 from include/util_tdb.h:23,
                 from lib/ctdbd_conn.c:22:
../lib/ccan/../ccan/typesafe_cb/typesafe_cb.h:86:1: warning: this is the location of the previous definition
In file included from /home/vlendec/git/inst/include/ctdb.h:812,
                 from lib/ctdbd_conn.c:31:
/home/vlendec/git/inst/include/ctdb_typesafe_cb.h:131:1: warning: "typesafe_cb_preargs" redefined
In file included from ./../lib/tdb_compat/tdb_compat.h:29,
                 from include/util_tdb.h:23,
                 from lib/ctdbd_conn.c:22:
../lib/ccan/../ccan/typesafe_cb/typesafe_cb.h:108:1: warning: this is the location of the previous definition
In file included from /home/vlendec/git/inst/include/ctdb.h:812,
                 from lib/ctdbd_conn.c:31:
/home/vlendec/git/inst/include/ctdb_typesafe_cb.h:149:1: warning: "typesafe_cb_postargs" redefined
In file included from ./../lib/tdb_compat/tdb_compat.h:29,
                 from include/util_tdb.h:23,
                 from lib/ctdbd_conn.c:22:
../lib/ccan/../ccan/typesafe_cb/typesafe_cb.h:130:1: warning: this is the location of the previous definition


More information about the samba-technical mailing list