Author |
Message
|
dev135 |
Posted: Thu May 10, 2012 6:28 pm Post subject: Block IP2 for Suse Linux |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
Hi,
I am planning to use BlockIP2 for MQ V 7.0.1.5 on SuseLinux (10.3) . As i could not find the compilation comands in the manual & when i try to compile as below getting failure errors.
gcc -m64 -c -fPIC BlockIP2.c
BlockIP2.c:689:18: error: cmqc.h: No such file or directory
BlockIP2.c:690:19: error: cmqxc.h: No such file or directory
BlockIP2.c:694:19: error: cmqbc.h: No such file or directory
BlockIP2.c:695:20: error: cmqcfc.h: No such file or directory
........and so on
Did anyone tried to compile BlockIP2 on SuseLinux ?
Thanks,
dev. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri May 11, 2012 2:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
zpat |
Posted: Fri May 11, 2012 2:40 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You need to use the MQ include files. These can be found in the relevant directory. /opt/mqm/inc
gcc -m64 -o BlockIP2 BlockIP2v292.c -fPIC -ansi -shared -D_REENTRANT -D UNIX -D_XOPEN_SOURCE -DHNLUP -Wall -I /opt/mqm/inc |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 5:37 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
Thanks zpat.
Will that work for version 2.93 also? because i am getting errors when running the command. I cant find 2.92 version at mrmq.dk |
|
Back to top |
|
 |
zpat |
Posted: Fri May 11, 2012 5:56 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
What sort of errors?
I used that command on RHEL. Is your version 64bit?
The exact version of BlockIP2 won't affect the compile. |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 6:29 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
Below are the errors
gcc -m64 -o BlockIP2 BlockIP2.c -fPIC -ansi -shared -D_REENTRANT -D UNIX -D_XOPEN_SOURCE -DHNLUP -Wall -I /opt/mqm/inc
BlockIP2.c:694:19: error: cmqbc.h: No such file or directory
BlockIP2.c:695:20: error: cmqcfc.h: No such file or directory
BlockIP2.c: In function âInitialiseDataâ:
BlockIP2.c:1665: warning: implicit declaration of function âsnprintfâ
Yes its 64 bit (Suse Linux 10.3 (s390x)) |
|
Back to top |
|
 |
zpat |
Posted: Fri May 11, 2012 6:35 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
And you are running this on a box with MQ installed ?
If not - copy the /opt/mqm/inc directory and its contents from somewhere else. |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 6:47 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
Yes MQ is already installed. Verion 7.0.1.5
and i do see i have below files under /opt/mqm/inc
cmqc.h, cmqxc.h ,amqsvmha.h ,cmqzc.h |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 7:05 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
i just tried by taking the files cmqbc.h , cmqcfc.h from AIX(just want to give a try)
and got the executable...with warning..
BlockIP2.c: In function âInitialiseDataâ:
BlockIP2.c:1665: warning: implicit declaration of function âsnprintfâ
but will try to test the executable now.
Thanks. |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 8:21 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
zpat..thanks for your help. The executable is working now.
But somehow my log is showing as below.
2012-05-11|12:13:57|2199072459088|ERROR!! - Unexpected invocation. ExitId=[0]
2012-05-11|12:13:57|2199072459088|ERROR!! - Unexpected invocation. ExitId=[0]
2012-05-11|12:13:57|2199072459088|ERROR!! - Unexpected invocation. ExitId=[0]
2012-05-11|12:13:57|2199072459088|ERROR!! - Unexpected invocation. ExitId=[0]
i am going thru the manual..let me know if you have any thoughts on that error. Thanks again. |
|
Back to top |
|
 |
zpat |
Posted: Fri May 11, 2012 9:40 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
what's in the your ini file? |
|
Back to top |
|
 |
dev135 |
Posted: Fri May 11, 2012 12:04 pm Post subject: |
|
|
Apprentice
Joined: 21 Oct 2008 Posts: 44
|
i am using as below in channel config
SCYDATA(FN=/home/mqm/BlockIP41.txt;-d
SCYEXIT(BlockIP2(BlockExit))
and below i have in the BlockIP41.txt file
# 4. Allow spider when comming from 10.*, and set MCAUSER to master04
#CON=10.*;spider;MCA=master04;
CON=10.*;abcd;MCA=mqm; |
|
Back to top |
|
 |
oz1ccg |
Posted: Sat May 12, 2012 2:21 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hi,
I didn't expect to see this:
Unexpected invocation. ExitId=[0] , this can be caused by 3 things:
1. Mixture of 32 and 64bit environment, should ne be able to happen.
2. Invoked as other than security exit (seen before).
3. An new error in MQ.
I believe we have to analyze a MQ trace or to have a look on the FDC. _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
rekarm01 |
Posted: Wed May 16, 2012 12:15 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
dev135 wrote: |
Yes MQ is already installed. Version 7.0.1.5, and i do see i have below files under /opt/mqm/inc:
cmqc.h, cmqxc.h, amqsvmha.h, cmqzc.h |
It seems unusual then that cmqbc.h and cmqcfc.h are missing. It's likely that WMQ was not correctly installed. It's a bad idea to just copy missing header files from somewhere else, particularly from a different platform; who knows what else is missing, or what incompatibilities exist between the two different platforms? Installing WMQ should also create symbolic links from the standard include directory (e.g. /usr/include), so that the "-I/opt/mqm/inc" option isn't necessary.
Quote: |
BlockIP2.c: In function âInitialiseDataâ:
BlockIP2.c:1665: warning: implicit declaration of function âsnprintfâ |
The 'â' is unusual, but that's a separate problem. Look for the snprintf() declaration in the /usr/include/stdio.h header file, and try to determine which "gcc -D" options are necessary to declare that function correctly. |
|
Back to top |
|
 |
zpat |
Posted: Wed May 16, 2012 3:32 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I'm fairly sure I had this problem with missing includes as well (on RHEL) - so maybe the IBM Linux MQ install script has a bug in it. |
|
Back to top |
|
 |
|