Subject: Re: fix for mc*
To: Tim Kelly <hockey@dialectronics.com>
From: Michael Wolfson <michael@nosflow.com>
List: port-macppc
Date: 12/05/2004 19:31:27
On Dec 5, 2004, at 2:35 PM, Tim Kelly wrote:

> Attached is a patch that will fix the problem with mc*.

Well, I tried building a -current kernel with only your if_mc* patches, 
but got stuck with the building part.

First, awacs spits out a warning, which I worked around by removing 
-Werror.

#   compile  AL/awacs.o
cc -msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall 
-Wno-main -Wno-fo
rmat-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-s
ign-compare -fno-zero-initialized-in-bss -Dmacppc=macppc -I. 
-I../../../../arch
-I../../../.. -nostdinc -DDIAGNOSTIC -DOFB_ENABLE_CACHE -DMAXUSERS=32 
-D_KERNEL
-D_KERNEL_OPT -c ../../../../arch/macppc/dev/awacs.c
In file included from ../../../../arch/macppc/dev/awacs.c:38:
../../../../dev/auconv.h:144: warning: `struct audio_params' declared 
inside par
ameter list
../../../../dev/auconv.h:144: warning: its scope is only this 
definition or decl
aration, which is probably not what you want
*** Error code 1

Stop.


Not sure how to fix the linking problem:

#   compile  AL/vers.o
cc  -msoft-float      -ffreestanding   -O2 -Wreturn-type -Werror -Wall 
-Wno-main
  -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototype
s -Wno-sign-compare -fno-zero-initialized-in-bss  -Dmacppc=macppc -I.  
-I../../.
#      link  AL/netbsd
ld -N -Ttext 0x100000 -e __start -S -o netbsd ${SYSTEM_OBJ} 
${EXTRA_OBJ} vers.o
ffs_vfsops.o(.text+0xc04): In function `ffs_reload':
: undefined reference to `ffs_appleufs_validate'
ffs_vfsops.o(.text+0x14bc): In function `ffs_mountfs':
: undefined reference to `ffs_appleufs_validate'
vfs_bio.o(.text+0xd6e): In function `brelse':
: undefined reference to `bioops'
vfs_bio.o(.text+0xd72): In function `brelse':
: undefined reference to `bioops'
vfs_bio.o(.text+0xef2): In function `brelse':
: undefined reference to `bioops'
vfs_bio.o(.text+0xef6): In function `brelse':
: undefined reference to `bioops'
vfs_bio.o(.text+0x16e6): In function `getnewbuf':
: undefined reference to `bioops'
vfs_bio.o(.text+0x16ea): more undefined references to `bioops' follow
*** Error code 1

Stop.


   -- MW