Re: ESQL, 4GL and C/gcc on Solaris
Posted in 2005
Hi Neil. If you want to compiling 64bit via gcc, use -m64 instead of xarch=v9. xarch=v9 is Solaris compiler's option. % man -M /opt/SUNWspro/man cc <SNIP> -xarch=v9 is only available when compiling in a 64-bit enabled Solaris environment. HTH. -- Tsutomu Ogiwara from Tokyo Japan. ICQ#:168106592 >From: Paul Watson <paul@iiug.org> >Reply-To: paul@iiug.org >To: Neil Truby <neil.truby@ardenta.com> >CC: informix-list@iiug.org >Subject: Re: ESQL, 4GL and C/gcc on Solaris >Date: Tue, 26 Jul 2005 00:30:50 +0100 > >you have a mixture of 32 and 64 bit code at a guess > > >Neil Truby wrote: > >>I'm trying to compile some elderly programs on a system we're migrating to >>IDS 10.0, 4GL 7.32 and ESQL , all FC versions, all on Solaris 9 on a >>64-bit server. >>Solaris 9 doesn't come with a C compiler as standard, so I've installed >>gcc. >> >>When I try to compile: >> >># make -f Makefile >>cfglgo fgiusr.c extras.o nfile.o ndates.o getakey.o read_ln.o scan_weeks.o >>read_merged.o last_access.o -o /home/caps/tabs/bin/run4gl >>gcc: language arch=v9 not recognized >>gcc: language arch=v9 not recognized >><repeated many times> >>gcc: language arch=v9 not recognized >>ld: fatal: file fgiusr.c: unknown file type >>ld: fatal: File processing errors. No output written to >>/home/caps/tabs/bin/run4gl >>collect2: ld returned 1 exit status >>*** Error code 1 >>make: Fatal error: Command failed for target `run4gl' >> >>I read some cdi stiff that says that the 'arch' flag is a Solaris C thing, >>and commented it out of $INFORMIXDIR/bin/cfglgo >> >>Now I get: >># make -f Makefile >>cfglgo fgiusr.c extras.o nfile.o ndates.o getakey.o read_ln.o scan_weeks.o >>read_merged.o last_access.o -o /home/caps/tabs/bin/run4gl >>ld: warning: file /opt/informix/10.0/lib/tools/libfmain.a(fgiapi.o): wrong >>ELF class: ELFCLASS64 >>ld: warning: file /opt/informix/10.0/lib/tools/lib4io.a(effin.o): wrong >>ELF class: ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/esql/libiffgisql.so: wrong ELF >>class: ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/libifasf.so: wrong ELF class: >>ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/esql/libifgen.so: wrong ELF class: >>ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/esql/libifos.so: wrong ELF class: >>ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/esql/libifgls.so: wrong ELF class: >>ELFCLASS64 >>ld: fatal: file /opt/informix/10.0/lib/esql/checkapi.o: wrong ELF class: >>ELFCLASS64 >>ld: fatal: File processing errors. No output written to >>/home/caps/tabs/bin/run4gl >>collect2: ld returned 1 exit status >>*** Error code 1 >>make: Fatal error: Command failed for target `run4gl' >> >>Can it not all be made to work with gcc? Do I need to buy a pukka Solaris >>C compiler? >> >>thanks >>Neil . >> > >-- >Paul Watson # >IIUG # Growing old is mandatory >Tel: +44 1436 672201 # Growing up is optional >Fax: +44 1436 678693 # >Mob: +44 7818 003457 # >www.iiug.org # >sending to informix-list sending to informix-list