Hello all,
I have problem when I tried to install a program which requires
X windows on my linux (RH 6.1).
When I run "make" at the first time it failed, with message:
**** /usr/bin/ld: cannot open -lX11: No such file or directory
After I commented & uncommented some LIBS lines of the Makefile,
it's success when I run "make".
But when I run the program, I got this message:
*****Electric Fence Exiting: mmap <> failed:
*****cannot allocate memory
Can anybody help me point out how to solve this?
Below is the Makefile after I modifed it, it only a few lines.
Thanks,
Johan
---------------------------------------------------------------------------------------------------------------------
# Makefile example. Rob Simmonds
CC= gcc
OBJS= MeanStd.o mult.o sprinkle.o aCorr.o rs.o \
variance.o buckets.o synTraff.o
# This first LIBS line is what Rob needed to use at U Calgary
LIBS= -L/usr/X11R6/lib -ltcl -ltk -ldl -lX11 -lXaw -lefence -lm
# This second LIBS line is what is needed on skorpio at U Saskatchewan
#LIBS= -L/sw/arch/lib -ltk8.0 -ltcl8.0 -lX11 -lm -ldl
#LIBS= -L/usr/X11R6/lib -ltcl -ltk -ldl -lX11 -lXaw -lm
# This third LIBS line is what is needed on berwanger.dagstuhl.de
#LIBS= -L/usr/lib/X11R5 -ltcl -ltk -ldl -lX11 -lXaw -lm
# This is the include path needed on skorpio
#INCL=
# This is the include path needed on skimo
#INCL=-I. -I/usr/openwin/share/include
INCL=-I.
# This is the include path needed on sparkle
#INCL=
CFLAGS= -g
.c.o:
$(CC) $(CFLAGS) $(INCL) -c $*.c
all: synTraff fancyshift hosking scale
synTraff: $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
clean:
rm *.o synTraff fancyshift hosking scale
depend:
@sh -c 'makedepend \
`for i in $(OBJS) ; do echo -n $$i " " |sed "s/\.o/.c/"; \
done`'
fancyshift:
$(CC) -o $@ $@.c -lm
hosking:
$(CC) -o $@ $@.c -lm
scale:
$(CC) -o $@ $@.c
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list