Discussion:
Issue with an exit routine not loading correctly.
Doug Clark
2013-06-13 18:29:35 UTC
Permalink
Need some help figuring out how I can get this exit utility resolved; The
vendor supporting the product is not being very helpful.

06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
Host(twausxmqmapp04)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
0509-026
System error: Cannot run a file that does not have a valid format.'.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with
the
library.
ACTION:
Check the file access permissions and that the file has not been corrupted

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Roger Lacroix
2013-06-13 19:55:19 UTC
Permalink
Hi Doug,

> The vendor supporting the product is not being very helpful.

There is no vendor for MirrorQ - it was IBM employee who wrote it as
a sample API exit and was never intended to be a product that IBM supported.

It could be that you are trying to use a 32-bit build of the shared
library but require a 64-bit build of the shared library.

Regards,
Roger Lacroix
Capitalware Inc.

At 02:29 PM 6/13/2013, you wrote:
>Need some help figuring out how I can get this exit utility
>resolved; The vendor supporting the product is not being very helpful.
>
>06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
> Host(twausxmqmapp04)
>AMQ6175: The system could not dynamically load the shared library
>'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
>message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
> 0509-026
>System error: Cannot run a file that does not have a valid format.'.
>
>EXPLANATION:
>This message applies to AIX systems. The shared library
>'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with the
>library.
>ACTION:
>Check the file access permissions and that the file has not been corrupted
>
>
>----------
><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List Archive
>-
><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>Your List Settings -
><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>
>
>Instructions for managing your mailing list subscription are
>provided in the Listserv General Users Guide available at
><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Lonkoski, Scott T (CTO Service Delivery)
2013-06-13 19:49:16 UTC
Permalink
Are you sure mirrorq is 64bit?
I've seen similar errors if you mix em up.


Scott Lonkoski
IBM Strategic Outsourcing Delivery - The Hartford Account
WebSphere MQ/WMB/BMTM Support Team Lead
Hartford email: slonkoski-***@public.gmane.org
IBM email: slonkosk-r/Jw6+rmf7HQT0dZR+***@public.gmane.org
Pager 1-860-247-8313



________________________________

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On
Behalf Of Doug Clark
Sent: Thursday, June 13, 2013 14:30
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: [MQSERIES] Issue with an exit routine not loading correctly.


Need some help figuring out how I can get this exit utility resolved;
The vendor supporting the product is not being very helpful.

06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
Host(twausxmqmapp04)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/mirrorq'. The system returned error number '8' and
error
message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
0509-026
System error: Cannot run a file that does not have a valid format.'.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem
with the
library.
ACTION:
Check the file access permissions and that the file has not been
corrupted

________________________________

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=sign
off%20mqseries>

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>

************************************************************
This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.
************************************************************

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tim Zielke
2013-06-13 20:23:40 UTC
Permalink
Hi Doug,

If it is not a 32-bit/64-bit, you may want to try a suggestion I found on this web site -> http://fixunix.com/aix/85460-ld_debug-fox-aix.html.

It is saying that "export SINIT_DBG=1" is similar to LD_DEBUG for Linux, which may give you more diagnostic information on why the dynamic loader is failing to load your exit.

Thanks,
Tim

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Roger Lacroix
Sent: Thursday, June 13, 2013 2:55 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Issue with an exit routine not loading correctly.

Hi Doug,

> The vendor supporting the product is not being very helpful.

There is no vendor for MirrorQ - it was IBM employee who wrote it as a sample API exit and was never intended to be a product that IBM supported.

It could be that you are trying to use a 32-bit build of the shared library but require a 64-bit build of the shared library.

Regards,
Roger Lacroix
Capitalware Inc.

At 02:29 PM 6/13/2013, you wrote:

Need some help figuring out how I can get this exit utility resolved; The vendor supporting the product is not being very helpful.

06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
Host(twausxmqmapp04)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
0509-026
System error: Cannot run a file that does not have a valid format.'.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with the
library.
ACTION:
Check the file access permissions and that the file has not been corrupted
________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Roger Lacroix
2013-06-13 20:30:01 UTC
Permalink
Hi Doug,

