Author |
Message
|
rjl_state |
Posted: Tue Mar 04, 2008 10:58 am Post subject: MS03 Save Qmgr for NSK |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
Has anyone been able to get this to work for NSK 5.3.1.1??
I saw old post the had a link to something that they said worked for I assume was 5.1, but the link no longer works.
Thanks in advance. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 04, 2008 11:05 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I'm all ears on this.
MS03 developers have never had access to an NSK system, afaik, and I still don't.
If you can post what you've tried, I can do my best to assist... bearing in mind that I don't know NSK at all.
Maybe one of our MQSeries.net NSK experts will lend a hand as well.... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rjl_state |
Posted: Tue Mar 04, 2008 11:20 am Post subject: MS03 Save Qmgr for NSK |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
I don't know where to start.
I could start with trying to use the make file for version 5.1 to start with.
I had to modify it to point to the proper include files for my installation and then when I run the make command with the -n option the output looks like this:
/usr/rjl_state: make -n -f makefile.nsk
[b]cp cmqc.h[/b]
[b]cp cmqcfc.h
cp cmqxc.h
cp mqmlibn.o[/b]
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys saveqmgr.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys namelist.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys channel.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys mqutils.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys process.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys qmgr.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys queue.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys authinfo.c
c89 -o saveqmgr saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue
.o authinfo.o mqmlibn.o -L. -Whighpin=on -Whighrequesters-on -Wrunnamed -Winspec
t -Wsaveabend -Wsystype=gaurdian
The problem is the cp commands at the beginning are not formatted properly. If I knew what you were trying to do with them, maybe I could get them to format correctly.
A sample command in the make file looks like this:
cmqc.h: ${MQINCDIR}/cmqc.h
cp $< $@
Thanks again. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 04, 2008 11:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay...
That is a little odd. I hadn't looked at that file before.
What it should be doing is creating a local copy of the .h files in the cwd, so that they will be found during the compile step.
I can't speculate as to why that's necessary, though. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rjl_state |
Posted: Tue Mar 04, 2008 12:05 pm Post subject: |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
If that is what you wanted, I was able to get a little further by just hard coding in the copy commands into the make file.
Now when I run it with the -n option to view the commands it looks like this:
/usr/rjl_state: make -n -f makefile.nsk
cp /G/data/zmqslib/mqmlibn mqmlibn
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys saveqmgr.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys namelist.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys channel.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys mqutils.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys process.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys qmgr.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys queue.c
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys authinfo.c
c89 -o saveqmgr saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue
.o authinfo.o mqmlibn.o -L. -Whighpin=on -Whighrequesters-on -Wrunnamed -Winspec
t -Wsaveabend -Wsystype=gaurdian
I don't know what is wrong with the c89 compile statements, but something isn't syntactically correct. See output from actual run below:
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys saveqmgr.c
usage: c89 [-c] [-D name[=value]]... [-E] [-g] [-I directory]...
[-L directory]... [-o outfile] [-O] [-s] [-U name]...
[-W[cprep|cfront|ccom|bind|nobind|axcel|sql][="args"]
[-WBstatic|-WBdynamic] [-Wrunlib=path] [-Wcfonly]
[-Wsystype={g[uardian] | o[ss]}] [-Wverbose] [file...]
@(#) $Version: T8629D42_12Jul96_TNSc89_960629 $
*** Error code 1
Stop.
Thanks again. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 04, 2008 12:24 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay, the problem appears to be with "$<". This is the same problem with the cp commands.
What the "$<" should be doing, at least if I am reading the makefile.nsk correctly, is being a substitution mark for the current file being processed.
So
Code: |
cmqc.h: ${MQINCDIR}/cmqc.h
cp $< $@ |
Should have produced a cp command that looked like
Code: |
cp /G/system/zmqslib/cmqc.h cmqc.h |
And the
Code: |
#the object files depend on the corresponding source files
.c.o:
$(CC) $(CCOPTS) -I. -I/usr/include -I/usr/include/sys $< |
Should be running the c89 command with the various expanded options/includes and the name of the current .c file being processed as the last parameter.
I don't know if this is an NSK shell problem, or an issue with the make you are using.
At least, this is my best guess. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rjl_state |
Posted: Tue Mar 04, 2008 12:47 pm Post subject: |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
From the command output it looks like the .c filename is present:
c89 -c -DUNIX -Wextensions -Wsystype=oss -Wnowarn=262,1506,770 -I. -I/G/data/zmq
slib -I. -I/usr/include -I/usr/include/sys [b]saveqmgr.c[/b]
Perhaps someone who is a NSK guru will look at this tomorrow morning and have a solution.
Thanks! |
|
Back to top |
|
 |
Michael Dag |
Posted: Tue Mar 04, 2008 12:58 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
rjl_state wrote: |
Perhaps someone who is a NSK guru will look at this tomorrow morning and have a solution.
|
I think your answer can be found in this link or at least someone who has been there before... good luck! _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Mar 04, 2008 1:20 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Michael Dag wrote: |
rjl_state wrote: |
Perhaps someone who is a NSK guru will look at this tomorrow morning and have a solution.
|
I think your answer can be found in this link or at least someone who has been there before... good luck! |
Um. not apparently any more. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rjl_state |
Posted: Tue Mar 04, 2008 2:18 pm Post subject: Re: MS03 Save Qmgr for NSK |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
[quote="rjl_state"]
I saw old post the had a link to something that they said worked for I assume was 5.1, but the link no longer works.
[/quote]
As I said, I saw the link, but it no longer works. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Mar 04, 2008 5:16 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
rjl_state, if this QM allows client connections just run MS03 in client mode from a central server and pick a central server that can run one of the supplied compiled MS03 client versions (i.e. Windows or Linux) _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
rjl_state |
Posted: Wed Mar 05, 2008 5:30 am Post subject: |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
[quote]rjl_state, if this QM allows client connections just run MS03 in client mode from a central server and pick a central server that can run one of the supplied compiled MS03 client versions (i.e. Windows or Linux)
[/quote]
Unfortunately, I do not have access to another platform that has MQ. I am the NSK Sys Admin not the Enterprise MQ Admin.
Thanks. |
|
Back to top |
|
 |
rjl_state |
Posted: Wed Mar 05, 2008 10:58 am Post subject: |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
I figured it out!!
I was able to get this to work with WMQ 5.3.1.1, compiled it and ran it under oss.
jefflowrey, do you want me to post the make file I used?
The changes had to do with the copy (cp) commands, the directory used for the include files and the library file location and name, the options used for the compile command and load command.
 |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 05, 2008 11:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
rjl_state wrote: |
I figured it out!! |
rjl_state wrote: |
jefflowrey, do you want me to post the make file I used?
|
Please, yes. I'll incorporate it into the next release, if you don't mind. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
rjl_state |
Posted: Wed Mar 05, 2008 1:46 pm Post subject: |
|
|
 Apprentice
Joined: 04 Oct 2002 Posts: 48 Location: Des Moines, IA
|
Here it is, feel free to use it.
I followed the instructions already there about how to uncompress the files, and this worked for me to create a version of saveqmgr that runs in oss and works for WMQ 5.3.1.1 for NSK.
The only dependencies I can see are knowing our MQ include directory and MQMTNS Guardian direcotry.
# This Makefile makes the saveqmgr executable on NSK (ms03)
# (C) Copyright IBM Corporation 1995, 1997, 1998, 1999, 2000, 2002, 2003
# 2004, 2005, 2006
#
MQINCDIR = /usr/ibm/wmq/opt/mqm/inc
MQINC = cmqc.h cmqcfc.h cmqxc.h
MQMLIB = /G/system/zwmqbin
all: ${MQINC} mqmtns.o saveqmgr
# set TARGET to the name of the executable to create
TARGET = saveqmgr
# CC defines the compiler. Set to "c89" for ANSI compliant C compiler.
CC=c89
# Set CCOPTS - the compiler options.
CCOPTS = -c -Wsystype=oss -I/usr/ibm/wmq/opt/mqm/inc -I/G/system/zwmqbin
LFLAGS= -Wsystype=oss
OBJS = saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue.o authinfo.o
saveqmgr : $(OBJS)
$(CC) -o saveqmgr $(OBJS) mqmtns.o -L. $(LFLAGS)
saveqmgr.o : saveqmgr.c saveqmgr.h
channel.o : channel.c saveqmgr.h
mqutils.o : mqutils.c saveqmgr.h
process.o : process.c saveqmgr.h
namelist.o : namelist.c saveqmgr.h
qmgr.o : qmgr.c saveqmgr.h
queue.o : queue.c saveqmgr.h
authinfo.o : authinfo.c saveqmgr.h
#the object files depend on the corresponding source files
.c.o:
$(CC) $(CCOPTS) -I. -I/usr/include -I/usr/include/sys $<
mqmtns.o: ${MQMLIB}/mqmtns
cp ${MQMLIB}/mqmtns mqmtns.o
cmqc.h: ${MQINCDIR}/cmqc.h
cp ${MQINCDIR}/cmqc.h cmqc.h
cmqcfc.h: ${MQINCDIR}/cmqcfc.h
cp ${MQINCDIR}/cmqcfc.h cmqcfc.h
cmqxc.h: ${MQINCDIR}/cmqxc.h
cp ${MQINCDIR}/cmqxc.h cmqxc.h |
|
Back to top |
|
 |
|