Subject: Re: Linux compat changes
To: , <current-users@netbsd.org>
From: Nigel Reed <nigel@nelgin.nu>
List: current-users
Date: 10/01/1998 17:43:55
Am I being a usually dummy and missing something here, or is it really not
working on i386 -current?

cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wno-main -I.
 -I.
./../../../arch -I../../../.. -nostdinc -DSYSVMSG -DSYSVSEM -DSYSVSHM -DLKM 
-DDI
AGNOSTIC -DCOMPAT_43 -DLINUX_GCC_SIGNATURE -DIPFILTER_LOG -DMAXUSERS=32 -D_K
ERNE
L  -Di386  -c ../../../../compat/linux/common/linux_exec_elf32.c
../../../../compat/linux/common/linux_exec_elf32.c:107: `ELFNAME2' declared
as f
unction returning a function
cc1: warnings being treated as errors
../../../../compat/linux/common/linux_exec_elf32.c:107: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:110: `ELFNAME2' declared
as f
unction returning a function
../../../../compat/linux/common/linux_exec_elf32.c:110: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:121: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:121: function
`ELFNAMEEND' is
 initialized like a variable
../../../../compat/linux/common/linux_exec_elf32.c:122: invalid initializer
for
`ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:123: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:124: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:125: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:126: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:127: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:128: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:129: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:130: warning: implicit
declar
ation of function `ELFNAME'
../../../../compat/linux/common/linux_exec_elf32.c:130: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:131: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:132: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:133: warning: excess
elements
 in scalar initializer after `ELFNAMEEND'
../../../../compat/linux/common/linux_exec_elf32.c:151: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:151: `ELFNAME2' declared
as f
unction returning a function
../../../../compat/linux/common/linux_exec_elf32.c:151: warning: function
declar
ation isn't a prototype
../../../../compat/linux/common/linux_exec_elf32.c: In function `ELFNAME2':
../../../../compat/linux/common/linux_exec_elf32.c:153: declaration for
paramete
r `eh' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:152: declaration for
paramete
r `epp' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:151: declaration for
paramete
r `p' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:167: `read_from'
undeclared (
first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:167: (Each undeclared
identif
ier is reported only once
../../../../compat/linux/common/linux_exec_elf32.c:167: for each function it
app
ears in.)
../../../../compat/linux/common/linux_exec_elf32.c:168: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c:186: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c: At top level:
../../../../compat/linux/common/linux_exec_elf32.c:204: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:204: `ELFNAME2' declared
as f
unction returning a function
../../../../compat/linux/common/linux_exec_elf32.c:204: warning: function
declar
ation isn't a prototype
../../../../compat/linux/common/linux_exec_elf32.c:204: redefinition of
`ELFNAME
2'
../../../../compat/linux/common/linux_exec_elf32.c:151: `ELFNAME2'
previously de
fined here
../../../../compat/linux/common/linux_exec_elf32.c: In function `ELFNAME2':
../../../../compat/linux/common/linux_exec_elf32.c:206: declaration for
paramete
r `eh' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:205: declaration for
paramete
r `epp' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:204: declaration for
paramete
r `p' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:218: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c:238: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c:252:
`ELF_NOTE_TYPE_OSVERSION
' undeclared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:261:
`ELF_NOTE_GNU_NAMESZ' un
declared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:262:
`ELF_NOTE_GNU_DESCSZ' un
declared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:268: `ELF_NOTE_GNU_NAME'
unde
clared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:274:
`ELF_NOTE_GNU_OSMASK' un
declared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:276:
`ELF_NOTE_GNU_OSLINUX' u
ndeclared (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c: At top level:
../../../../compat/linux/common/linux_exec_elf32.c:301: warning: parameter
names
 (without types) in function declaration
../../../../compat/linux/common/linux_exec_elf32.c:301: `ELFNAME2' declared
as f
unction returning a function
../../../../compat/linux/common/linux_exec_elf32.c:301: warning: function
declar
ation isn't a prototype
../../../../compat/linux/common/linux_exec_elf32.c:301: redefinition of
`ELFNAME
2'
../../../../compat/linux/common/linux_exec_elf32.c:204: `ELFNAME2'
previously de
fined here
../../../../compat/linux/common/linux_exec_elf32.c: In function `ELFNAME2':
../../../../compat/linux/common/linux_exec_elf32.c:305: declaration for
paramete
r `pos' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:304: declaration for
paramete
r `itp' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:303: declaration for
paramete
r `eh' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:302: declaration for
paramete
r `epp' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:301: declaration for
paramete
r `p' but no such parameter
../../../../compat/linux/common/linux_exec_elf32.c:311: `signature'
undeclared (
first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:311: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c:313: `gcc_signature'
undeclar
ed (first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:313: called object is not
a f
unction
../../../../compat/linux/common/linux_exec_elf32.c:326: `emul_linux'
undeclared
(first use in this function)
../../../../compat/linux/common/linux_exec_elf32.c:326: invalid lvalue in
unary
`&'
../../../../compat/linux/common/linux_exec_elf32.c:327: `ELF_NO_ADDR'
undeclared
 (first use in this function)
*** Error code 1

Regards
Nigel
-----Original Message-----
From: Eric Haszlakiewicz <nimenees@UAccess.NET>
To: current-users@netbsd.org <current-users@netbsd.org>
Date: Thursday, October 01, 1998 03:26 PM
Subject: Linux compat changes


>
> I just finished commiting a bunch of changes to the linux compat
>code.  The goal of this is to be able to run linux binaries on the
>Alpha (and eventually other architechtures).  It currently does not work
>on the Alpha.
> On the i386 is should work as before except: you will need to
>add (at least temporarily) "options LINUX_GCC_SIGNATURE" to your config
>file.
>
>eric
>Erh@netbsd.org
>