Re: error during build of mork_helper, on illumos/xstreamos
Yes, this way is much better than replicating the LINUX part into SOLARIS. I had to do the same on some other mk. I'll send you the full patch zip as soon as I reach a full build with no errors. -- Da: Richard PALO A: libreoffice Data: 22 febbraio 2015 9.13.14 CET Oggetto: Re: error during build of mork_helper, on illumos/xstreamos -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 21/02/15 08:29, Richard PALO a écrit : In pkgsrc this is patched as follows: $NetBSD: patch-vcl_Library__vcl.mk,v 1.1 2015/02/04 18:19:34 ryoon Exp $ --- vcl/Library_vcl.mk.orig 2015-01-22 20:05:28.0 + +++ vcl/Library_vcl.mk @@ -703,7 +703,7 @@ endif endif endif -ifeq ($(OS),LINUX) +ifeq ($(GUIBASE),unx) $(eval $(call gb_Library_add_libs,vcl,\ -lm \ -ldl \ If this works for you, I'll prepare to upstream this patch. The author of this patch responded to me that he'll upstream this himself as well as a few others of the same sort (in pkgsrc) soon. As to the '-Wl,-Bdirect' and '-Wl,-zdefs' in solaris.mk I'm testing if this passes, if so I'll upstream that as well.. (builds/runs here without it, at least on gcc49) As hoped, I had no fallout from this so will submit the reintegration of this bit to gerritt today. - -- Richard PALO -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJU6Y+aAAoJECAB22fHtp27oOYIAIBtDwPr7U2HfCrbFNNSOsbU zZZj+qfLv4DbLUm3ZdCS5zwYUwl/agEkltsO+tolzhTT6YFIMXqxNffMbFrITh9z TmMu6PgR8JtXhnfzyWhT9gxNucNphKiwc2wwvWNDyxe5bOPYWIZTDtkGKWNbPjuE +sLGGIZ7YBaiFazRww/3cFKy+YwmOyXBFCsS3LhHEw8bgn/UnwdA0kmgBsSkYmKw YTwPd4iqm0kKis54jnr8CElzUb/Unzv6Sjz6JmNdbZc+OpSsQhFrela7IZJWSs7N oNe2TmDZrNv8XGLTlsvipA4lZNCSWJ5fiPOp19NkX0YezrEFTFmP8uL3uL2w3hA= =SRUy -END PGP SIGNATURE- ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 21/02/15 08:29, Richard PALO a écrit : In pkgsrc this is patched as follows: $NetBSD: patch-vcl_Library__vcl.mk,v 1.1 2015/02/04 18:19:34 ryoon Exp $ --- vcl/Library_vcl.mk.orig 2015-01-22 20:05:28.0 + +++ vcl/Library_vcl.mk @@ -703,7 +703,7 @@ endif endif endif -ifeq ($(OS),LINUX) +ifeq ($(GUIBASE),unx) $(eval $(call gb_Library_add_libs,vcl,\ -lm \ -ldl \ If this works for you, I'll prepare to upstream this patch. The author of this patch responded to me that he'll upstream this himself as well as a few others of the same sort (in pkgsrc) soon. As to the '-Wl,-Bdirect' and '-Wl,-zdefs' in solaris.mk I'm testing if this passes, if so I'll upstream that as well.. (builds/runs here without it, at least on gcc49) As hoped, I had no fallout from this so will submit the reintegration of this bit to gerritt today. - -- Richard PALO -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJU6Y+aAAoJECAB22fHtp27oOYIAIBtDwPr7U2HfCrbFNNSOsbU zZZj+qfLv4DbLUm3ZdCS5zwYUwl/agEkltsO+tolzhTT6YFIMXqxNffMbFrITh9z TmMu6PgR8JtXhnfzyWhT9gxNucNphKiwc2wwvWNDyxe5bOPYWIZTDtkGKWNbPjuE +sLGGIZ7YBaiFazRww/3cFKy+YwmOyXBFCsS3LhHEw8bgn/UnwdA0kmgBsSkYmKw YTwPd4iqm0kKis54jnr8CElzUb/Unzv6Sjz6JmNdbZc+OpSsQhFrela7IZJWSs7N oNe2TmDZrNv8XGLTlsvipA4lZNCSWJ5fiPOp19NkX0YezrEFTFmP8uL3uL2w3hA= =SRUy -END PGP SIGNATURE- ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
[found]: error during build of mork_helper, on illumos/xstreamos
Libcups is broken, has a stupid bug when built under Solaris : the so file comes up referencing a main... Looks like this doesn't happen on Linux because of differences between linkers. So when you link against libcups, and it's not a program but a shared library, I faked a main in an object file, and it went on for that library. ...pity there are many in LO linking libcups I'm checking with illumos guys for any existent patch for libcups. Thanks :) Gabriele Inviato da iPad Il giorno 20/feb/2015, alle ore 16:23, Gabriele Bulfon gabriele.bul...@sonicle.com ha scritto: I believe here g++ is commanding the ld linker, so -shared is interpreted by g++ and translated into solaris linking. All the previous .so files are linked the same way with no issue. What is strange here, is that libcups.so is referencing a main! I will check for other components linking cups if they use specific flags. -- Da: Stephan Bergmann sberg...@redhat.com A: libreoffice@lists.freedesktop.org Data: 20 febbraio 2015 15.50.12 CET Oggetto: Re: error during build of mork_helper, on illumos/xstreamos On 02/20/2015 09:52 AM, Gabriele Bulfon wrote: Undefined first referenced symbol in file main /usr/lib/libcups.so ??? looking for a main in libcups.so??? here is what it's trying to do: [build LNK] Library/libvcllo.so S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir mkdir -p $W/Dep/LinkTarget/Library/ RESPONSEFILE=/tmp/gbuild.OgyDJO LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$I/ure/lib:$I/program $W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} $W/Dep/LinkTarget/Library/libvcllo.so.d.tmp rm -f ${RESPONSEFILE} mv /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d.tmp /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir /usr/gcc/4.7/bin/g++ -shared Didn't the Solaris linker use something like -G to tell it to build a shared library? Maybe the GCC -shared doesn't properly translate to something useful for the linker in your tool-chain. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
$W/CxxObject/vcl/source/app/i18nhelp.o $W/CxxObject/vcl/source/app/idlemgr.o $W/CxxObject/vcl/source/app/salvtables.o $W/CxxObject/vcl/source/app/session.o $W/CxxObject/vcl/source/app/settings.o $W/CxxObject/vcl/source/app/IconThemeInfo.o $W/CxxObject/vcl/source/app/IconThemeScanner.o $W/CxxObject/vcl/source/app/IconThemeSelector.o $W/CxxObject/vcl/source/app/sound.o $W/CxxObject/vcl/source/app/stdtext.o $W/CxxObject/vcl/source/app/svapp.o $W/CxxObject/vcl/source/app/svdata.o $W/CxxObject/vcl/source/app/svmain.o $W/CxxObject/vcl/source/app/svmainhook.o $W/CxxObject/vcl/source/app/timer.o $W/CxxObject/vcl/source/app/unohelp2.o $W/CxxObject/vcl/source/app/unohelp.o $W/CxxObject/vcl/source/app/vclevent.o $W/CxxObject/vcl/source/components/dtranscomp.o $W/CxxObject/vcl/source/components/factory.o $W/CxxObject/vcl/source/components/fontident.o $W/CxxObject/vcl/source/filter/FilterConfigCache.o $W/CxxObject/vcl/source/filter/FilterConfigItem.o $W/CxxObject/vcl/source/filter/graphicfilter.o $W/CxxObject/vcl/source/filter/graphicfilter2.o $W/CxxObject/vcl/source/filter/GraphicNativeTransform.o $W/CxxObject/vcl/source/filter/GraphicNativeMetadata.o $W/CxxObject/vcl/source/filter/sgfbram.o $W/CxxObject/vcl/source/filter/sgvmain.o $W/CxxObject/vcl/source/filter/sgvspln.o $W/CxxObject/vcl/source/filter/sgvtext.o $W/CxxObject/vcl/source/filter/igif/decode.o $W/CxxObject/vcl/source/filter/igif/gifread.o $W/CxxObject/vcl/source/filter/ixbm/xbmread.o $W/CxxObject/vcl/source/filter/ixpm/xpmread.o $W/CxxObject/vcl/source/filter/jpeg/Exif.o $W/CxxObject/vcl/source/filter/jpeg/jpeg.o $W/CxxObject/vcl/source/filter/jpeg/jpegc.o $W/CxxObject/vcl/source/filter/jpeg/JpegReader.o $W/CxxObject/vcl/source/filter/jpeg/JpegWriter.o $W/CxxObject/vcl/source/filter/jpeg/JpegTransform.o $W/CxxObject/vcl/source/filter/wmf/emfwr.o $W/CxxObject/vcl/source/filter/wmf/enhwmf.o $W/CxxObject/vcl/source/filter/wmf/winmtf.o $W/CxxObject/vcl/source/filter/wmf/winwmf.o $W/CxxObject/vcl/source/filter/wmf/wmf.o $W/CxxObject/vcl/source/filter/wmf/wmfwr.o $W/CxxObject/vcl/source/font/PhysicalFontCollection.o $W/CxxObject/vcl/source/font/PhysicalFontFace.o $W/CxxObject/vcl/source/font/PhysicalFontFamily.o $W/CxxObject/vcl/source/fontsubset/cff.o $W/CxxObject/vcl/source/fontsubset/fontsubset.o $W/CxxObject/vcl/source/fontsubset/gsub.o $W/CxxObject/vcl/source/fontsubset/list.o $W/CxxObject/vcl/source/fontsubset/sft.o $W/CxxObject/vcl/source/fontsubset/ttcr.o $W/CxxObject/vcl/source/fontsubset/xlat.o $W/CxxObject/vcl/generic/app/gensys.o $W/CxxObject/vcl/generic/app/geninst.o $W/CxxObject/vcl/generic/app/gendisp.o $W/CxxObject/vcl/generic/print/bitmap_gfx.o $W/CxxObject/vcl/generic/print/common_gfx.o $W/CxxObject/vcl/generic/print/glyphset.o $W/CxxObject/vcl/generic/print/printerjob.o $W/CxxObject/vcl/generic/print/psputil.o $W/CxxObject/vcl/generic/print/genpspgraphics.o $W/CxxObject/vcl/generic/print/genprnpsp.o $W/CxxObject/vcl/generic/print/prtsetup.o $W/CxxObject/vcl/generic/print/text_gfx.o $W/CxxObject/vcl/generic/fontmanager/fontsubst.o $W/CxxObject/vcl/generic/glyphs/gcach_ftyp.o $W/CxxObject/vcl/generic/glyphs/gcach_layout.o $W/CxxObject/vcl/generic/glyphs/gcach_rbmp.o $W/CxxObject/vcl/generic/glyphs/glyphcache.o $W/CxxObject/vcl/generic/glyphs/scrptrun.o $W/CxxObject/vcl/generic/fontmanager/fontcache.o $W/CxxObject/vcl/generic/fontmanager/fontconfig.o $W/CxxObject/vcl/generic/fontmanager/fontmanager.o $W/CxxObject/vcl/generic/fontmanager/helper.o $W/CxxObject/vcl/generic/fontmanager/parseAFM.o $W/CxxObject/vcl/unx/generic/plugadapt/salplug.o $W/CxxObject/vcl/unx/generic/printer/jobdata.o $W/CxxObject/vcl/unx/generic/printer/ppdparser.o $W/CxxObject/vcl/unx/generic/gdi/x11windowprovider.o $W/CxxObject/vcl/unx/generic/printer/cupsmgr.o $W/CxxObject/vcl/unx/generic/printer/printerinfomanager.o $W/CxxObject/vcl/opengl/x11/X11DeviceInfo.o -Wl,--start-group -lm -lnsl -lsocket -lstdc++ -ljpeg -Wl,-rpath,/usr/lib/mps -L/usr/lib/mps -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lGLEW -lGLU -lGL -lharfbuzz -licuuc -llcms2 -lcups -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0-lfontconfig -lfreetype -lm -ldl -lpthread -lGL -lGLU -lX11 -Wl,--end-group -Wl,-zrecord -lsvllo -ltllo -lutllo -lsotlo -lucbhelper -lbasegfxlo -lcomphelper -luno_cppuhelpergcc3 -li18nlangtag -li18nutil -luno_cppu -luno_sal -luno_salhelpergcc3 -lxmlreaderlo -ljvmaccesslo -o $I/program/libvcllo.so -- Da: Michael Stahl A: libreoffice@lists.freedesktop.org Data: 19 febbraio 2015 23.06.08 CET Oggetto: Re: error during build of mork_helper, on illumos/xstreamos On 19.02.2015 19:13, Gabriele Bulfon wrote: *Da:* Gabriele Bulfon *A:* libreoffice@lists.freedesktop.org *Data:* 19 febbraio 2015 13.04.57 CET *Oggetto:* error during build
Re: error during build of mork_helper, on illumos/xstreamos
On 02/19/2015 07:13 PM, Gabriele Bulfon wrote: At the beginning it looks like libstdc++.so.6 is looked under /usr/sfw/lib: wrong, should be under /usr/gcc/4.7/lib, as stated during link via -L/usr/gcc/4.7/lib. -L switches only tell the linker where to look for files specified by -l arguments. They are irrelevant for how the loader finds shared libraries at runtime. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
On 02/20/2015 09:52 AM, Gabriele Bulfon wrote: Undefined first referenced symbol in file main /usr/lib/libcups.so ??? looking for a main in libcups.so??? here is what it's trying to do: [build LNK] Library/libvcllo.so S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir mkdir -p $W/Dep/LinkTarget/Library/ RESPONSEFILE=/tmp/gbuild.OgyDJO LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$I/ure/lib:$I/program $W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} $W/Dep/LinkTarget/Library/libvcllo.so.d.tmp rm -f ${RESPONSEFILE} mv /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d.tmp /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir /usr/gcc/4.7/bin/g++ -shared Didn't the Solaris linker use something like -G to tell it to build a shared library? Maybe the GCC -shared doesn't properly translate to something useful for the linker in your tool-chain. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
I believe here g++ is commanding the ld linker, so -shared is interpreted by g++ and translated into solaris linking. All the previous .so files are linked the same way with no issue. What is strange here, is that libcups.so is referencing a main! I will check for other components linking cups if they use specific flags. -- Da: Stephan Bergmann A: libreoffice@lists.freedesktop.org Data: 20 febbraio 2015 15.50.12 CET Oggetto: Re: error during build of mork_helper, on illumos/xstreamos On 02/20/2015 09:52 AM, Gabriele Bulfon wrote: Undefined first referenced symbol in file main /usr/lib/libcups.so ??? looking for a main in libcups.so??? here is what it's trying to do: [build LNK] Library/libvcllo.so S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir mkdir -p $W/Dep/LinkTarget/Library/ RESPONSEFILE=/tmp/gbuild.OgyDJO LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$I/ure/lib:$I/program $W/LinkTarget/Executable/concat-deps ${RESPONSEFILE} $W/Dep/LinkTarget/Library/libvcllo.so.d.tmp rm -f ${RESPONSEFILE} mv /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d.tmp /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/workdir/Dep/LinkTarget/Library/libvcllo.so.d S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir /usr/gcc/4.7/bin/g++ -shared Didn't the Solaris linker use something like -G to tell it to build a shared library? Maybe the GCC -shared doesn't properly translate to something useful for the linker in your tool-chain. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
On 02/19/2015 11:06 PM, Michael Stahl wrote: i also don't remember what -Bdirect does, it's probably some performance improvement, you could try to add it too. -Bdirect records for a symbol reference the DSO that provides it (as seen at link time), to speed up resolution of references at runtime. ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Le 20/02/15 09:52, Gabriele Bulfon a écrit : Great Michael, I had to double patch, both to have LDFLAGS with -Wl,-z,defs and to enable some X11 linking in vcl/Library_vcl.mk. Specifically I borrowed the ifeq ($(OS),LINUX) various linkings, and added them into the ifeq ($(OS),SOLARIS), before checking for SPARC or not. Now, I get this stupid single one...: Undefined first referenced symbol in file main/usr/lib/libcups.so In pkgsrc this is patched as follows: $NetBSD: patch-vcl_Library__vcl.mk,v 1.1 2015/02/04 18:19:34 ryoon Exp $ --- vcl/Library_vcl.mk.orig 2015-01-22 20:05:28.0 + +++ vcl/Library_vcl.mk @@ -703,7 +703,7 @@ endif endif endif -ifeq ($(OS),LINUX) +ifeq ($(GUIBASE),unx) $(eval $(call gb_Library_add_libs,vcl,\ -lm \ -ldl \ If this works for you, I'll prepare to upstream this patch. As to the '-Wl,-Bdirect' and '-Wl,-zdefs' in solaris.mk I'm testing if this passes, if so I'll upstream that as well.. (builds/runs here without it, at least on gcc49) BTW I had far fewer difficulties to get a working LO with gcc=4.8 on SunOS. - -- Richard PALO -BEGIN PGP SIGNATURE- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJU6DPiAAoJECAB22fHtp27OX4H/Rpx7tt6VaTCHBCzBJAfF+nD xuI0o7kNL1dudDyIaNbWIhXr+/JaJdOhvU8ttSyUrOeQgvGChqGBJfKzHPzzbfaZ fIC0L3ejEQQRV59lSC15JjDAvQOQRKUfScoIcdeI6SqRGy2SebkanJsXtTmXHDy8 Y79l44NSYvzjVYBQx/zYprVoQfBlQeXrzRSJbz0osjsdeCls+HvYGlF5zKg6Ezk0 FMWKPJ+AzgcehXbAnNeDLHklpja7brkGa6MytLV7zDDOPfjwFQZLm06PqqkATvR1 rQIqGzHs2gp6u4anig8M+1BCAO7mlUy5HPMTj6SaS2gO8gdQW9mKVUMl/voKGv4= =MVjx -END PGP SIGNATURE- ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
++.so.6 =/usr/gcc/4.7/lib/libstdc++.so.6 libjvmfwklo.so =/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/../ure-link/lib/libjvmfwklo.so libgcc_s.so.1 =/usr/gcc/4.7/lib/libgcc_s.so.1 libsaxlo.so =/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libsaxlo.so libreglo.so =/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/ure/lib/libreglo.so libunoidllo.so =/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/ure/lib/libunoidllo.so liblangtag.so.1 =/usr/lib/liblangtag.so.1 libicui18n.so.51 =/usr/lib/libicui18n.so.51 libmp.so.2 =/lib/libmp.so.2 libmd.so.1 =/lib/libmd.so.1 libXau.so.6 =/usr/lib/libXau.so.6 libXdmcp.so.6 =/usr/lib/libXdmcp.so.6 libffi.so.5 =/usr/lib/libffi.so.5 libxml2.so.2 =/lib/libxml2.so.2 libstorelo.so =/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/ure/lib/libstorelo.so libXevie.so.1 =/usr/lib/libXevie.so.1 libXss.so.1 =/usr/lib/libXss.so.1 mech_krb5.so.1 =/usr/lib/gss/mech_krb5.so.1 libpkcs11.so.1 =/usr/lib/libpkcs11.so.1 libkstat.so.1 =/lib/libkstat.so.1 libcryptoutil.so.1 =/lib/libcryptoutil.so.1 Da: Gabriele Bulfon A: libreoffice@lists.freedesktop.org Data: 19 febbraio 2015 13.04.57 CET Oggetto: error during build of mork_helper, on illumos/xstreamos I have this error now going on the build process: S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir /usr/gcc/4.7/bin/g++-Wl,-z,origin '-Wl,-rpath,$ORIGIN/../Library' -L$I/ure/lib -L$I/program -L/usr/gcc/4.7/lib -L/lib -L/usr/lib -Wl,-z,combreloc -L$W/LinkTarget/StaticLibrary -L$I/sdk/lib -L$I/ure/lib -L$I/program -L$W/LinkTarget/Library $W/CxxObject/connectivity/source/drivers/mork/mork_helper.o -Wl,--start-group -lm -lnsl -lsocket -lstdc++ -Wl,--end-group -Wl,-zrecord -luno_cppu -luno_cppuhelpergcc3 -lmorklo -luno_sal -o $W/LinkTarget/Executable/mork_helper Undefined first referenced symbol in file X11OpenGLDeviceInfo::isDeviceBlocked() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so X11OpenGLDeviceInfo::~X11OpenGLDeviceInfo() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so X11OpenGLDeviceInfo::X11OpenGLDeviceInfo() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so Looks like some LO code is not built for some reason, leaving out those X11OpenGLDeviceInfo functions? Any help? Gabriele. ___LibreOffice mailing listLibreOffice@lists.freedesktop.orghttp://lists.freedesktop.org/mailman/listinfo/libreoffice ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice
Re: error during build of mork_helper, on illumos/xstreamos
On 19.02.2015 19:13, Gabriele Bulfon wrote: *Da:* Gabriele Bulfon gabriele.bul...@sonicle.com *A:* libreoffice@lists.freedesktop.org *Data:* 19 febbraio 2015 13.04.57 CET *Oggetto:* error during build of mork_helper, on illumos/xstreamos S=/sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3 I=$S/instdir W=$S/workdir /usr/gcc/4.7/bin/g++ -Wl,-z,origin '-Wl,-rpath,$ORIGIN/../Library' -L$I/ure/lib -L$I/program -L/usr/gcc/4.7/lib -L/lib -L/usr/lib -Wl,-z,combreloc -L$W/LinkTarget/StaticLibrary -L$I/sdk/lib -L$I/ure/lib -L$I/program -L$W/LinkTarget/Library $W/CxxObject/connectivity/source/drivers/mork/mork_helper.o -Wl,--start-group -lm -lnsl -lsocket -lstdc++ -Wl,--end-group -Wl,-zrecord -luno_cppu -luno_cppuhelpergcc3 -lmorklo -luno_sal -o $W/LinkTarget/Executable/mork_helper Undefined first referenced symbol in file X11OpenGLDeviceInfo::isDeviceBlocked() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so X11OpenGLDeviceInfo::~X11OpenGLDeviceInfo() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so X11OpenGLDeviceInfo::X11OpenGLDeviceInfo() /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so Looks like some LO code is not built for some reason, leaving out those X11OpenGLDeviceInfo functions? this *should* have failed when linking libvcllo.so already, not when linking an executable. the reason why it did not is that solaris.mk is missing -z defs linker flag, which fails the link in case of missing symbols. see also: commit 5e9ffbb85ee548a2f31ed99834c13d6c4ec4d714 solaris11: #i117606#: solaris.mk: add -Bdirect -z defs to LDFLAGS i'm not sure if -z defs will work with gcc, maybe you need -Wl,-z,defs. i also don't remember what -Bdirect does, it's probably some performance improvement, you could try to add it too. perhaps there is some #ifdef or condition in vcl/Library_vcl.mk that disables the OpenGL stuff on Solaris. Doing an ldd on the first so file, reveals something strange. At the beginning it looks like libstdc++.so.6 is looked under /usr/sfw/lib: wrong, should be under /usr/gcc/4.7/lib, as stated during link via -L/usr/gcc/4.7/lib. this could happen because: 1) there is a RPATH in one of the libraries above the libstdc++ line (i.e. libvcllo.so) that points to /usr/sfw/lib 2) you have LD_LIBRARY_PATH set containing /usr/sfw/lib 3) you have LD_PRELOAD set set containing /usr/sfw/lib/libstdc++,so.6 4) most likely: /usr/sfw/lib precedes /usr/gcc/4.7/lib in the runtime linker's search path (or /usr/gcc/4.7/lib is not on the search path at all)... i forgot where that is configured on Solaris Then some version not found: sure, that one is not gcc4.7 Later in the deps list, libstdc++.so.6 appears again, this time correctly under /usr/gcc/4..7/lib... Solaris runtime linker will load 2 different libraries with the same SONAME, if some other library requires a symbol version that is not supplied by the already loaded library with the required SONAME, and another library with the same SONAME can be found that supplies the required symbol version. corner case: un-versioned symbols will satisfy any requested symbol version. How can this be? Maybe this is the problem around X11OpenGLDeviceInfo undefined and referenced in this so? it could be a problem, but unrelated to X11OpenGLDeviceInfo. sonicle@xstreamdev:/sources/sonicle/xstream-desktop-gate/components/pidgin$ ldd /sources/sonicle/xstream-desktop-gate/components/libreoffice/libreoffice/libreoffice-4.4.0.3/instdir/program/libvcllo.so libstdc++.so.6 = /usr/sfw/lib/libstdc++.so.6 libstdc++.so.6 (GLIBCXX_3.4.15) = (version not found) libstdc++.so.6 (CXXABI_1.3) = (version not found) libjpeg.so.8 = /usr/lib/libjpeg.so.8 ___ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice