[ntp:bugs] [Bug 774] New: parsesolaris.c fails to compile because of conflict in symbol ffs
bugzilla at ntp.isc.org
bugzilla at ntp.isc.org
Mon Feb 5 09:17:28 PST 2007
http://bugs.ntp.isc.org/774
Summary: parsesolaris.c fails to compile because of conflict in
symbol ffs
Product: ntp
Version: 4.2.5
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P3
Component: ntpd
AssignedTo: stenn at ntp.org
ReportedBy: brian.utterback at sun.com
CC: bugs at ntp.isc.org
The symbol "ffs" is defined in both string.h and systm.h. This is a longstanding
problem that was fixed by the kludge of making a local copy of the systm.h
include file and changing the definition of ffs to match the one in string.h. This
was safe because nothing in parsesolaris.c used the ffs function.
Unfortunately, the prototype of ffs was recently changed in Solaris, so that the
sed script no longer matches the line.
Rather than attempt to match the line so closely, a better idea is to use wildcard
to be more general and to just delete the line entirely. It is not needed anyway.
So, instead of having:
sed -e 's/ffs(long)/ffs(int)/' < /usr/include/sys/systm.h > sys/systm.h
change it to
sed -e 'ffs(.*)/d' < /usr/include/sys/systm.h > sys/systm.h
--
Brian Utterback <brian.utterback at sun.com>
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the bugs
mailing list