Re: gcc compile and cobol microfocus on HP-UX B.11.11 U 9000/800 (487 Views)
Reply
Occasional Visitor
alfredo morales
Posts: 2
Registered: ‎10-17-2008
Message 1 of 3 (487 Views)

gcc compile and cobol microfocus on HP-UX B.11.11 U 9000/800

I am compiling an application with "c" programs and cobol programs, whith gcc and 64 bits.


the "c" programs compiles correctly
the cobol programs compiles correctly
the error appears when Link the programs with the compiler cobol, sends the following error.


cd /ruta/bin;cob -o runtime -xe "" /oracle/product/10.2.0/precomp/lib/cobsqlintf.o /oracle/product/10.2.0lib/scorept.o /oracle/product/10.2.0/lib/sscoreed.o /oracle/product/10.2.0/rdbms/lib/kpudfo.o -L /oracle/product/10.2.0/lib/-lclntsh -lsql10 /ruta/des/tzzzzzzz.o /ruta/des/tccccccc.o
Assembler messages:
Error: can't open +Z for reading: No such file or directory
+Z:0: Error: can't open +DA2.0W for reading: No such file or directory
cob64: error(s) in assembling /ruta/tmp/cobAAAa29324/ldtab.s
gmake: *** [runtime] Error 1


machine:
HP-UX B.11.11 U 9000/800

gcc -v
Using built-in specs.
Target: hppa64-hp-hpux11.11
Configured with: /tmp/gcc-4.3.1.tar.gz/gcc-4.3.1/configure --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --build=hppa64-hp-hpux11.11 --prefix=/opt/hp-gcc64-4.3.1 --with-gnu-as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-threads=posix --enable-languages=c,c++ --with-gmp=/proj/opensrc/be/hppa64-hp-hpux11.11 --with-mpfr=/proj/opensrc/be/hppa64-hp-hpux11.11
Thread model: posix
gcc version 4.3.1 (GCC)



Compile C progrmas:
INC="-I. -I/opt/hp-gcc64/include"
gcc ${INC} -c ${PGM}




compile cobol programs
cob64 -C nolist -v -a -x -c -X fsav -X fres -C IBMCOMP -C LINKCOUNT=4096 /ruta/program.name

can you to suggest some solution to me?, or where to look for?

thanks
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 25,004
Registered: ‎03-06-2006
Message 2 of 3 (487 Views)

Re: gcc compile and cobol microfocus on HP-UX B.11.11 U 9000/800

These errors indicate you are passing HP-UX compiler options to an assembler.
Do you have +Z +DA2.0W in any configuration files or in any environment variables?
Do you have /usr/local/bin before /usr/bin or /usr/ccs/bin in PATH?
I.e. you are using the foreign devil assembler rather than HP's.
Please use plain text.
Occasional Visitor
alfredo morales
Posts: 2
Registered: ‎10-17-2008
Message 3 of 3 (487 Views)

Re: gcc compile and cobol microfocus on HP-UX B.11.11 U 9000/800

Hi,
First of all, excuse me. I had to attend another urgent activity and I could not conclude this. Dennis, sorry I did not answer back before.
I reviewed the suggestion that Dennis gave me, the route “/usr/local/bin” was before “/usr/bin in PATH”. I corrected this and the compilations works without problems.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation