Author |
Message
|
GMcCarthy |
Posted: Thu Apr 13, 2006 11:05 am Post subject: Saveqmgr problem on 64 bit z/Linux |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
I think it's supposed to work, but I cannot get the make to work... Any suggestions?
makefile.linux:
# Set LCOPTS - the linker options
# add -m31 for 64 bit Linux under zSeries
LCOPTS = -m31 -o $@ -L$(MQMLIB) -L. $(LIBS)
Error:
mqm@usmlse11:~/ms03> make -f makefile.linux
gcc -m31 -o saveqmgr.linux -L/opt/mqm/lib -L. -lm -lmqm saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue.o authinfo.o listener.o services.o stgclass.o system.o usage.o log.o cfstruct.o archive.o
collect2: ld terminated with signal 11 [Segmentation fault], core dumped
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `saveqmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `namelist.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `channel.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `mqutils.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `process.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `qmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `queue.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `authinfo.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `listener.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `services.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `stgclass.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `system.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `usage.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `log.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `cfstruct.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `archive.o' is incompatible with s390:31-bit output
make: *** [saveqmgr.linux] Error 1 _________________ Regards,
Gina
IBM Certified MQSeries Specialist |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 13, 2006 11:36 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
(I need to setup a zLinux system someday)...what happens if you leave the -m31 flag off? _________________ -wayne |
|
Back to top |
|
 |
GMcCarthy |
Posted: Thu Apr 13, 2006 11:40 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
Wayne,
Thanks for responding!
I wasn't sure I was setting the flag correctly.
*****
# Set LCOPTS - the linker options
# add -m31 for 64 bit Linux under zSeries
LCOPTS = -o $@ -L$(MQMLIB) -L. $(LIBS)
LCOPTC = -o $@ -L$(MQMLIB) -L. $(LIBC)
*****
mqm@usmlse11:~/ms03> make -f makefile.linux
gcc -o saveqmgr.linux -L/opt/mqm/lib -L. -lm -lmqm saveqmgr.o namelist.o channel
.o mqutils.o process.o qmgr.o queue.o authinfo.o listener.o services.o stgclass.
o system.o usage.o log.o cfstruct.o archive.o
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: ski
pping incompatible /opt/mqm/lib/libmqm.so when searching for -lmqm
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: ski
pping incompatible /usr/lib/libmqm.so when searching for -lmqm
/usr/lib64/gcc-lib/s390x-suse-linux/3.2/../../../../s390x-suse-linux/bin/ld: can
not find -lmqm
collect2: ld returned 1 exit status
make: *** [saveqmgr.linux] Error 1
BTW....I have a tie that matches your avatar.  |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 13, 2006 11:45 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
BTW....I have a tie that matches your avatar. |
Do you now? Did you know that was referred to as a "Steve Craggs" tie?
but anyways.... can you link anything else, like amqsput? _________________ -wayne |
|
Back to top |
|
 |
GMcCarthy |
Posted: Thu Apr 13, 2006 11:54 am Post subject: |
|
|
 Centurion
Joined: 06 Nov 2001 Posts: 113 Location: Melville NY
|
[quote="wschutz"]
Quote: |
Do you now? Did you know that was referred to as a "Steve Craggs" tie? |
OK, lost me there! explain, please? Yeah, still in the plastic protector since I don't wear ties.
wschutz wrote: |
but anyways.... can you link anything else, like amqsput? |
Don't know...didn't have to. Would you like me to try? |
|
Back to top |
|
 |
