Re: Trying to compile runner with 64-bit 4GL
Posted in 2005
Topics: Error Codes & Troubleshooting, Connectivity: ESQL/C, 4GL & Embedded SQL, Internationalization & Character Sets
Hello Neil > If I explicity precompile all the *.o files with arch=v9: > > /usr/ccs/bin/make -f Makefile -->> check the rel notes; you may need to include fglsys.h fglapi.h See: ---------- DOCNOTES_7.31 .. .. manipulating the 4GL argument stack, as listed on pages C-5 through C-8, cannot be used as 4GL identifiers, but are omitted from Appendix G, "Reserved Words": retint popint retshort popshort retlong poplong retflo popflo retdub popdub retdec popdec retquote popquote retstring popstring retvchar popvchar retdate popdate retdtime popdtime retinv popinv poplocator These functions are renamed in Version 7.31; see Appendix C for the new names and for descriptions of these functions. C code for use with releases of 4GL earlier than Version 7.31 that calls any of the pop, push, or return functions must be recompiled with fglsys.h header file to map the pre-Version 7.31 names onto the new function names. .. -------------------------------------- ahum the above is for i4gl so i may be wrong here.... Superboer. Neil Truby schreef: > "Jonathan Leffler" <jleffler@earthlink.net> wrote in message > news:MoiGe.5847$0C.1781@newsread3.news.pas.earthlink.net... > > > You need to fix your PATH so you don't use /usr/ucb/cc - it won't work. > > You need the real location of your SUNWspro C compiler to appear on your > > PATH first. > > > > Actually, you should really remove /usr/ucb from your PATH altogether. > > If i do that I get: > > cfglgo fgiusr.c extras.o nfile.o ndates.o getakey.o read_ln.o scan_weeks.o > read_merged.o last_access.o -o /run4gl > ld: fatal: file extras.o: wrong ELF class: ELFCLASS32 > ld: fatal: File processing errors. No output written to /run4gl > *** Error code 1 > make: Fatal error: Command failed for target `run4gl' > > And all the *.o files are 32-bit. Baffled by this. > > If I explicity precompile all the *.o files with arch=v9: > > /usr/ccs/bin/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 /run4gl > Undefined first referenced > symbol in file > _delkey getakey.o > _hlpkey getakey.o > _inskey getakey.o > _nxtkey getakey.o > popquote extras.o > _prvkey getakey.o > poplong nfile.o > popint extras.o > retint extras.o > _efrgetkey getakey.o > _efacckey getakey.o > _efdelkey getakey.o > retquote nfile.o > _efhlpkey getakey.o > _efinskey getakey.o > _efnxtkey getakey.o > _efprvkey getakey.o > ld: fatal: Symbol referencing errors. No output written to /run4gl > *** Error code 1 > make: Fatal error: Command failed for target `run4gl' > > > Thanks for your continued interest everyone, esp Jonathan!
There is an article detailing this last probelm on the IBM support website : http://www-1.ibm.com/support/docview.wss?rs=681&context=SSVT2J&context=SSCVRDE&context=SSCVRDD&context=SSCVRDJ&context=SSCVRDM&dc=DB520&dc=D600&dc=DB530&dc=D700&dc=DB500&dc=DB540&dc=DB510&dc=DB550&q1=fglsys&uid=swg21108090&loc=en_US&cs=utf-8&lang=en Superboer wrote: > Hello Neil > > > If I explicity precompile all the *.o files with arch=v9: > > > > /usr/ccs/bin/make -f Makefile > -->> check the rel notes; > you may need to include > > fglsys.h > fglapi.h > > See: > ---------- > DOCNOTES_7.31 > .. > .. > manipulating the 4GL argument stack, as listed on pages > C-5 through C-8, cannot be used as 4GL identifiers, but > are omitted from Appendix G, "Reserved Words": > > retint popint > retshort popshort > retlong poplong > retflo popflo > retdub popdub > retdec popdec > retquote popquote > retstring popstring > retvchar popvchar > retdate popdate > retdtime popdtime > retinv popinv > poplocator > > These functions are renamed in Version 7.31; see > Appendix C for the new names and for descriptions > of these functions. C code for use with releases > of 4GL earlier than Version 7.31 that calls any > of the pop, push, or return functions must be > recompiled with fglsys.h header file to map the > pre-Version 7.31 names onto the new function names. > .. > -------------------------------------- > > ahum the above is for i4gl so i may be wrong here.... > > Superboer. > > > > Neil Truby schreef: > > > "Jonathan Leffler" <jleffler@earthlink.net> wrote in message > > news:MoiGe.5847$0C.1781@newsread3.news.pas.earthlink.net... > > > > > You need to fix your PATH so you don't use /usr/ucb/cc - it won't work. > > > You need the real location of your SUNWspro C compiler to appear on your > > > PATH first. > > > > > > Actually, you should really remove /usr/ucb from your PATH altogether. > > > > If i do that I get: > > > > cfglgo fgiusr.c extras.o nfile.o ndates.o getakey.o read_ln.o scan_weeks.o > > read_merged.o last_access.o -o /run4gl > > ld: fatal: file extras.o: wrong ELF class: ELFCLASS32 > > ld: fatal: File processing errors. No output written to /run4gl > > *** Error code 1 > > make: Fatal error: Command failed for target `run4gl' > > > > And all the *.o files are 32-bit. Baffled by this. > > > > If I explicity precompile all the *.o files with arch=v9: > > > > /usr/ccs/bin/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 /run4gl > > Undefined first referenced > > symbol in file > > _delkey getakey.o > > _hlpkey getakey.o > > _inskey getakey.o > > _nxtkey getakey.o > > popquote extras.o > > _prvkey getakey.o > > poplong nfile.o > > popint extras.o > > retint extras.o > > _efrgetkey getakey.o > > _efacckey getakey.o > > _efdelkey getakey.o > > retquote nfile.o > > _efhlpkey getakey.o > > _efinskey getakey.o > > _efnxtkey getakey.o > > _efprvkey getakey.o > > ld: fatal: Symbol referencing errors. No output written to /run4gl > > *** Error code 1 > > make: Fatal error: Command failed for target `run4gl' > > > > > > Thanks for your continued interest everyone, esp Jonathan!