Subject: | Getting error multiple definitions in MQ |
Date: | Mon, 20 Feb 2017 15:10:30 +0530 |
To: | bug-MQSeries [...] rt.cpan.org |
From: | Vivek Katakam <vivek1717 [...] gmail.com> |
I am using gcc on RHEL7.3 with the following version:
gcc version 4.8.5 20150623
I am getting the following error on the system:
I have downloaded MQSeries-1.34-vb_9cl from CPAN site and tried to compile
the source code using the following steps:
perl Makefile.PL
make
while doing make, I am getting the following error:
/home/MQM/.cpan/build/MQSeries-1.34-vb_9cl/MQClient/constants.c:1467:
multiple definition of `MQI_BY_VALUE_STR'
MQSeries.o:/home/MQM/.cpan/build/MQSeries-1.34-vb_9cl/MQClient/MQSeries.c:1067:
first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [../blib/arch/auto/MQClient/MQSeries/MQSeries.so] Error 1
make[1]: Leaving directory
`/home/MQM/.cpan/build/MQSeries-1.34-vb_9cl/MQClient'
make: *** [subdirs] Error 2
I tried compiling the MQSeries for 1.24 but with no luck.
Can you please provide solution/suggest for the above problem
Thanks and Regards,
Vivek