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 » IBM MQ API Support » APIExit compilation command in HPUX using gcc compiler

Post new topic  Reply to topic
 APIExit compilation command in HPUX using gcc compiler « View previous topic :: View next topic » 
Author Message
chinna
PostPosted: Tue Aug 09, 2005 12:10 pm    Post subject: APIExit compilation command in HPUX using gcc compiler Reply with quote

Newbie

Joined: 27 May 2005
Posts: 8

Dear All,
Any one have or knows how to compile the APIExit using gcc compiler in HPUX, Please send the compilation details if any one have.
Thanks in Advance.


Regards
Chinna
Back to top
View user's profile Send private message Send e-mail
wschutz
PostPosted: Tue Aug 09, 2005 4:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

For mqv5.3:
Code:
$ c89 -c +z +e exit.c
$ ld -o exit exit.o +b : -c exit.exp +IMQStart +eMQStart -b
$ cp exit /usr/xmp/lib # (or wherever you require)
for mqv6.0:
Code:
$ c89 +DD64 +z -c -D_HPUX_SOURCE -o exit.o exit.c -I/opt/mqm/inc
$ ld -b +noenvvar exit.o +ee MQStart +ee ChannelExit -o
/var/mqm/exits64/exit -L/opt/mqm/lib64 -L/usr/lib/pa20_64 -lmqm_r -lpthread
$ rm exit.o
afaik, gcc isn't suppotrted on hpux.
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Jeeva
PostPosted: Wed Sep 07, 2005 7:18 am    Post subject: APIExit compilation in HP-UX Reply with quote

Novice

Joined: 16 Feb 2005
Posts: 12
Location: India

Hi,
I have tried to compile using c89 compiler with the below mentioned commands but it failed to execute the ld command

i have created the .exp file and it contains
EntryPoint

Can you tell me what value I should have in exit.exp file.

Thanks
Jeeva
Back to top
View user's profile Send private message
Nigelg
PostPosted: Wed Sep 07, 2005 11:57 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

You should have a list of functions you want to export from your shared library. You should be able to find the syntax using the search button.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
dakshin_r
PostPosted: Thu Sep 22, 2005 2:08 am    Post subject: Resolved Reply with quote

Newbie

Joined: 25 Jul 2004
Posts: 2

Hi all,

Here we got the Solution for the same.

export myinclude="-I/opt/mqm/inc -I. -I/usr/include -I/usr/include/sys"

export myccflags="-D_HPUX_SOURCE +DAportable -c +e +z"

c89 $myccflags $myinclude -o Exit.o Exit.c

ld -b Exit.o -o Exit -L/opt/mqm/lib -lmqm -lmqmzf -lc +IMQStart

ld -b Exit.o -o Exit -L/opt/mqm/lib -lmqm_r -lmqmzf_r -lpthread -lc_r +IMQStart


Thanks for All your valuable response.

Dakshin
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » APIExit compilation command in HPUX using gcc compiler
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.