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 » Channel Exit and LIBPATH (AIX)

Post new topic  Reply to topic
 Channel Exit and LIBPATH (AIX) « View previous topic :: View next topic » 
Author Message
cheanfeiy
PostPosted: Mon Dec 01, 2003 10:39 pm    Post subject: Channel Exit and LIBPATH (AIX) Reply with quote

Apprentice

Joined: 21 Jun 2003
Posts: 26

I've wrote a channel exit program which uses a shared library created by me too. I put the shared library under /temp/abc and have set the LIBPATH environment variable by specifying LIBPATH=/temp/abc:$LIBPATH. However, when I start the channel, MQSeries reported it can't load the channel exit program and the channel was in retrying status. But, if I put my shared library into /usr/lib or /usr/mqm/lib, the channel exit program loaded successfully and the channel started.

I also wrote a small exit program to get the current environment variables' value but it happens that the LIBPATH environment variable is not exist at all???

Does anyone also experienced the same scenario?? Please help. Thanks in advance.
Back to top
View user's profile Send private message
dgolding
PostPosted: Mon Dec 01, 2003 11:45 pm    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

Hi, I'm not an AIX expert but your setting the LIBPATH variable in your environment, is to be brutally honest, useless.

You need to set the variable in the environment of the queue manager, as this starts the channel. As it has no .profile or startup script, you can't change that. You MIGHT get away with changing /etc/profile, but this seems an overkill - you've chnaged EVERYBODY'S environment.

What's wrong with putting it in /usr/lib? AFAIK you could just link it to another location anyway?

HTH
Back to top
View user's profile Send private message Visit poster's website
markt
PostPosted: Tue Dec 02, 2003 1:02 am    Post subject: setuid Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

Channel programs are setuid. Therefore LIBPATH is ignored.
Back to top
View user's profile Send private message
cheanfeiy
PostPosted: Wed Jan 07, 2004 5:47 pm    Post subject: Channel Exit and LIBPATH (AIX) - Solved Reply with quote

Apprentice

Joined: 21 Jun 2003
Posts: 26

I think the only solution will be putting my shared libraries under /usr/lib or /usr/mqm/lib directory
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Channel Exit and LIBPATH (AIX)
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.