Debian Lenny compilation error

Michael Wood esiotrot at
Tue Oct 5 08:48:11 MDT 2010

On 5 October 2010 13:08, Zahari Zahariev <zahari.zahariev at> wrote:
>  On 10/5/10 1:31 PM, Matthieu Patou wrote:
>>  On 05/10/2010 12:41, Zahari Zahariev wrote:
>>> Dear committers (from past 12h),
>>> I have one machine Debian Lenny (in my local build farm) with GNU
>>> compiler - gcc version 4.3.2 (Debian 4.3.2-1.1). Since very early this
>>> morning it produces the following compilation error:
>>> [ 726/2150] Compiling heimdal/lib/krb5/eai_to_heim_errno.c
>>> [ 727/2150] Compiling heimdal/lib/krb5/error_string.c
>>> ../heimdal/lib/krb5/error_string.c: In function ‘krb5_get_error_message’:
>>> ../heimdal/lib/krb5/error_string.c:248: error: implicit declaration of
>>> function ‘com_right_r’
>>> ../heimdal/lib/krb5/error_string.c:248: warning: assignment makes pointer
>>> from integer without a cast
>>> Waf: Leaving directory `/root/samba-master/source4/bin'
>>> Build failed: -> task failed (err #1):
>>> {task: cc error_string.c -> error_string_101.o}
>>> make: *** [all] Error 1
>>> Does someone recognize the origin of this fault or is it just me? I do
>>> not have this problem on any other machine (all others are Ubuntu
>>> 9.10/10.04).
>> Try to remove the bin/default tree, I had this pb more than once when
>> dealing with the update of heimdal, maybe some dependency not correctly
>> recalculated (or described) in waf.
>> Matthieu
> I even "rm -rf samba-master" and got it again with git but it did not help.
> Strangely Kamen on Ubuntu 9.04 (older one) has the same problem.

Maybe it's picking up an old copy of com_err.h in /usr/include?

My /usr/include/com_err.h contains this:

/* Provided for Heimdall compatibility */
extern const char *com_right(struct et_list *list, long code);
extern const char *com_right_r(struct et_list *list, long code, char
*str, size_t len);
extern void initialize_error_table_r(struct et_list **list,
				     const char **messages,
				     int num_errors,
				     long base);
extern void free_error_table(struct et_list *et);

Does yours contain those?  I don't think the build *should* be using
/usr/include/com_err.h instead of source4/heimdal/lib/com_err/*, of

Michael Wood <esiotrot at>

More information about the samba-technical mailing list