I'm trying to compile on NetBSD 2.0 (and an ubuntu 5.10 box, too), and I ran into the same problem that dugan had above. Taking care of that, I now get this collection of messages:
gmake[1]: Entering directory `/home/evan/tmp/fceu-nitsuja-src/src'
gcc -Wall -fomit-frame-pointer -g -O2 -I/usr/pkg/include/SDL -D_REENTRANT -o fceu x6502.o fceustr.o cart.o cheat.o crc32.o debug.o endian.o fceu.o fds.o file.o filter.o general.o ines.o input.o md5.o memory.o netplay.o nsf.o palette.o ppu.o sound.o state.o unif.o video.o vsuni.o wave.o movie.o unzip.o boards/mmc5.o boards/mmc3.o boards/mmc1.o boards/tengen.o boards/bonza.o boards/deirom.o boards/dream.o boards/konami-qtai.o boards/n106.o boards/karaoke.o boards/90.o boards/112.o boards/164.o boards/183.o boards/186.o boards/8237.o boards/8157.o boards/addrlatch.o boards/datalatch.o boards/h2288.o boards/malee.o boards/novel.o boards/sachen.o boards/subor.o boards/super24.o boards/supervision.o input/cursor.o input/zapper.o input/powerpad.o input/arkanoid.o input/shadow.o input/fkb.o input/hypershot.o input/mahjong.o input/oekakids.o input/ftrainer.o input/quiz.o input/toprider.o input/bworld.o input/suborkb.o mappers/6.o mappers/8.o mappers/15.o mappers/16.o mappers/17.o mappers/18.o mappers/21.o mappers/22.o mappers/23.o mappers/24and26.o mappers/25.o mappers/27.o mappers/32.o mappers/33.o mappers/40.o mappers/41.o mappers/42.o mappers/43.o mappers/46.o mappers/50.o mappers/51.o mappers/57.o mappers/58.o mappers/59.o mappers/60.o mappers/61.o mappers/62.o mappers/65.o mappers/67.o mappers/68.o mappers/69.o mappers/71.o mappers/72.o mappers/73.o mappers/75.o mappers/76.o mappers/77.o mappers/79.o mappers/80.o mappers/82.o mappers/83.o mappers/85.o mappers/86.o mappers/88.o mappers/89.o mappers/91.o mappers/92.o mappers/95.o mappers/97.o mappers/99.o mappers/113.o mappers/117.o mappers/151.o mappers/180.o mappers/183.o mappers/184.o mappers/187.o mappers/189.o mappers/193.o mappers/200.o mappers/201.o mappers/202.o mappers/203.o mappers/204.o mappers/208.o mappers/211.o mappers/212.o mappers/213.o mappers/214.o mappers/215.o mappers/217.o mappers/225.o mappers/226.o mappers/227.o mappers/228.o mappers/229.o mappers/230.o mappers/231.o mappers/232.o mappers/234.o mappers/235.o mappers/240.o mappers/241.o mappers/242.o mappers/244.o mappers/246.o mappers/255.o mappers/emu2413.o mappers/mmc2and4.o mappers/simple.o drivers/common/args.o drivers/common/cheat.o drivers/common/config.o drivers/common/vidblit.o drivers/common/hq2x.o drivers/common/hq3x.o drivers/common/scale2x.o drivers/common/scale3x.o drivers/common/scalebit.o drivers/sexyal/sexyal.o drivers/sexyal/md5.o drivers/sexyal/smallc.o drivers/sexyal/convert.o drivers/sexyal/drivers/oss.o drivers/pc/input.o drivers/pc/main.o drivers/pc/sdl.o drivers/pc/sdl-joystick.o drivers/pc/sdl-sound.o drivers/pc/sdl-throttle.o drivers/pc/sdl-video.o drivers/pc/unix-netplay.o -lz -lz -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lossaudio -lpthread -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -lm -L/usr/X11R6/lib -lX11 -lXext -L/usr/pkg/lib -laa-x11 -lm -L/usr/X11R6/lib -lX11 -lusbhid
input.o(.text+0x879): In function `CommandEmulationSpeed':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:626: undefined reference to `FCEUD_SetEmulationSpeed'
input.o(.text+0xa51): In function `CommandSoundAdjust':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:711: undefined reference to `FCEUD_SoundVolumeAdjust'
input.o(.data+0x140): In function `B4016':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:143: undefined reference to `FCEUD_HideMenuToggle'
input.o(.data+0x1d0): In function `FCEU_DrawInput':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:177: undefined reference to `FCEUD_TurboOn'
input.o(.data+0x1d4):/home/evan/tmp/fceu-nitsuja-src/src/input.c:177: undefined reference to `FCEUD_TurboOff'
input.o(.data+0x320): In function `FCEU_UpdateInput':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:202: undefined reference to `FCEUD_SaveStateAs'
input.o(.data+0x440): In function `CheckSLHook':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:268: undefined reference to `FCEUD_LoadStateFrom'
input.o(.data+0x680): In function `FCEUI_SetInput':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:358: undefined reference to `FCEUD_MovieRecordTo'
input.o(.data+0x7a0): In function `FCEUI_HandleEmuCommands':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:601: undefined reference to `FCEUD_MovieReplayFrom'
input.o(.data+0x8a8): In function `CommandSelectSaveSlot':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:638: undefined reference to `FCEUD_MovieStop'
input.o(.data+0x908): In function `CommandStateSave':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:650: undefined reference to `FCEUD_ToggleStatusIcon'
input.o(.data+0x920): In function `CommandStateLoad':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:655: undefined reference to `FCEUD_SoundToggle'
input.o(.data+0x980): In function `CommandMovieSelectSlot':
/home/evan/tmp/fceu-nitsuja-src/src/input.c:674: undefined reference to `FCEUD_AviRecordTo'
input.o(.data+0x998):/home/evan/tmp/fceu-nitsuja-src/src/input.c:670: undefined reference to `FCEUD_AviStop'
ppu.o(.text+0x2a49): In function `FCEUPPU_Loop':
/home/evan/tmp/fceu-nitsuja-src/src/ppu.c:1361: undefined reference to `PPUViewer'
ppu.o(.text+0x2a59):/home/evan/tmp/fceu-nitsuja-src/src/ppu.c:1361: undefined reference to `PPUViewScanline'
ppu.o(.text+0x2ae5):/home/evan/tmp/fceu-nitsuja-src/src/ppu.c:1376: undefined reference to `UpdatePPUView'
video.o(.text+0x528): In function `FCEU_DrawRecordingStatus':
/home/evan/tmp/fceu-nitsuja-src/src/video.c:112: undefined reference to `FCEUD_ShowStatusIcon'
video.o(.text+0x5a5): In function `FCEU_PutImage':
/home/evan/tmp/fceu-nitsuja-src/src/video.c:143: undefined reference to `FCEUI_AviIsRecording'
video.o(.text+0x6b6):/home/evan/tmp/fceu-nitsuja-src/src/video.c:166: undefined reference to `FCEUI_AviVideoUpdate'
gmake[1]: *** [fceu] Error 1
gmake[1]: Leaving directory `/home/evan/tmp/fceu-nitsuja-src/src'
gmake: *** [all-recursive] Error 1
It looked to me like all of these undefined references point to functions from code in the drivers/win/ directory. Again, this is happening for me in both Ubuntu and NetBSD.
Also, I learned that NetBSD's zlib.h does not define OF(), so the compile fails at unzip.c, too. There is an easy fix for this, just add these lines to unzip.h:
#ifndef OF
#define OF(a) a
#endif
One more thing, the link to this patched fceu version was outdated on the
wiki emulator page. Somebody might want to point it to the more recent version that was in this thread.