[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Make errors


After modifying the Makefile for the root of the XSscroch to get past this
error:
gcc -DHAVE_CONFIG_H -I. -I. -I. -Isgame -Isgtk    -g -O2 -c xscorch.c
xscorch.c: In function `main':
xscorch.c:77: union has no member named `_sigaction'
*** Error code 1
make: Fatal error: Command failed for target `xscorch.o

I rerun make and get the below error, which I do not know the fix for. Any
suggestions? (note I had to add -D_POSIX_C_SOURCE=3 to get around the
_sigaction error above)
Platform Sun Sparc Solaris 9 

gcc -DHAVE_CONFIG_H -I. -I. -I. -Isgame -Isgtk    -D_POSIX_C_SOURCE=3 -g -O2
-c xscorch.c
/bin/bash ./libtool --preserve-dup-deps --mode=link gcc  -D_POSIX_C_SOURCE=3
-g -O2  -o xscorch  xscorch.o -lm 	-L/usr/sfw/lib -L/usr/openwin/lib
-R/usr/openwin/lib -lgtk -lgdk -R/usr/sfw/lib -lgmodule -lglib -ldl -lXext
-lX11 -lsocket -lnsl -lm 	 	sgame/libscorch_game.a
sgtk/libscorch_gtk.a 	sgtk/swidgets/libscorch_widget_gtk.a
sai/libscorch_ai.a 	ssound/libscorch_sound_null.a 	-lnsl -lsocket
snet/libscorch_net.a snet/tcpnet/libtcpnet.a 	sutil/libscorch_util.a
sgame/libscorch_game.a 	libj/jreg/libjreg.a 	libj/jstr/libjstr.a 
mkdir .libs
gcc -D_POSIX_C_SOURCE=3 -g -O2 -o xscorch xscorch.o  -lm -L/usr/sfw/lib
-L/usr/openwin/lib /usr/sfw/lib/libgtk.so -lsocket -lnsl -lm
/usr/sfw/lib/libgdk.so -lsocket -lnsl -lm /usr/sfw/lib/libgmodule.so
/usr/sfw/lib/libglib.so -ldl -lXext -lX11 -lsocket -lnsl -lm
sgame/libscorch_game.a sgtk/libscorch_gtk.a
sgtk/swidgets/libscorch_widget_gtk.a sai/libscorch_ai.a
ssound/libscorch_sound_null.a -lnsl -lsocket snet/libscorch_net.a
snet/tcpnet/libtcpnet.a sutil/libscorch_util.a sgame/libscorch_game.a
libj/jreg/libjreg.a libj/jstr/libjstr.a -R/usr/sfw/lib -R/usr/sfw/lib
-R/usr/openwin/lib
ld: fatal: symbol `optind' is multiply-defined:
	(file sgame/libscorch_game.a(soptions.o) and file
sutil/libscorch_util.a(getopt.o));
ld: fatal: symbol `optopt' is multiply-defined:
	(file sgame/libscorch_game.a(soptions.o) and file
sutil/libscorch_util.a(getopt.o));
ld: fatal: symbol `opterr' is multiply-defined:
	(file sgame/libscorch_game.a(soptions.o) and file
sutil/libscorch_util.a(getopt.o));
ld: fatal: File processing errors. No output written to xscorch
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `xscorch'
Current working directory /home/qzm48g/src/xscorch-0.1.16
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/qzm48g/src/xscorch-0.1.16
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'


Notices