Hi,
while working on a new latest build of libreoffice for our XStream Desktop, I 
had a strange problem on the component.
Situation:
- default system gcc is 4.4, with libs under /usr/gcc/4.4 and links of libs in 
/usr/lib
- additional gcc 4.7, all under /usr/gcc/4.7 only
- libreoffice component has all added tricks to use gcc 4.7 and link under 
/usr/gcc/4.7/lib
- ending component batch to fix prototype libs RUNPATH and RPATH to have first 
/usr/gcc/4.7/lib, then /lib and /usr/lib
After a succesful make install of the prototype component, I had problems 
packaging becacuse of strange double
dependencies of both gcc 4.4 and 4.7.
Looking better, I found that almost all of the libreoffice ".so" files ware 
showing a double dependengy on libs from 4.4 and 4.7,
using ldd. By using "LD_LIBRARY_PATH=/usr/gcc/4.7/lib ldd name.so", double dep 
was gone, correctly being just 4.7.
I could temporarily fix the packaging by running 
"LD_LIBRARY_PATH=/usr/gcc/4.7/lib gmake package", but I don't think
this is ok in final installation of libreoffice libs, as thay may appear to 
depend on 4.4 libs also again.
So my question is, how can these libs depend on "libstdc++.so.6" first coming 
from 4.7 and then from 4.4?
Also, why this happens even though these libs have RUNPATH and RPATH specifying 
correctly?
Here is an example:
bash# elfdump -d libabplo.so
...
[37]  RUNPATH           0x1eec2             
/usr/gcc/4.7/lib:/lib:/usr/lib:/usr/lib/mps:/usr/lib/libreoffice/program:/usr/lib/libreoffice/ure-link/lib
[38]  RPATH             0x1eec2             
/usr/gcc/4.7/lib:/lib:/usr/lib:/usr/lib/mps:/usr/lib/libreoffice/program:/usr/lib/libreoffice/ure-link/lib
...
bash# ldd libabplo.so
libstdc++.so.6 =/usr/gcc/4.7/lib/libstdc++.so.6
...
libgcc_s.so.1 =/usr/gcc/4.7/lib/libgcc_s.so.1
...
libstdc++.so.6 =/usr/gcc/4.4/lib/libstdc++.so.6
libgcc_s.so.1 =/usr/gcc/4.4/lib/libgcc_s.so.1
thanks for any help,
Gabriele.



-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com

Reply via email to