Can anyone suggest how to overcome the below errors when making emu10k driver?
The port tree was updated right before building the driver.
Code:
===> Building for emu10kx-20051021
--- objwarn ---
Warning: Object directory not changed from original /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21
--- all ---
===> emuctrl (all)
--- objwarn ---
--- emuctrl.o ---
--- objwarn ---
Warning: Object directory not changed from original /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21/emuctrl
--- emuctrl.o ---
cc -O2 -pipe -fno-strict-aliasing -g -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wmissing-variable-declarations -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -c emuctrl.c
emuctrl.c:180:6: error: no previous extern declaration for non-static variable 'ops' [-Werror,-Wmissing-variable-declarations]
char ops[0x10][8] = {
^
emuctrl.c:198:6: error: no previous extern declaration for non-static variable 'voice_reg' [-Werror,-Wmissing-variable-declarations]
char voice_reg[0x7f][19] = {
^
2 errors generated.
*** [emuctrl.o] Error code 1
make[2]: stopped in /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21/emuctrl
1 error
make[2]: stopped in /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21/emuctrl
*** [all] Error code 2
make[1]: stopped in /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21
1 error
make[1]: stopped in /usr/ports/audio/emu10kx/work/emu10kx-2005-10-21
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/ports/audio/emu10kx
The port tree was updated right before building the driver.