Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 1997 19:28:23 +0200
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Subject:   #define conflict in #include files
Message-ID:  <19970507192823.63776@keltia.freenix.fr>

next in thread | raw e-mail | index | archive | help
After the recent #include changes (see my other report where reverting to
older versions of ypcnlt.h & yp_prot.h fixed "make world"), there is a name
conflict between <nlist.h> which defines N_SIZE to 0x0c and
usr.bin/find/find.h which uses N_SIZE as an enum member...

203 [19:18] root@keltia:usr.bin/find# make
cc -O -pipe -D_NEW_VFSCONF   -c /src/src/usr.bin/find/find.c
In file included from /src/src/usr.bin/find/find.c:51:
/src/src/usr.bin/find/find.h:45: parse error before `0x0c'
*** Error code 1

Stop.
205 [19:20] root@keltia:usr.bin/find# grep 0x0c ../../include/*.h
../../include/nlist.h:#define   N_SIZE  0x0c            /* pseudo type, defines a symbol's size */
207 [19:20] root@keltia:usr.bin/find# cd ../../include/
210 [19:20] root@keltia:src/include# grep nlist\\.h *
Makefile:       ndbm.h netdb.h nl_types.h nlist.h paths.h pthread.h pthread_np.h pwd.h \
a.out.h:#include <nlist.h>
fts.h:#include <nlist.h>
kvm.h:#include <nlist.h>
link.h:#include <nlist.h>
nlist.h: *      @(#)nlist.h     8.2 (Berkeley) 1/21/94
nlist.h: *      $Id: nlist.h,v 1.5 1997/02/23 09:17:14 peter Exp $
nlist.h: * nlist.h can initialize nlist structures statically.
211 [19:21] root@keltia:src/include# ll fts.h kvm.h link.h 
-rw-r--r--  1 roberto  staff   5369 May  7 12:51 fts.h
-rw-r--r--  1 roberto  staff   3020 Mar 22  1995 kvm.h
-rw-r--r--  1 roberto  staff  10589 May  7 12:51 link.h

Both fts.h & link.h were changed today by Julian Assage's patch, probably
to add #include <nlist.h>...

"make world" is broken of course.

I don't really know how to fix that except either fix the name space
conflict or revert as before.
-- 
Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 3.0-CURRENT #8: Wed May  7 13:25:41 CEST 1997



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970507192823.63776>