Tomas Pluskal wrote:
When I run simple "make" in usr.bin/getconf, I get this:
awk '/^[_A-Z]/ { print; }' confstr.gperf | sed -e 's/,$//' >confstr.names
awk '/^[_A-Z]/ { print; }' limits.gperf | sed -e 's/,$//' >limits.names
awk '/^[_A-Z]/ { print; }' sysconf.gperf | sed -e 's/,$//' >sysconf.names
cat confstr.names limits.names sysconf.names >conflicting.names
sort -u conflicting.names >unique.names
Name conflicts found!
*** Error code 1

As you can see, it's doing this:
- get all lines from *.gperf that begin with _ or A-Z (identifiers?)
- check if all these lines are unique

But for example in sysconf.gperf (from CVS) there is:
int
find_sysconf(const char *name, int *key)

That simple "int" on first line is conflicting with another "int" from
another function's declaration. What I can't understand is, how is it
possible that build went ok ???
You can override a definition in a argument list. The only comparison would be with modules that call find_sysconf. You do that all of the time with things like (int)a.

Look in the stable archives for gperf. I have to go someplace but I have a visual recall of seeing problems and a fix for gperf. It will be 3 or 4 hours before I get back.

Kent

Tomas Pluskal


I cvsuped RELENG_4 and src-all after reading your message. I did not
have any conflicts. I am suspecting identical names that may be a
carry over from older builds. My build went like this (ignore the wraps)

gzip -cn /usr/src/usr.bin/gensetdefs/gensetdefs.8 > gensetdefs.8.gz
===> usr.bin/getconf
awk '/^[_A-Z]/ { print; }' /usr/src/usr.bin/getconf/confstr.gperf |
sed -e 's/,$//' >confstr.names
awk '/^[_A-Z]/ { print; }' /usr/src/usr.bin/getconf/limits.gperf | sed
-e 's/,$//' >limits.names
awk '/^[_A-Z]/ { print; }' /usr/src/usr.bin/getconf/sysconf.gperf |
sed -e 's/,$//' >sysconf.names
cat confstr.names limits.names sysconf.names >conflicting.names
sort -u conflicting.names >unique.names
cc -O -pipe  -I/usr/src/usr.bin/getconf -DSTABLE    -c confstr.c



.


--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to