Hullo all,

I've got a 4.5 machine, and am trying to upgrade to 4.6.  I've downloaded
all the sources with cvsup, and have the following problem with as 
compilation when i make buildworld:

-- start output --
In file included from 
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/as.h:636,
                 from 
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:31:
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/tc.h:68:
 warning: redundant redeclaration of `number_to_chars_littleendian' in same scope
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/write.h:188:
 warning: previous declaration of `number_to_chars_littleendian'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `dwarf2_directive_file':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:348:
 warning: comparison between signed and unsigned
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 At top level:
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:438:
 syntax error before `void'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:447:
 syntax error before `void'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:456:
 syntax error before `void'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:465:
 syntax error before `void'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:483:
 syntax error before `void'
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `out_set_addr':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:542:
 warning: declaration of `expr' shadows global declaration
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `relax_inc_line_addr':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:745:
 warning: declaration of `expr' shadows global declaration
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `out_debug_line':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:959:
 warning: declaration of `expr' shadows global declaration
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `out_debug_aranges':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:1027:
 warning: declaration of `expr' shadows global declaration
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:
 In function `out_debug_info':
/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/dwarf2dbg.c:1133:
 warning: declaration of `expr' shadows global declaration
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils/as/i386-freebsd.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils/as.
*** Error code 1

Stop in /usr/src/gnu/usr.bin/binutils.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
# exit

-- stop output --

The syntax error seems to come from the compiler not recognising the 
'inline' part of the function prototypes for out_byte(), out_opcode(),
out_two() and out_four() functions.

uname -a gives:
FreeBSD atlas.ihug.co.nz 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Fri Jul  5 21:11:14 NZST 
2002     [EMAIL PROTECTED]:/usr/src/sys/compile/ATLAS  i386

CC version is 2.95.3.

Can anyone point out a fix?

Cheers

Kyle McFarlane
[EMAIL PROTECTED]

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

Reply via email to