It appears that the makefiles/build scripts for IcePy are wrong.

In the logs you will see:

g++ -shared -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.5/lib64 -rdynamic -m64 
-Wall -Werror -pthread -fPIC -g  -L../../python -o ../../python/IcePy.so.3.5.1 
-Wl,-h,IcePy.so.35   Communicator.o Connection.o ConnectionInfo.o Current.o 
Endpoint.o EndpointInfo.o ImplicitContext.o Init.o Logger.o ObjectAdapter.o 
ObjectFactory.o Operation.o Properties.o PropertiesAdmin.o Proxy.o Slice.o 
Thread.o Types.o Util.o -L../../../cpp/lib -lIce -lSlice -lIceUtil 
-L/opt/rh/python27/root/usr/lib64/python2.7/config -lpython2.7

Note how it has:

-Wl,-rpath,/opt/Ice-3.5/lib64

This is overriding the LD_RUN_PATH environment variable.

The problem then is that the '-Wl,-rpath’ option is using '/opt/Ice-3.5/lib64’ 
and not '/opt/Ice-3.5.1/lib64’.

I can only suggest editing the makefile and finding where it calculates the 
directory to use with that option and change it so it is using the patch level 
revision number in the directory given to the option.

Graham

> On 12 Nov 2015, at 3:03 AM, Aleksandra Tarkowska 
> <[email protected]> wrote:
> 
> Hi Graham,
> 
> Thank you for a quick response
> 
> IcePy recompiling console output in attachment
> 
> I am afraid still says not found
> 
> $ ldd /opt/Ice-3.5.1/python/IcePy.so
>     linux-vdso.so.1 =>  (0x00007fff4affe000)
>     libIce.so.35 => not found
>     libSlice.so.35 => not found
>     libIceUtil.so.35 => not found
>     libpython2.7.so.1.0 => 
> /opt/rh/python27/root/usr/lib64/libpython2.7.so.1.0 (0x00007fbd86cb7000)
>     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007fbd869b0000)
>     libm.so.6 => /lib64/libm.so.6 (0x00007fbd8672c000)
>     libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fbd86516000)
>     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fbd862f8000)
>     libc.so.6 => /lib64/libc.so.6 (0x00007fbd85f64000)
>     libdl.so.2 => /lib64/libdl.so.2 (0x00007fbd85d60000)
>     libutil.so.1 => /lib64/libutil.so.1 (0x00007fbd85b5c000)
>     /lib64/ld-linux-x86-64.so.2 (0x00007fbd8741c000)
> 
> 
> and then tested just with:
> 
> $ source /opt/rh/python27/enable
> $ ICE_HOME=/opt/Ice-3.5.1
> $ export PYTHONPATH="${ICE_HOME}/python:$PYTHONPATH"
> $ python
> Python 2.7.5 (default, Jul 10 2014, 16:10:08) 
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import Ice
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/opt/Ice-3.5.1/python/Ice.py", line 47, in <module>
>     import IcePy
> ImportError: libIce.so.35: cannot open shared object file: No such file or 
> directory
> >>> exit()
> $ export LD_LIBRARY_PATH="${ICE_HOME}/lib64:${ICE_HOME}/lib:$LD_LIBRARY_PATH"
> $ python
> Python 2.7.5 (default, Jul 10 2014, 16:10:08) 
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import Ice
> 
> 
> and when LD_LIBRARY_PATH is set it works:
> 
> $ ldd /opt/Ice-3.5.1/python/IcePy.so
>     linux-vdso.so.1 =>  (0x00007fffe3186000)
>     libIce.so.35 => /opt/Ice-3.5.1/lib64/libIce.so.35 (0x00007f78e5bbf000)
>     libSlice.so.35 => /opt/Ice-3.5.1/lib64/libSlice.so.35 (0x00007f78e573f000)
>     libIceUtil.so.35 => /opt/Ice-3.5.1/lib64/libIceUtil.so.35 
> (0x00007f78e54c6000)
>     libpython2.7.so.1.0 => 
> /opt/rh/python27/root/usr/lib64/libpython2.7.so.1.0 (0x00007f78e5103000)
>     libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f78e4df5000)
>     libm.so.6 => /lib64/libm.so.6 (0x00007f78e4b71000)
>     libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f78e495b000)
>     libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f78e473d000)
>     libc.so.6 => /lib64/libc.so.6 (0x00007f78e43a9000)
>     libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f78e4198000)
>     libdl.so.2 => /lib64/libdl.so.2 (0x00007f78e3f93000)
>     librt.so.1 => /lib64/librt.so.1 (0x00007f78e3d8b000)
>     libutil.so.1 => /lib64/libutil.so.1 (0x00007f78e3b88000)
>     /lib64/ld-linux-x86-64.so.2 (0x00007f78e6875000)
> 
> 
> 
> Ola
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at http://groups.google.com/group/modwsgi 
> <http://groups.google.com/group/modwsgi>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> <icepy_recompile>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to