Skip Menu |

This queue is for tickets about the MQSeries CPAN distribution.

Report information
The Basics
Id: 6787
Status: resolved
Worked: 5 min
Priority: 0/
Queue: MQSeries

People
Owner: Hildo.Biersma [...] gmail.com
Requestors: tobias.herbert [...] herbert-consult.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.23
Fixed in: (no value)



Subject: MQULONG not defined / patched to MQLONG seems to work
I have tried to upgrade with my Solaris perl (5.8.0 and 5.8.4) to the current version (from 1.19 to 1.23). Unfortunately MQULONG typedef is not created. Patching the Source Code file MQSeries.c with sed -e "s/MQULONG/MQLONG/g" seems to help. Still under investigation for the reaso and testing... Below the broken build.... Greet/pbo/bin/perl "-I../blib/arch" "-I../blib/lib" typemap.PL typemap /pbo/bin/perl /pbo/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /pbo/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap MQSeries.xs > MQSeries.xsc && mv MQSeries.xsc MQSeries.c gcc -c -I"/opt/mqm/inc" -I../include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fPIC "-I/pbo/lib/perl5/5.8.0/sun4-solaris/CORE" MQSeries.c cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory MQSeries.c: In function `XS_MQClient__MQSeries_constant_hex': MQSeries.c:107: `MQULONG' undeclared (first use in this function) MQSeries.c:107: (Each undeclared identifier is reported only once MQSeries.c:107: for each function it appears in.) MQSeries.c:107: parse error before "RETVAL" MQSeries.xs:99: parse error before "Result" MQSeries.xs:101: `Result' undeclared (first use in this function) gmake[1]: *** [MQSeries.o] Error 1 gmake[1]: Leaving directory `/home/ex9238/HSHperl/x/MQSeries-1.23/MQClient' gmake: *** [subdirs] Error 2
[guest - Tue Jun 29 08:53:17 2004]: Show quoted text
> I have tried to upgrade with my Solaris perl (5.8.0 and 5.8.4) to the > current version (from 1.19 to 1.23). Unfortunately MQULONG typedef > is not created. Patching the Source Code file MQSeries.c with sed > -e "s/MQULONG/MQLONG/g" seems to help. Still under investigation > for the reaso > and testing...
This occurs if you are running a no longer supported release of the IBM-supplied MQSeries client libraries. The MQULONG typedef is present on Solaris since at least MQ 5.2 CSD02 (I don';t have any older); the earliest release still supported by IBM is WMQ 5.3. Your work-around may break on 64-bit clients. For that reason, I am hesitant to make the use of MQULONG conditional on it being defined.
From: Neil Coulton
This problem can be solved by installing the latest PTF, or at least it worked when I installed CSD08 (AIX) onto MQ 5.2, CSD08 also exists for Solaries [guest - Tue Jun 29 08:53:17 2004]: Show quoted text
> I have tried to upgrade with my Solaris perl (5.8.0 and 5.8.4) to the > current version (from 1.19 to 1.23). Unfortunately MQULONG typedef > is not created. Patching the Source Code file MQSeries.c with sed > -e "s/MQULONG/MQLONG/g" seems to help. Still under investigation > for the reaso > and testing... > > Below the broken build.... > > Greet/pbo/bin/perl "-I../blib/arch" "-I../blib/lib" typemap.PL
typemap Show quoted text
> /pbo/bin/perl /pbo/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap > /pbo/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap
MQSeries.xs Show quoted text
> > MQSeries.xsc && mv MQSeries.xsc MQSeries.c
> gcc -c -I"/opt/mqm/inc" -I../include -fno-strict-aliasing > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O > -DVERSION=\"1.23\" -DXS_VERSION=\"1.23\" -fPIC "- > I/pbo/lib/perl5/5.8.0/sun4-solaris/CORE" MQSeries.c > cc1: warning: changing search order for system directory > "/usr/local/include" > cc1: warning: as it has already been specified as a non-system > directory > MQSeries.c: In function `XS_MQClient__MQSeries_constant_hex': > MQSeries.c:107: `MQULONG' undeclared (first use in this function) > MQSeries.c:107: (Each undeclared identifier is reported only once > MQSeries.c:107: for each function it appears in.) > MQSeries.c:107: parse error before "RETVAL" > MQSeries.xs:99: parse error before "Result" > MQSeries.xs:101: `Result' undeclared (first use in this function) > gmake[1]: *** [MQSeries.o] Error 1 > gmake[1]: Leaving directory `/home/ex9238/HSHperl/x/MQSeries- > 1.23/MQClient' > gmake: *** [subdirs] Error 2 >