Here's a noodle twister, on AIX, you need 4 shared libraries for MirrorQ.

- 2 for 32-bit - non-threaded and threaded
i.e.
/var/mqm/exits/mirrorq
/var/mqm/exits/mirrorq_r

- 2 for 64-bit - non-threaded and threaded
i.e.
/var/mqm/exits64/mirrorq
/var/mqm/exits64/mirrorq_r

Do you have all 4 shared libraries correctly built for the particular
environment?

Regards,
Roger Lacroix
Capitalware Inc.

At 03:55 PM 6/13/2013, you wrote:
>Hi Doug,
>
> > The vendor supporting the product is not being very helpful.
>
>There is no vendor for MirrorQ - it was IBM employee who wrote it as
>a sample API exit and was never intended to be a product that IBM supported.
>
>It could be that you are trying to use a 32-bit build of the shared
>library but require a 64-bit build of the shared library.
>
>Regards,
>Roger Lacroix
>Capitalware Inc.
>
>At 02:29 PM 6/13/2013, you wrote:
>>Need some help figuring out how I can get this exit utility
>>resolved; The vendor supporting the product is not being very helpful.
>>
>>06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
>> Host(twausxmqmapp04)
>>AMQ6175: The system could not dynamically load the shared library
>>'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
>>message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
>> 0509-026
>>System error: Cannot run a file that does not have a valid format.'.
>>
>>EXPLANATION:
>>This message applies to AIX systems. The shared library
>>'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with the
>>library.
>>ACTION:
>>Check the file access permissions and that the file has not been corrupted
>>
>>
>>----------
>><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List
>>Archive -
>><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>>Your List Settings -
>><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>>
>>
>>Instructions for managing your mailing list subscription are
>>provided in the Listserv General Users Guide available at
>><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com
>
>
>----------
><http://listserv.meduniwien.ac.at/archives/mqser-l.html>List Archive
>-
><http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1>Manage
>Your List Settings -
><mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>Unsubscribe
>
>
>Instructions for managing your mailing list subscription are
>provided in the Listserv General Users Guide available at
><http://www.lsoft.com/resources/manuals.asp>http://www.lsoft.com

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Doug - Gmail
2013-06-14 03:03:40 UTC
Permalink
Just curious if I set this variable - where do I find the output?



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Tim Zielke
Sent: Thursday, June 13, 2013 3:24 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Issue with an exit routine not loading correctly.



Hi Doug,



If it is not a 32-bit/64-bit, you may want to try a suggestion I found on
this web site -> <http://fixunix.com/aix/85460-ld_debug-fox-aix.html>
http://fixunix.com/aix/85460-ld_debug-fox-aix.html.



It is saying that "export SINIT_DBG=1" is similar to LD_DEBUG for Linux,
which may give you more diagnostic information on why the dynamic loader is
failing to load your exit.



Thanks,

Tim



From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of
Roger Lacroix
Sent: Thursday, June 13, 2013 2:55 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Issue with an exit routine not loading correctly.



Hi Doug,

> The vendor supporting the product is not being very helpful.

There is no vendor for MirrorQ - it was IBM employee who wrote it as a
sample API exit and was never intended to be a product that IBM supported.

It could be that you are trying to use a 32-bit build of the shared library
but require a 64-bit build of the shared library.

Regards,
Roger Lacroix
Capitalware Inc.

At 02:29 PM 6/13/2013, you wrote:

Need some help figuring out how I can get this exit utility resolved; The
vendor supporting the product is not being very helpful.

06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
Host(twausxmqmapp04)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
0509-026
System error: Cannot run a file that does not have a valid format.'.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with
the
library.
ACTION:
Check the file access permissions and that the file has not been corrupted

_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>



_____

List Archive <http://listserv.meduniwien.ac.at/archives/mqser-l.html> -
Manage Your List Settings
<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> -
Unsubscribe
<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%
20mqseries>

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
<http://www.lsoft.com/resources/manuals.asp>


To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Tim Zielke
2013-06-14 12:04:32 UTC
Permalink
Hi Doug,

