Jaroslav Fojtik
2011-Dec-05 07:30 UTC
[Samba] Samba compilation problems in samba-3.4.15/lib/tevent/tevent.h
Dears, The original code that does not compile: int tevent_set_debug(struct tevent_context *ev, void (*debug)(void *context, enum tevent_debug_level level, const char *fmt, va_list ap) PRINTF_ATTRIBUTE(3,0), void *context); I do not know what is a purpose of PRINTF_ATTRIBUTE Proposed workaround, that gets compiled: int tevent_set_debug(struct tevent_context *ev, void (*debug)(void *context, enum tevent_debug_level level, const char *fmt, va_list ap), void *context); Proposed workaround hint #2: #ifndef PRINTF_ATTRIBUTE #define PRINTF_ATTRIBUTE(x,y) #endif best regards Jara
Volker Lendecke
2011-Dec-05 08:25 UTC
[Samba] Samba compilation problems in samba-3.4.15/lib/tevent/tevent.h
Hi! On Mon, Dec 05, 2011 at 08:30:55AM +0100, Jaroslav Fojtik wrote:> Dears, > > The original code that does not compile: > > int tevent_set_debug(struct tevent_context *ev, > void (*debug)(void *context, > enum tevent_debug_level level, > const char *fmt, > va_list ap) PRINTF_ATTRIBUTE(3,0), > void *context); > > I do not know what is a purpose of PRINTF_ATTRIBUTE > > > > Proposed workaround, that gets compiled: > > int tevent_set_debug(struct tevent_context *ev, > void (*debug)(void *context, > enum tevent_debug_level level, > const char *fmt, > va_list ap), > void *context);Can you please get us the following information: What platform are you building on, what compiler? Please post your full config.log and make output somewhere for inspection. Does Samba 3.6.2 behave exactly the same? Thanks, 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 http://www.sernet.de, mailto:kontakt at sernet.de