Author |
Message
|
chinna |
Posted: Tue Aug 09, 2005 12:10 pm Post subject: APIExit compilation command in HPUX using gcc compiler |
|
|
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 |
|
 |
wschutz |
Posted: Tue Aug 09, 2005 4:21 pm Post subject: |
|
|
 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 |
|
 |
Jeeva |
Posted: Wed Sep 07, 2005 7:18 am Post subject: APIExit compilation in HP-UX |
|
|
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 |
|
 |
Nigelg |
Posted: Wed Sep 07, 2005 11:57 pm Post subject: |
|
|
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 |
|
 |
dakshin_r |
Posted: Thu Sep 22, 2005 2:08 am Post subject: Resolved |
|
|
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 |
|
 |
|