<html>
<head>
<meta content="text/html; charset=us-ascii"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Norbert and Stephan.<br>
<br>
The LD_LIBRARY_PATH looks fine to me:<br>
<blockquote><tt>[build IDL] udkapi/com/sun/star/idl</tt><br>
<tt>mkdir -p
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/workdir/unxsogi.</tt><tt>pro/UnoApiPartTarget/udkapi/com/sun/star/
&& RESPONSEFILE=/tmp/gbuild.LYKziC && </tt><tt>SOLARBINDIR=/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsog</tt><tt>i.pro/bin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/export/home/bau</tt><tt>tsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib:/export/home/bauts</tt><tt>che/libre-office/libreoffice-4.1.2.3/instdir/unxsogi.pro/program"
/export/home/</tt><tt>bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/bin/idlc
-I/export</tt><tt>/home/bautsche/libre-office/libreoffice-4.1.2.3/udkapi
-M /export/home/bautsche</tt><tt>/libre-office/libreoffice-4.1.2.3/workdir/unxsogi.pro/Dep/UnoApiPartTarget/udkap</tt><tt>i/com/sun/star/
-O /export/home/bautsche/libre-office/libreoffice-4.1.2.3/workdi</tt><tt>r/unxsogi.pro/UnoApiPartTarget/udkapi/com/sun/star/
-verbose @${RESPONSEFILE} > </tt><tt>/dev/null && rm
-f ${RESPONSEFILE} && touch
/export/home/bautsche/libre-office/l</tt><tt>ibreoffice-4.1.2.3/workdir/unxsogi.pro/UnoApiPartTarget/udkapi/com/sun/star/idl.</tt><tt>done</tt><br>
<tt>ld.so.1: idlc: fatal: relocation error: file
/export/home/bautsche/libre-office/</tt><tt>libreoffice-4.1.2.3/solver/unxsogi.pro/bin/idlc:
symbol rtl_string_new: referenc</tt><tt>ed symbol not found</tt><br>
<tt>/bin/sh: line 1: 2360: Killed</tt><br>
<tt>make[1]: ***
[/export/home/bautsche/libre-office/libreoffice-4.1.2.3/workdir/unx</tt><tt>sogi.pro/UnoApiPartTarget/udkapi/com/sun/star/idl.done]
Killed</tt><br>
<tt>make[1]: Leaving directory
`/export/home/bautsche/libre-office/libreoffice-4.1.2</tt><tt>.3'</tt><tt><br>
</tt><tt>gmake: *** [build] Error 2</tt><tt><br>
</tt><tt>bautsche@cressida $ ls -la </tt><tt>/export/home/bau</tt><tt>tsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib<br>
total 654<br>
drwxr-xr-x 2 bautsche user 11 Oct 31 12:12 ./<br>
drwxr-xr-x 4 bautsche user 4 Oct 31 12:12 ../<br>
-rw-r--r-- 1 bautsche user 66712 Oct 31 12:12 libcodemaker.a<br>
-rw-r--r-- 1 bautsche user 25514 Oct 31 12:12
libcodemaker_cpp.a<br>
-rwxr-xr-x 1 bautsche user 133221 Oct 31 12:12 libreglo.so*<br>
-rwxr-xr-x 1 bautsche user 161724 Oct 31 12:12 libstorelo.so*<br>
lrwxrwxrwx 1 bautsche user 15 Oct 31 12:12 libuno_sal.so
-> libuno_sal.so.3*<br>
-rwxr-xr-x 1 bautsche user 377081 Oct 31 12:12 libuno_sal.so.3*<br>
lrwxrwxrwx 1 bautsche user 25 Oct 31 12:12
libuno_salhelpergcc3.so -> libuno_salhelpergcc3.so.3*<br>
-rwxr-xr-x 1 bautsche user 36660 Oct 31 12:12
libuno_salhelpergcc3.so.3*<br>
-rwxr-xr-x 1 bautsche user 229716 Oct 31 12:12 libunoidllo.so*<br>
bautsche@cressida $ <br>
<br>
</tt></blockquote>
Also:<br>
<blockquote><tt>bautsche@cressida $ readelf -d
solver/unxsogi.pro/bin/idlc</tt><br>
<br>
<tt>Dynamic section at offset 0x3a6a0 contains 29 entries:</tt><br>
<tt> Tag Type Name/Value</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libnsl.so.1]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libsocket.so.1]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libreglo.so]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libuno_sal.so.3]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libuno_salhelpergcc3.so.3]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libstdc++.so.6]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libm.so.2]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libgcc_s.so.1]</tt><br>
<tt> 0x00000001 (NEEDED) Shared library:
[libc.so.1]</tt><br>
<tt> 0x0000000f (RPATH) Library rpath:
[$ORIGIN/../../ure-link/lib:/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib]</tt><br>
<tt> 0x0000000c (INIT) 0x804a140</tt><br>
<tt> 0x0000000d (FINI) 0x8072500</tt><br>
<tt> 0x6ffffef5 (GNU_HASH) 0x80480e8</tt><br>
<tt> 0x00000005 (STRTAB) 0x8048be0</tt><br>
<tt> 0x00000006 (SYMTAB) 0x80481b0</tt><br>
<tt> 0x0000000a (STRSZ) 3438 (bytes)</tt><br>
<tt> 0x0000000b (SYMENT) 16 (bytes)</tt><br>
<tt> 0x00000015 (DEBUG) 0x0</tt><br>
<tt> 0x00000003 (PLTGOT) 0x80837b0</tt><br>
<tt> 0x00000002 (PLTRELSZ) 1096 (bytes)</tt><br>
<tt> 0x00000014 (PLTREL) REL</tt><br>
<tt> 0x00000017 (JMPREL) 0x8049cec</tt><br>
<tt> 0x00000011 (REL) 0x8049b94</tt><br>
<tt> 0x00000012 (RELSZ) 344 (bytes)</tt><br>
<tt> 0x00000013 (RELENT) 8 (bytes)</tt><br>
<tt> 0x6ffffffe (VERNEED) 0x8049a94</tt><br>
<tt> 0x6fffffff (VERNEEDNUM) 4</tt><br>
<tt> 0x6ffffff0 (VERSYM) 0x804994e</tt><br>
<tt> 0x00000000 (NULL) 0x0</tt><br>
<tt>bautsche@cressida $ ldd solver/unxsogi.pro/bin/idlc</tt><br>
<tt> libnsl.so.1 => /lib/libnsl.so.1</tt><br>
<tt> libsocket.so.1 => /lib/libsocket.so.1</tt><br>
<tt> libreglo.so =>
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib/libreglo.so</tt><br>
<tt> libuno_sal.so.3 =>
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib/libuno_sal.so.3</tt><br>
<tt> libuno_salhelpergcc3.so.3 =>
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib/libuno_salhelpergcc3.so.3</tt><br>
<tt> libstdc++.so.6 => /usr/lib/libstdc++.so.6</tt><br>
<tt> libm.so.2 => /lib/libm.so.2</tt><br>
<tt> libgcc_s.so.1 => /usr/lib/libgcc_s.so.1</tt><br>
<tt> libc.so.1 => /lib/libc.so.1</tt><br>
<tt> libstorelo.so =>
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/lib/libstorelo.so</tt><br>
<tt> libpthread.so.1 => /lib/libpthread.so.1</tt><br>
<tt>bautsche@cressida $ </tt><br>
</blockquote>
<br>
<br>
I wonder whether some of the macro magic that Norbert Thiebaud
mentioned (and that I have no idea how to make sense of) in
sal/rtl/strtmpl.cxx isn't working for me on Solaris?<br>
<br>
Eric<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 01/11/2013 07:51, Stephan Bergmann
wrote:<br>
</div>
<blockquote cite="mid:52735D86.2090403@redhat.com" type="cite">On
10/31/2013 01:25 PM, Eric Bautsch wrote:
<br>
<blockquote type="cite">I'm trying to compile LibreOffice 4.1.2.3
on Solaris 12 (build 26,
<br>
currently).
<br>
<br>
Note: don't get excited, I'm doing this in my spare time and
Oracle
<br>
are in no way endorsing, supporting, or anything else'ing my
efforts.
<br>
<br>
I've been using this thread for assistance and it's been a great
help:
<br>
<a class="moz-txt-link-freetext" href="http://comments.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/51422">http://comments.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/51422</a>
<br>
</blockquote>
<br>
Note that traditionally OOo had been building/working very well on
Solaris, but these days there's only very little and seemingly
occasional initiative to keep that up. Therefore,
Solaris-specific code in LO likely keeps rotting over time.
<br>
<br>
At runtime, the idlc executable needs the libuno_sal.so.3 dynamic
library to resolve the rtl_string_new symbol (and others).
Therefore, idlc contains an RPATH (see "readelf -d
solver/unxsogi.pro/bin/idlc") so that it finds it *in an
installation* ("$ORIGIN/../../ure-link/lib", where in an
installation idlc is in sdk/bin/ and libuno_sal.so.3 is in
ure-link/lib/).
<br>
<br>
However, idlc is also called during the build, where idlc is in
solver/unxsogi.pro/bin/ and libuno_sal.so.3 is in
solver/unxsogi.pro/lib/. To make that work, idlc is called with
an LD_LIBRARY_PATH that contains solver/unxsogi.pro/lib during the
build. This is taken care of towards the end of
solenv/gbuild/platform/com_GCC_defs.mk (gb_Helper_set_ld_path) and
should work for Solaris.
<br>
<br>
To see what's going wrong, run "make VERBOSE=t" to see the command
line of how exactly idlc is called to "[build IDL]
udkapi/com/sun/star/idl".
<br>
<br>
Stephan
<br>
<br>
<blockquote type="cite">I'm currently struggling with getting a
working idlc compiled. Here's
<br>
what happens:
<br>
<br>
[build IDL] udkapi/com/sun/star/idl
<br>
ld.so.1: idlc: fatal: relocation error: file
<br>
/export/home/bautsche/libre-office/libreoffice-4.1.2.3/solver/unxsogi.pro/bin/idlc:<br>
symbol rtl_string_new: referenced symbol not found
<br>
/bin/sh: line 1: 8411: Killed
<br>
make[1]: ***
<br>
[/export/home/bautsche/libre-office/libreoffice-4.1.2.3/workdir/unxsogi.pro/UnoApiPartTarget/udkapi/com/sun/star/idl.done]<br>
Killed
<br>
gmake: *** [build] Error 2
<br>
bautsche@cressida $
<br>
</blockquote>
_______________________________________________
<br>
LibreOffice mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:LibreOffice@lists.freedesktop.org">LibreOffice@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/libreoffice">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="80">--
____
/ . Eric A. Bautsch
/-- __ ___ ______________________________________
/ / / / /
(_____/____(___(__________________/ email: <a class="moz-txt-link-abbreviated" href="mailto:eric.bautsch@pobox.com">eric.bautsch@pobox.com</a>
</pre>
</body>
</html>