Operating System - HP-UX
1831449 Members
3110 Online
110025 Solutions
New Discussion

Re: mqseries oracle ansi c compiler

 

mqseries oracle ansi c compiler

I have already installed websphere mq 6 under hpux 11i and it works properly. Now I wanted to install some plsql 3rd party extensions in order to directly use mq series in an oracle 9i database. To accomplish this task I used this:
http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000654&loc=en_US&cs=utf-8〈=en
When I run 9i_mqinstall.sh I got some errors
============================================
(ora92@taktp1):/var/mqm/MQSeries>ls -l 9i_mqinstall.sh
-rwxr-xr-x 1 ora92 oinstall 1510 Aug 2 10:53 9i_mqinstall.sh
(ora92@taktp1):/var/mqm/MQSeries>./9i_mqinstall.sh
Enter the ORACLE_SID for the MQSeries install
MB
Enter SYSTEM password
agbd
./9i_mqinstall.sh[7]: Syntax error at line 7 : `then' is not matched.
Enter the path to install the shared libraries
/var/mqm/MQSeries

ORACLE_SID = MB
ORACLE_HOME = /u00/app/oracle/product/9.2.0
Installation Path = /var/mqm/MQSeries

Okay to continue? (Y or N)
y

Precompiling Pro C subroutines...

Pro*C/C++: Release 9.2.0.1.0 - Production on Wed Aug 2 11:02:14 2006

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

System default option values taken from: /u00/app/oracle/product/9.2.0/precomp/a
dmin/pcscfg.cfg


Compiling C subroutines...
(Bundled) cc: warning 480: The -q option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 422: Unknown option "3" ignored.
(Bundled) cc: warning 422: Unknown option "2" ignored.
cpp: "mqi.c", line 4: error 4036: Can't open include file '/usr/mqm/inc/cmqc.h'.
(Bundled) cc: warning 480: The -q option is available only with the C/ANSI C pro
duct; ignored.
(Bundled) cc: warning 422: Unknown option "3" ignored.
(Bundled) cc: warning 422: Unknown option "2" ignored.
(Bundled) cc: "/usr/include/cmqc.h", line 1: error 1000: Unexpected symbol: "i".
(Bundled) cc: "/usr/include/cmqc.h", line 1: error 1004: Unexpected end of line.
...
3 REPLIES 3
Peter Godron
Honored Contributor

Re: mqseries oracle ansi c compiler

Fernando,looks to me like an error in the oraenv script which is called before the shared lib question.
Suggest you fix that problem first, which may very well resolve the other problem.

What C compiler do you have installed?

Re: mqseries oracle ansi c compiler

Hi Peter,

swlist reports:
B3901BA B.11.11.14 HP C/ANSI C Developer's Bundle fo

what /usr/bin/cc reports:
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
LINT B.11.11.14 CXREF B.11.11.14
HP92453-01 B.11.11.14 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $

Re: mqseries oracle ansi c compiler

Thanks, there was a bug in the oracle script and it was the wrong compiler. So after being fixed using the ansi c compiler it worked out.