Re: /usr/include/stdlib.h:51: syntax error before size_t

2002-10-08 Thread Hanspeter Roth

  On Oct 07 at 16:28, Giorgos Keramidas spoke:

 By grepping through buildworld logs I saw this passing by:
 
   # cd /usr/src/include; make buildincludes; make installincludes

I did `make includes' which obviously does both buildincludes and
installincludes.
Afterwords I was able to buildworld.

-Hanspeter

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



/usr/include/stdlib.h:51: syntax error before size_t

2002-10-07 Thread Hanspeter Roth

  On Oct 07 at 02:43, Terry Lambert spoke:

 /usr/include/* is obsolete.  Install the new ones instead.

When I rename /usr/include and copy /usr/src/include/* to
/usr/include I get:

=== usr.bin/yacc
/usr/obj/usr/src/i386/usr/src/usr.bin/yacc created for /usr/src/usr.bin/yacc
rm -f .depend
mkdep -f .depend -a-D__FBSDID=__RCSID  /usr/src/usr.bin/yacc/closure.c 
/usr/src/usr.bin/yacc/error.c /usr/src/usr.bin/yacc/lalr.c /usr/src/usr.bin/yacc/lr0.c 
/usr/src/usr.bin/yacc/main.c /usr/src/usr.bin/yacc/mkpar.c 
/usr/src/usr.bin/yacc/output.c /usr/src/usr.bin/yacc/reader.c 
/usr/src/usr.bin/yacc/skeleton.c /usr/src/usr.bin/yacc/symtab.c 
/usr/src/usr.bin/yacc/verbose.c /usr/src/usr.bin/yacc/warshall.c
/usr/src/usr.bin/yacc/closure.c:43:23: sys/cdefs.h: No such file or directory


When I copy /usr/src/include/* over the existing /usr/include I get:


=== usr.bin/yacc
/usr/obj/usr/src/i386/usr/src/usr.bin/yacc created for /usr/src/usr.bin/yacc
rm -f .depend
mkdep -f .depend -a-D__FBSDID=__RCSID  /usr/src/usr.bin/yacc/closure.c 
/usr/src/usr.bin/yacc/error.c /usr/src/usr.bin/yacc/lalr.c /usr/src/usr.bin/yacc/lr0.c 
/usr/src/usr.bin/yacc/main.c /usr/src/usr.bin/yacc/mkpar.c 
/usr/src/usr.bin/yacc/output.c /usr/src/usr.bin/yacc/reader.c 
/usr/src/usr.bin/yacc/skeleton.c /usr/src/usr.bin/yacc/symtab.c 
/usr/src/usr.bin/yacc/verbose.c /usr/src/usr.bin/yacc/warshall.c
echo yacc: /usr/lib/libc.a   .depend
cc -O -pipe-D__FBSDID=__RCSID -c /usr/src/usr.bin/yacc/closure.c
In file included from /usr/src/usr.bin/yacc/closure.c:46:
/usr/include/stdlib.h:51: syntax error before size_t


Is there something more to consider before building world?
Did I copy the wrong include directory (/usr/src/include)?

-Hanspeter

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



Re: /usr/include/stdlib.h:51: syntax error before size_t

2002-10-07 Thread Mark Murray

   On Oct 07 at 02:43, Terry Lambert spoke:
 
  /usr/include/* is obsolete.  Install the new ones instead.
 
 When I rename /usr/include and copy /usr/src/include/* to
 /usr/include I get:

Don't do that.

Look in src/Makefile* for the right way to fix your includes.

(IIRC there is a target, maybe called doincludes to do this).

M
-- 
o   Mark Murray
\_
O.\_Warning: this .sig is umop ap!sdn

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



Re: /usr/include/stdlib.h:51: syntax error before size_t

2002-10-07 Thread Robert Drehmel

On Mon, Oct 07, 2002 at 02:17:00PM +0100, Mark Murray wrote:
On Oct 07 at 02:43, Terry Lambert spoke:
  
   /usr/include/* is obsolete.  Install the new ones instead.
  
  When I rename /usr/include and copy /usr/src/include/* to
  /usr/include I get:
 
 Don't do that.
 
 Look in src/Makefile* for the right way to fix your includes.
 
 (IIRC there is a target, maybe called doincludes to do this).

I think it is called 'includes' which does 'buildincludes' and
'installincludes'.

ciao,
-robert

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



Re: /usr/include/stdlib.h:51: syntax error before size_t

2002-10-07 Thread Terry Lambert

Hanspeter Roth wrote:
   On Oct 07 at 02:43, Terry Lambert spoke:
  /usr/include/* is obsolete.  Install the new ones instead.
 
 When I rename /usr/include and copy /usr/src/include/* to
 /usr/include I get:

What happens when you read the -current archives for other
messages which indicate the same problem, and then use the
correct procedure for installing new include files, instead?

8-).


 Did I copy the wrong include directory (/usr/src/include)?

Yes.  You weren't supposed to copy, you were suppose to use
the make target.  Include files are generated, or they come
from all over, not just the source directory for the simple
includes.

--

To save you the minute and a half of searching (which is
apparently what you want somone to do -- why are you asking
in -current instead of -questions?):

cd /usr
mv include include.old
mkdir include
chown root.wheel include
chmod 755 include
cd /usr/src
make includes

The mkdir/chode/chmod is necessary because the includes target
fails to create its install directory (one of many minor broken
things about the build process).

-- Terry

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



Re: /usr/include/stdlib.h:51: syntax error before size_t

2002-10-07 Thread Giorgos Keramidas

On 2002-10-07 14:17, Mark Murray [EMAIL PROTECTED] wrote:
On Oct 07 at 02:43, Terry Lambert spoke:
 
   /usr/include/* is obsolete.  Install the new ones instead.
 
  When I rename /usr/include and copy /usr/src/include/* to
  /usr/include I get:

 Don't do that.
 Look in src/Makefile* for the right way to fix your includes.

 (IIRC there is a target, maybe called doincludes to do this).

By grepping through buildworld logs I saw this passing by:

# cd /usr/src/include; make buildincludes; make installincludes

That might help a bit.

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