Operating System - HP-UX
1751911 Members
4953 Online
108783 Solutions
New Discussion юеВ

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

 
alfredo morales
New Member

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
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

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.
alfredo morales
New Member

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.