Subject: port-i386/30533: bcmp re-definition in lib/libsa/stand.h causes make of sys/arch/i386/pxeboot to fail
To: None <firstname.lastname@example.org, email@example.com,>
From: None <firstname.lastname@example.org>
Date: 06/15/2005 18:21:00
>Synopsis: bcmp re-definition in lib/libsa/stand.h causes make of sys/arch/i386/pxeboot to fail
>Arrival-Date: Wed Jun 15 18:21:00 +0000 2005
>Originator: John Clark
>Release: CVS snapshots of June 13-15
Metric Systems, Inc.
linux cross build environment
Monday I checked out the latest CVS and began the build world process.
Eventually the build died on compiling 'pxeboot/pxe.c'
The reason seems to be due to a change in 'sys/lib/libsa/stand.h'
In stand.h there are several 'rename' defines, such as:
#define bzero(s, l) memset(s,0,l)
However, between early May and June 13, the following define
has just been blythly inserted into stand.h.
#define bcmp(s1, s2, l ) memcmp(s1, s2, l)
Without any ifdef conditional statements.
This results in a bad macro invocation in 'pxeboot/pxe.c' which
has as one of it's 'arguments' a macro S_SIZE("..."). This macro
expands to place the string, and the following length (strlen(..)) into
the parameter list.
However, because of the redefinition of 'bcmp' in 'stand.h' the macro
expansion of the re-defined 'bcmp' fails with an argument number missmatch.
Remove or create a conditional #ifdef for the re-definition of bcmp
found in stand.h.