# To subscribers of the xforms list from Angus Leeming <angus.leeming@btopenworld.com> :
On Monday 14 April 2003 7:12 am, David Scriven wrote:
> which seems to relate to a problem in ctype.h
> (which is present)
>
>
> I'm aware that there are differences in the gcc
> (ver 3.0+) supplied with Red Hat 8 & 9 as opposed
> to Red Hat 7.3 (gcc ver 2.96) so I thought I'd
> try to run the system with the older gcc,
> (gcc296) but I couldn't see how to alter the
> Makefile to do this.
David, ctype.h is nothing to do with gcc. It is a system header file. You must
ensure that all parts of your program are compiled against the same #include
files; it looks to me that part of your program's object files were created
against the old ctype.h and part against the new ctype.h. Obviously, when you
come to link it all together, you have only the new system libraries; hence
the link error.
As for the Imakefile, look in the various subroutines. I see stuff like this
below which may prove useful.
$ grep -in cc */Imakefile
demos/Imakefile:102:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
demos/Imakefile:308: $(CCLINK) -o $@ $(LDOPTIONS) newbutton.o $(DEPOBJS)
$(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
fd2ps/Imakefile:96:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
fdesign/Imakefile:55:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
fdesign/Imakefile:59:#if HasGcc2
gl/Imakefile:34:SHLIBLDFLAGS += -lSystem -lcc_dynamic
gl/Imakefile:39:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
gl/Imakefile:40:LD = gcc
gl/Imakefile:50: $(LGCC)
gl/Imakefile:68:CCOPTIONS =
image/Imakefile:98:CCOPTIONS = -nostdinc
image/Imakefile:111:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
image/Imakefile:112:LD = gcc
image/Imakefile:114:LGCC = -lgcc
image/Imakefile:118:SHLIBLDFLAGS += -lSystem -lcc_dynamic
image/Imakefile:128: $(LGCC)
lib/Imakefile:143:#if HasGcc2
lib/Imakefile:147:CCOPTIONS =
lib/Imakefile:160:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
lib/Imakefile:161:#if HasGcc2
lib/Imakefile:162:LD = gcc
snp/Imakefile:41:CCOPTIONS =
snp/Imakefile:54:CCENVSETUP = LD_RUN_PATH=/usr/openwin/lib/sparcv9
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms
This archive was generated by hypermail 2b29 : Mon Apr 14 2003 - 04:04:36 EDT