wschutz |
Posted: Thu Apr 13, 2006 12:52 pm Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Okay, my avatar is obviously the old MQSeries logo. Back in the mid-90's, the MQ product manager at the time decided to have these MQSeries ties made, with the MQSeries logo as the pattern. The product manager was, of course, named Steve Craggs. I've worn mine many times (and maybe I'll wear it in Atlanta), the original plastic container nearly shot.
Yes, please try to compile amqsput and see if that works. _________________ -wayne |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 1:03 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
I am also facing this problem now.. Anyone has solved it?
Thanks & Regards,
Sridhar H |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 30, 2006 1:38 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
What zLinux platform, version? What is the output of make? _________________ -wayne |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 1:43 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
Thanks,
Our environment runs on SuSE Linux Enterprise Edition 9.1 for S/390
Quote: |
lmrln2-p:~/ms03 # make -f makefile.linux
gcc -m31 -o saveqmgr.linux -L/opt/mqm/lib -L. -lm -lmqm saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue.o authinfo.o listener.o services.o stgclass.o system.o usage.o log.o cfstruct.o archive.o
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `saveqmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `namelist.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `channel.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `mqutils.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `process.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `qmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `queue.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `authinfo.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `listener.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `services.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `stgclass.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `system.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `usage.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `log.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `cfstruct.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `archive.o' is incompatible with s390:31-bit output
make: *** [saveqmgr.linux] Error 1
|
Regards,
Sridhar H |
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 30, 2006 1:53 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Gina did get it working .... can you "rm *.o" and "touch *.c" and then try the make again? It's only exec'ing the linker .....
but first... ... since you are 64 bits,..
add "-m64" to the LCOPTS and LCOPTC variables in the makefile and
MQMLIB should be /opt/mqm/lib64 _________________ -wayne |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 2:05 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
Thanks for your reply,
I have changed MQMLIB to /opt/mqm/lib64 and ran the script. Please check the message below.
Quote: |
lmrln2-p:~/ms03 # make -f makefile.linux
gcc -c -DUNIX -Wall -o saveqmgr.o -I. -I/opt/mqm/inc saveqmgr.c
gcc -c -DUNIX -Wall -o namelist.o -I. -I/opt/mqm/inc namelist.c
gcc -c -DUNIX -Wall -o channel.o -I. -I/opt/mqm/inc channel.c
gcc -c -DUNIX -Wall -o mqutils.o -I. -I/opt/mqm/inc mqutils.c
gcc -c -DUNIX -Wall -o process.o -I. -I/opt/mqm/inc process.c
gcc -c -DUNIX -Wall -o qmgr.o -I. -I/opt/mqm/inc qmgr.c
gcc -c -DUNIX -Wall -o queue.o -I. -I/opt/mqm/inc queue.c
gcc -c -DUNIX -Wall -o authinfo.o -I. -I/opt/mqm/inc authinfo.c
gcc -c -DUNIX -Wall -o listener.o -I. -I/opt/mqm/inc listener.c
gcc -c -DUNIX -Wall -o services.o -I. -I/opt/mqm/inc services.c
gcc -c -DUNIX -Wall -o stgclass.o -I. -I/opt/mqm/inc stgclass.c
gcc -c -DUNIX -Wall -o system.o -I. -I/opt/mqm/inc system.c
gcc -c -DUNIX -Wall -o usage.o -I. -I/opt/mqm/inc usage.c
gcc -c -DUNIX -Wall -o log.o -I. -I/opt/mqm/inc log.c
gcc -c -DUNIX -Wall -o cfstruct.o -I. -I/opt/mqm/inc cfstruct.c
gcc -c -DUNIX -Wall -o archive.o -I. -I/opt/mqm/inc archive.c
gcc -m31 -o saveqmgr.linux -L/opt/mqm/lib64 -L. -lm -lmqm saveqmgr.o namelist.o channel.o mqutils.o process.o qmgr.o queue.o authinfo.o listener.o services.o stgclass.o system.o usage.o log.o cfstruct.o archive.o
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `saveqmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `namelist.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `channel.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `mqutils.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `process.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `qmgr.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `queue.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `authinfo.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `listener.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `services.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `stgclass.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `system.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `usage.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `log.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `cfstruct.o' is incompatible with s390:31-bit output
/usr/lib64/gcc-lib/s390x-suse-linux/3.3.3/../../../../s390x-suse-linux/bin/ld: warning: s390:64-bit architecture of input file `archive.o' is incompatible with s390:31-bit output
make: *** [saveqmgr.linux] Error 1
|
Regards,
Sridhar H |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 2:07 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
But, I dont find /opt/mqm/lib64 directory in our installation.
Quote: |
lmrln2-p:/opt/mqm # ll
total 68
dr-xr-xr-x 15 mqm mqm 4096 Jul 26 11:17 .
drwxr-xr-x 6 root root 4096 Jun 8 10:48 ..
drwxr-xr-x 3 root root 4096 Jul 18 11:13 PLMRZPM1
dr-xr-xr-x 14 mqm mqm 4096 Jun 8 10:48 READMES
drwxr-xr-x 3 root root 4096 Jul 26 11:52 TLMRZTM2
drwxr-xr-x 2 mqm mqm 4096 Jun 8 10:48 bin
dr-xr-xr-x 4 mqm mqm 4096 Jun 8 10:48 inc
drwxr-xr-x 4 mqm mqm 4096 Jun 8 10:48 java
drwxr-xr-x 7 mqm mqm 4096 Jun 8 10:48 lib
dr-xr-xr-x 2 mqm mqm 4096 Jun 8 10:48 licenses
drwxr-xr-x 3 root root 4096 Jun 11 21:00 mysalinux
drwxr-xr-x 3 root root 4096 Jul 17 15:48 newsalinux
drwxr-xr-x 3 root root 4096 Jul 17 12:19 salinux
-rw-r--r-- 1 root root 7100 Jun 9 13:17 salinux.tar.gz
dr-xr-xr-x 8 mqm mqm 4096 Jun 8 10:48 samp
dr-xr-xr-x 2 mqm mqm 4096 Jun 8 10:48 tivoli
|
|
|
Back to top |
|
 |
wschutz |
Posted: Wed Aug 30, 2006 2:17 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Sorry, I thought this was 64 bit MQ.. what version of MQ is it?
However, in any case:
You are running an s390x (64bit) Linux, which can be confirmed
with the 'uname -m' command, so you may need to install these
RPMs from the SuSE install media to build s390 (31bit) binaries:
SLES8:
addonlibs-32bit-*.s390
baselibs-32bit-*.s390
glibc-32bit-*.s390
glibc-devel-32bit-*.s390
s390-32-*.s390
SLES9:
glibc-32bit-*.s390
glibc-devel-32bit-*.s390
libgcc-32bit-*.s390
Let me know if this works for you.... _________________ -wayne |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 4:21 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
Check the output of the command.
Quote: |
lmrln2-p:~ # uname -a
Linux lmrln2-p 2.6.5-7.244-s390x #1 SMP Mon Dec 12 18:32:25 UTC 2005 s390x s390x s390x GNU/Linux
|
.
I will check with administrator and apply those RPMs .. Thanks ..
Regards,
Sridhar H |
|
Back to top |
|
 |
specsri |
Posted: Wed Aug 30, 2006 4:45 am Post subject: |
|
|
Novice
Joined: 12 Aug 2006 Posts: 16
|
One more suggestion.. I am currently using Intel Linux MQ server for testing purpose. I am able to run saveqmgr.linux file in ms03 in that environment. Will it be possible to use same command to generate QM Manager configuration of remote server. I have seen saveqmgrc.linux but dont know to use it.
Thanks & Regards,
Sridhar H |
|
Back to top |
|
 |
|