ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Block IP2 for Suse Linux

Post new topic  Reply to topic Goto page 1, 2  Next
 Block IP2 for Suse Linux « View previous topic :: View next topic » 
Author Message
dev135
PostPosted: Thu May 10, 2012 6:28 pm    Post subject: Block IP2 for Suse Linux Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Fri May 11, 2012 2:00 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzal.doc/fg16400_.htm
Back to top
View user's profile Send private message
zpat
PostPosted: Fri May 11, 2012 2:40 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 5:37 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri May 11, 2012 5:56 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri May 11, 2012 6:35 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 7:05 am    Post subject: Reply with quote

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
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri May 11, 2012 9:40 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

what's in the your ini file?
Back to top
View user's profile Send private message
dev135
PostPosted: Fri May 11, 2012 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
oz1ccg
PostPosted: Sat May 12, 2012 2:21 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
rekarm01
PostPosted: Wed May 16, 2012 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed May 16, 2012 3:32 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » General IBM MQ Support » Block IP2 for Suse Linux
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.