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 » compile problems on solaris

Post new topic  Reply to topic
 compile problems on solaris « View previous topic :: View next topic » 
Author Message
pmanington
PostPosted: Wed Feb 04, 2004 7:37 am    Post subject: compile problems on solaris Reply with quote

Newbie

Joined: 04 Feb 2004
Posts: 7

Hi,

I'm trying to compile the example program amqscnxc.c which links in cmqc.h and cmqxc.h on solaris.

I've compiled a fair few of the examples no problem but this one throws a rather wierd error. Here's the command i used to compile and the error i recieved (there was a whole lot more afterwards but all related to there being no definition for MQCD which is what this bit of code does.

ukdrsgpi007# gcc -O -I.. -I/opt/mqm/inc -c amqscnxc.c
In file included from amqscnxc.c:3:
cmqxc.h:406: parse error before `MQBYTE40'
cmqxc.h:406: warning: no semicolon at end of struct or union
cmqxc.h:407: warning: data definition has no type or storage class
cmqxc.h:408: warning: data definition has no type or storage class
cmqxc.h:409: parse error before `*'
cmqxc.h:409: warning: data definition has no type or storage class

the version of solaris i'm compiling on is 5.5.1

Any ideas?
Back to top
View user's profile Send private message
pmanington
PostPosted: Thu Feb 05, 2004 8:42 am    Post subject: Reply with quote

Newbie

Joined: 04 Feb 2004
Posts: 7

No ideas then....?

The file it's talking about is cmqxc.h

here are lines 405 to 407

MQBYTE40 MCASecurityId; /* MCA security identifier */
MQBYTE40 RemoteSecurityId; /* Remote security identifier */
} MQCD;

I can't see anything wrong and I havn't changed the file at all, it's as supplied by IBM....
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Feb 11, 2004 6:15 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I don't believe gcc is a supported compiler:

http://www-306.ibm.com/software/integration/mqfamily/platforms/supported/wsmq_for_solaris_5_3.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
pmanington
PostPosted: Wed Feb 11, 2004 6:36 am    Post subject: Reply with quote

Newbie

Joined: 04 Feb 2004
Posts: 7

Well it compiles all of the other test programs fine.

I can also use the MQCONNX command happily as long as I don't use the MQCD structure that is provided in the file cmqxc.c . The annoying thing is, that's the bit I want to use as I need to connect to a specific queue manager in a cluster and that's the only way I can think of doing it.
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 » IBM MQ API Support » compile problems on solaris
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.