|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Exit errno 8 |
« View previous topic :: View next topic » |
Author |
Message
|
vennela |
Posted: Wed Jul 28, 2004 8:01 am Post subject: Message Exit errno 8 |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I have downloaded MA06 support pack. This is on HP-UX box. I compiled the program msgmon.c and put it in /var/mqm/exits.
Altered the channel to
Code: |
MSGEXIT(/var/mqm/exits/msgmon.o(MsgExit)) |
It is giving the following error
Quote: |
AMQ6188: The system could not dynamically load the shared library
'/var/mqm/exits/msgmon.o' due to a problem with the library. The errno was 8
and the error message was 'Exec format error'. The queue manager will continue
without this library.
EXPLANATION:
This message applies to AIX, HP-UX and Linux systems. The shared library
'/var/mqm/exits/msgmon.o' failed to load correctly due to a problem with the
library.
ACTION:
Check that the library exists and is in the correct place with the correct file
permissions etc. and has not been corrupted.
|
Any idea what I am doing wrong |
|
Back to top |
|
 |
clindsey |
Posted: Wed Jul 28, 2004 10:13 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Venny,
Try msgmon, not msgmon.o.
msgmon.o is just the object file that has not been linked with loader code.
edit > sorry that was a bad answer. I looked at the readme for this supportpac and it seems msgmon.o is the linked library. However, it was built for aix so after you compile on hp, what ever name you gave as the output from the linker is the one you want to use.
From chapter 46 in the InterCommunications Guide, I believe your compile and link statements will look something like:
Code: |
c89 -c +z +e msgmon.c
ld -o msgmon msgmon.o +b : -c msgmon.exp +IMsgExit +eMsgExit -b
|
Then copy msgmon to the exits directory
Charlie |
|
Back to top |
|
 |
vennela |
Posted: Wed Jul 28, 2004 12:01 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
I tried to compile those and I am getting the following errors:
For c89 -c +z +e msgmon1.c
Quote: |
cc: "msgmon1.c", line 126: error 1574: Unknown size for "t".
cc: "msgmon1.c", line 135: error 1530: Undefined struct or union.
cc: "msgmon1.c", line 135: warning 563: Argument #3 is not the correct type.
cc: "msgmon1.c", line 135: error 1530: Undefined struct or union.
cc: "msgmon1.c", line 135: warning 563: Argument #4 is not the correct type.
|
And line 125 is
I am not a very good C coder so please bear with me on this.
Looks like it is having hard time finding the header file. I found the header file timb.h is in /usr/include/sys but not sure how to make the compiler to go look at that. Or maybe the problem is something else |
|
Back to top |
|
 |
clindsey |
Posted: Wed Jul 28, 2004 12:34 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
I don't have access to an hp server. Is the filename really timb.h without the e. If so, edit the source c file and change the line
#include <sys/timeb.h>
to
#include <sys/timb.h>
Charlie |
|
Back to top |
|
 |
clindsey |
Posted: Wed Jul 28, 2004 12:58 pm Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
If the compile and link steps above do not work, try these:
c89 -D_HPUX_SOURCE +DAportable -c +e +z msgmon.c
ld -o msgmon msgmon.o -b -z +b/usr/lib
Charlie |
|
Back to top |
|
 |
vennela |
Posted: Wed Jul 28, 2004 1:29 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Thanks Charlie
It was a typo and it was timeb.h (with an e) and I mispelled it.
However your compile instructions did work and I was able to compile and link and the channel started fine.
Thanks a lot. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|