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

xgraph & linux



hallo, I can't compile xgraph under linux (Redhat 6.0, kernel 2.2.5-15).

$ tar xzvf ../xgraph_anim.tar.gz
$ cd xgraph
$ xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
$ make
cc -O2 -fno-strength-reduce     -I/usr/X11R6/include   -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO     -c xgraph.c -o xgraph.o
In file included from xgraph.c:23:
xgraph.h:152: macro `strcpy' used without args
xgraph.h:154: macro `rindex' used without args
xgraph.h:155: macro `index' used without args
make: *** [xgraph.o] Error 1

I've tried to install the binary version of xgraph for linux too but failed to run it: 
$ tar xzvf  xgraph_linux_binary.tar.gz
$ cd xgraph
$ xgraph
xgraph: Linux/i386 demand-paged executable (ZMAGIC)

Can anybody help? thanks in advance,

Meng