OK, removed the definitions from LibUnix.h and added them to LibUnix.c as extern (here):
...
#define FPS_COLOR PIXEL(255,0,255)
extern int ARGC;
extern char **ARGV;
extern int MasterSwitch; /* Switches to turn channels on/off */
extern int MasterVolume; /* Master volume */
...
Cleaned and ran 'make' again:
gcc -o colem -O2 -pthread -I. -I.. -I../../EMULib -I../../EMULib/Unix -I/usr/X11R6/include -Wall -I../../Z80 ../../EMULib/EMULib.o ../../EMULib/Sound.o ../../EMULib/Image.o ../../EMULib/Console.o ../../EMULib/Record.o ../../EMULib/NetPlay.o ../../EMULib/Touch.o ../../EMULib/Unix/LibUnix.o ../../EMULib/Unix/SndUnix.o ../../EMULib/Unix/NetUnix.o ../../Z80/Z80.o ../../Z80/ConDebug.o ../../EMULib/SN76489.o ../../EMULib/TMS9918.o ../../EMULib/DRV9918.o ../../EMULib/AY8910.o ../../EMULib/C24XX.o ../../EMULib/CRC32.o ../../EMULib/Hunt.o ../../EMULib/FDIDisk.o ../Coleco.o ../AdamNet.o ../ColEm.o ../Menu.o Unix.o -lz -lpthread -lX11 -lXext -lpulse-simple
/usr/bin/ld: ../../EMULib/Unix/LibUnix.o: warning: relocation against `ARGC' in read-only section `.text'
/usr/bin/ld: ../../EMULib/Unix/LibUnix.o: in function `X11Window':
LibUnix.c:(.text+0x163b): undefined reference to `ARGC'
/usr/bin/ld: LibUnix.c:(.text+0x1646): undefined reference to `ARGV'
/usr/bin/ld: LibUnix.c:(.text+0x1688): undefined reference to `ARGV'
/usr/bin/ld: LibUnix.c:(.text+0x168e): undefined reference to `ARGC'
/usr/bin/ld: LibUnix.c:(.text+0x16a3): undefined reference to `ARGC'
/usr/bin/ld: LibUnix.c:(.text+0x1765): undefined reference to `ARGV'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make: *** [Makefile:14: colem] Error 1
Looks like many of the previous errors were resolved but still have a few left.
Thank you for your quick response!
-Ron