MQ plug-in issues (missing files)

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

MQ plug-in issues (missing files)

Post by yaminids »

Hello friends,

I am trying to configure MQ on a recently built server. I got the following error while trying to read a message from the queue for the first time

ds_loadlibrary: error in dlopen of mqs.so - /opt/Ascential/DataStage/DSEngine/lib/mqs.so: undefined symbol: _ZTI6ImqItm

The following is the output from the server

ldd /opt/Ascential/DataStage/DSEngine/lib/mqs.so
ldd: warning: you do not have execution permission for `/opt/Ascential/DataStage/DSEngine/lib/mqs.so'
libmqm.so => /usr/lib/libmqm.so (0x00e79000)
libmqmcs.so => /usr/lib/libmqmcs.so (0x00896000)
libimqb23gl_r.so => /usr/lib/libimqb23gl_r.so (0x00111000)
libimqs23gl_r.so => /usr/lib/libimqs23gl_r.so (0x00b39000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00a6c000)
libdl.so.2 => /lib/libdl.so.2 (0x00597000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00130000)
libm.so.6 => /lib/tls/libm.so.6 (0x001e3000)
libc.so.6 => /lib/tls/libc.so.6 (0x00205000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0033e000)
libmqz.so => /opt/mqm/lib/libmqz.so (0x00503000)
libmqmzse.so => /opt/mqm/lib/libmqmzse.so (0x00347000)
libmqmcs_r.so => /opt/mqm/lib/libmqmcs_r.so (0x00349000)
libstdc++.so.3 => not found
libmqm_r.so => /opt/mqm/lib/libmqm_r.so (0x006ca000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00d7a000)
libstdc++.so.3 => not found
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d47000)
libmqz_r.so => /opt/mqm/lib/libmqz_r.so (0x00b84000)

Are there any missing links on the server? Any help would be highly appreciated

Thanks in advance
Yamini
edward_m
Charter Member
Charter Member
Posts: 257
Joined: Fri Jun 24, 2005 9:34 am
Location: Philadelphia,PA

Post by edward_m »

Did you install MQ server on your datastage server??

As per documentation..The MQ Series Client-only option is unsupported i.e you need to install MQ Series server on your etl server
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Post by yaminids »

We used to run the jobs with just the client before. I am trying to configure a new server but the jobs fail with the above mentioned error
lstsaur
Participant
Posts: 1139
Joined: Thu Oct 21, 2004 9:59 pm

Post by lstsaur »

For version 7.x, you must have both MQ server and MQ client installed on the same server as the DS server resides. No way you can run MQ job with the client only.
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Post by yaminids »

All we did previously was install the MQ plug-in we got from IBM. Does the plug-in come with both server and client?
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Post by yaminids »

I just came to know from our MQ team that MQ server has been installed on the DataStage server.
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Post by yaminids »

We contacted IBM support and they asked us to execute the following

1/ You need to create libstdc++ link as:
ln -s /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so /usr/lib/libstdc++-libc6.1-2.so.3

2/ Could you please add the following to the DSENV file as the runtime libraries must be referenced:
EXPORT LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/lib2.95.2:/usr/lib

Then stop the DSEngine, source the dsenv file again and then start up that DSEngine.

3/ MQ Series 295.2 library link must be created:
ln -s /opt/mqm/lib/2.95.2/libimqb23gl.so /opt/mqm/lib/libimqb23gl.so
ln -s /opt/mqm/lib/2.l95.2/libmqb23gl_r.so /opt/mqm/lib/libimqb23gl_r.so
ln -s /opt/mqm/lib/2.95.2/libimqs23gl.so /opt/mqm/lib/libimqs23gl.so
ln -s /opt/mqm/lib/2.95.2/libimqs23gl-r.so /opt/mqm/lib/libimqb23gl-r.so

The problem is that the job is still failing with the same error.

Can someone please help me resolve this issue?

Thanks in advance
Yamini
yaminids
Premium Member
Premium Member
Posts: 387
Joined: Mon Oct 18, 2004 1:04 pm

Post by yaminids »

The problem was with the missing links. We solve the issue by executing the following statements

ln -s /opt/mqm/lib/3.2/libimqb23gl_r.so /opt/mqm/lib/ibimqb23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqb23gl.so /opt/mqm/lib/libimqb23gl.so
ln -s /opt/mqm/lib/3.2/libimqc23gl_r.so /opt/mqm/lib/libimqc23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqc23gl.so /opt/mqm/lib/libimqc23gl.so
ln -s /opt/mqm/lib/3.2/libimqs23gl_r.so /opt/mqm/lib/libimqs23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqs23gl.so /opt/mqm/lib/libimqs23gl.so
Post Reply