In Linux, setting "export LD_DEBUG=files" would send this dynmaic linker debugging output to standard error of the next processes that invoke the dynamic linker (i.e. ld.so).

For example, if I wanted to run the amqsput command and get this debugging output sent to STDERR which is redirected to a file amqsput.out, you could do something like the following:

***@linuta3$ export LD_DEBUG=files
***@linuta3$ amqsput TCZ.TEST1 2>amqsput.out
Sample AMQSPUT0 start
target queue is TCZ.TEST1
test1

Sample AMQSPUT0 end
***@linuta3$ cat amqsput.out
9874:
9874: file=libc.so.6 [0]; needed by cat [0]
9874: file=libc.so.6 [0]; generating link map
9874: dynamic: 0x00002b2ed105bb60 base: 0x00002b2ed0d04000 size: 0x000000000035d868
9874: entry: 0x00002b2ed0d22ce0 phdr: 0x00002b2ed0d04040 phnum: 10
9874:

(There is much more output to the amqsput.out file, but I left it off.)

I am not sure how this exit routine is being invoked. I do not recognize the qpmon process name as being part of a queue manager process. So not sure if this is a separate application or part of a queue manager. If you can provide more details on how this is being invoked, I could provide more suggestions. Or better yet, someone on this list who better understands this exit utility you are using could chime in.

Thanks,
Tim

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Doug - Gmail
Sent: Thursday, June 13, 2013 10:04 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Issue with an exit routine not loading correctly.

Just curious if I set this variable - where do I find the output?

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Tim Zielke
Sent: Thursday, June 13, 2013 3:24 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org
Subject: Re: Issue with an exit routine not loading correctly.

Hi Doug,

If it is not a 32-bit/64-bit, you may want to try a suggestion I found on this web site -> http://fixunix.com/aix/85460-ld_debug-fox-aix.html.

It is saying that "export SINIT_DBG=1" is similar to LD_DEBUG for Linux, which may give you more diagnostic information on why the dynamic loader is failing to load your exit.

Thanks,
Tim

From: MQSeries List [mailto:MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org] On Behalf Of Roger Lacroix
Sent: Thursday, June 13, 2013 2:55 PM
To: MQSERIES-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org<mailto:MQSERIES-0lvw86wZMd9k/***@public.gmane.orgAC.AT>
Subject: Re: Issue with an exit routine not loading correctly.

Hi Doug,

> The vendor supporting the product is not being very helpful.

There is no vendor for MirrorQ - it was IBM employee who wrote it as a sample API exit and was never intended to be a product that IBM supported.

It could be that you are trying to use a 32-bit build of the shared library but require a 64-bit build of the shared library.

Regards,
Roger Lacroix
Capitalware Inc.

At 02:29 PM 6/13/2013, you wrote:
Need some help figuring out how I can get this exit utility resolved; The vendor supporting the product is not being very helpful.

06/13/13 12:59:46 - Process(15663302.1) User(mqm) Program(qpmon)
Host(twausxmqmapp04)
AMQ6175: The system could not dynamically load the shared library
'/var/mqm/exits64/mirrorq'. The system returned error number '8' and error
message ' 0509-022 Cannot load module /var/mqm/exits64/mirrorq.
0509-026
System error: Cannot run a file that does not have a valid format.'.

EXPLANATION:
This message applies to AIX systems. The shared library
'/var/mqm/exits64/mirrorq' failed to load correctly due to a problem with the
library.
ACTION:
Check the file access permissions and that the file has not been corrupted
________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

________________________________
List Archive<http://listserv.meduniwien.ac.at/archives/mqser-l.html> - Manage Your List Settings<http://listserv.meduniwien.ac.at/cgi-bin/wa?SUBED1=mqser-l&A=1> - Unsubscribe<mailto:LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org?subject=Unsubscribe&BODY=signoff%20mqseries>

Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com<http://www.lsoft.com/resources/manuals.asp>

To unsubscribe, write to LISTSERV-0lvw86wZMd9k/bWDasg6f+***@public.gmane.org and,
in the message body (not the subject), write: SIGNOFF MQSERIES
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://listserv.meduniwien.ac.at/archives/mqser-l.html
Loading...