|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Strawberry Perl |
« View previous topic :: View next topic » |
Author |
Message
|
persicom |
Posted: Tue Sep 10, 2013 8:38 am Post subject: Strawberry Perl |
|
|
Newbie
Joined: 10 Sep 2013 Posts: 2
|
I have searched for "strawberry" in the forums and I have only found a member named strawberry.
I would like to get the Perl MQSeries module to work with Strawberry Perl on a Windows 2008 Server.
Strawberry, for those of you that do not know, uses it own toolchain. The compiler is a ported version of gcc.
I was able to get through the compilation phase by getting the Perl build process to add
-D_int64=__int64
to the compile line. Then, perhaps predictably, the link phase blew up as shown in the first reply.
I am going to guess that this is an officially unsupported configuration, but I'd like to try and get this going if I can. It's been a while since I've dealt with 'C' and link issues, especially on PC architecture. Any ideas I could get with respect as to how to proceed from here would be helpful.
Thank you.
Last edited by persicom on Tue Sep 10, 2013 8:45 am; edited 2 times in total |
|
Back to top |
|
 |
persicom |
Posted: Tue Sep 10, 2013 8:42 am Post subject: |
|
|
Newbie
Joined: 10 Sep 2013 Posts: 2
|
Sorry for the second post, but for some reason, the original would not submit with this info:
Code: |
dlltool --def MQSeries.def --output-exp dll.exp
g++.exe -o ..\blib\arch\auto\MQClient\MQSeries\MQSeries.dll -Wl,--base-file -Wl,dll.base -mdll -s -L"E:\strawberryBuild\5.18.0.1-64-
20130905-bootstrap\perl\lib\CORE" -L"E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\lib" MQSeries.o constants.o E:\strawberry
Build\5.18.0.1-64-20130905-bootstrap\perl\lib\CORE\libperl518.a E:\mq71\Tools\lib\mqic.lib E:\mq71\Tools\lib\mqic32.lib E:\strawberr
yBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libmoldname.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86
_64-w64-mingw32\lib\libkernel32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libuser32.a E:\strawber
ryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libgdi32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_6
4-w64-mingw32\lib\libwinspool.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libcomdlg32.a E:\strawber
ryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libadvapi32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x8
6_64-w64-mingw32\lib\libshell32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libole32.a E:\strawberr
yBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\liboleaut32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86
_64-w64-mingw32\lib\libnetapi32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libuuid.a E:\strawberry
Build\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libws2_32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64
-w64-mingw32\lib\libmpr.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libwinmm.a E:\strawberryBuild\5
.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libversion.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-m
ingw32\lib\libodbc32.a E:\strawberryBuild\5.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libodbccp32.a E:\strawberryBuild\5
.18.0.1-64-20130905-bootstrap\c\x86_64-w64-mingw32\lib\libcomctl32.a dll.exp
MQSeries.o:MQSeries.c:(.text+0x150): undefined reference to `MQSTAT'
MQSeries.o:MQSeries.c:(.text+0x15aa): undefined reference to `MQSETMP'
MQSeries.o:MQSeries.c:(.text+0x2c28): undefined reference to `MQINQMP'
MQSeries.o:MQSeries.c:(.text+0x3bad): undefined reference to `MQDLTMP'
MQSeries.o:MQSeries.c:(.text+0x40ba): undefined reference to `MQDLTMH'
MQSeries.o:MQSeries.c:(.text+0x45d3): undefined reference to `MQCRTMH'
MQSeries.o:MQSeries.c:(.text+0x4f91): undefined reference to `MQSET'
MQSeries.o:MQSeries.c:(.text+0x556c): undefined reference to `MQBEGIN'
MQSeries.o:MQSeries.c:(.text+0x5888): undefined reference to `MQBACK'
MQSeries.o:MQSeries.c:(.text+0x5a68): undefined reference to `MQCMIT'
MQSeries.o:MQSeries.c:(.text+0x5c4d): undefined reference to `MQDISC'
MQSeries.o:MQSeries.c:(.text+0x5eb7): undefined reference to `MQCLOSE'
MQSeries.o:MQSeries.c:(.text+0x89a9): undefined reference to `MQGET'
MQSeries.o:MQSeries.c:(.text+0x1040e): undefined reference to `MQPUT1'
MQSeries.o:MQSeries.c:(.text+0x1635c): undefined reference to `MQPUT'
MQSeries.o:MQSeries.c:(.text+0x17b21): undefined reference to `MQINQ'
MQSeries.o:MQSeries.c:(.text+0x198b9): undefined reference to `MQOPEN'
MQSeries.o:MQSeries.c:(.text+0x1ca72): undefined reference to `MQCONNX'
MQSeries.o:MQSeries.c:(.text+0x1cf8b): undefined reference to `MQCONN'
e:/strawberrybuild/5.18.0.1-64-20130905-bootstrap/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.ex
e: MQSeries.o: bad reloc address 0x0 in section `.pdata'
e:/strawberrybuild/5.18.0.1-64-20130905-bootstrap/c/bin/../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/bin/ld.ex
e: final link failed: Invalid operation
collect2: ld returned 1 exit status
dmake: Error code 129, while making '..\blib\arch\auto\MQClient\MQSeries\MQSeries.dll'
dmake: Error code 255, while making 'subdirs' |
|
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 10, 2013 9:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
did you setmqenv in the shell running make? |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Sep 10, 2013 2:22 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
First, don't use unsupported compilers. Go get the free Visual C++ Express from Microsoft.
Second, did you install MQ and samples on the PC you are doing build on?
Third, can you build one of the sample MQ applications? i.e. amqsget
Fourth, read this post for more information:
http://www.mqseries.net/phpBB2/viewtopic.php?t=39230
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|