Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


hmm... so vcl is supposed to be linked against NSS/NSPR libraries but
somehow that doesn't work for you...
what is really weird is that it fails on linking the executable, it
should really fail when linking vcl library already.
can you check that the link command lines use -Wl,-z,defs ?
apparently not, try to copy the relevant lines from
gbuild/platform/linux.mk to solaris.mk.
the other problem is most likely that the libraries from the "nss"
module somehow have hidden visibility (i assume you are not using
--with-system-nss?)... if things work PR_Now should be exported like this:
nm --defined-only -D -g solver/*/lib/libnspr4.so | grep PR_Now
0000000000039123 T PR_Now
you'll have to dig into the external build system there to figure out
why it doesn't work, the files are in workdir/*/UnpackedTarball/nss (or
if your distro has NSS packages try using --with-system-nss).
Several things appear strange to me, so here are some considerations:
1 - Yes, I use system libs for nspr/nss, built by my distro userland
2 - Doing ldd on libvcllo.so shows a lot of lib dependencies, but no mention about nspr nor nss libs
3 - Doing your nm on my system libnspr4.so correctly reveals the output you said
4 - The nspr/nss libs are not under /usr/lib nor /lib in my system, they're all under /usr/lib/mps
I tried running gmake under desktop as you requested (had to add the LD_ALTEXEC to force sun ld to 
run gnu ld instead):
sonicle@vbxstreamdev:/sources/userlands/xstream-userland-gate/components/libreoffice/build/i86/desktop$
 gmake LD_ALTEXEC=/usr/gnu/bin/ld
[build LNK] Executable/unopkg.bin
S=/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1 & 
O=$S/solver/unxsogi.pro & W=$S/workdir/unxsogi.pro &  mkdir -p $W/LinkTarget/Executable/ & 
/usr/gcc/4.4/bin/gcc     -Wl,-z,origin '-Wl,-rpath,$ORIGIN:$ORIGIN/../ure-link/lib' 
-Wl,-rpath-link,$O/lib -Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc -L$O/lib -L/usr/gcc/4.4/lib 
-L/usr/local/bin -L/usr/dt/lib -L/usr/openwin/lib  -Wl,-O1  
$W/CObject/desktop/source/pkgchk/unopkg/unopkg_main.o      -Wl,--start-group  -Wl,--end-group 
-Wl,--no-as-needed  -lm -lnsl -lsocket  -lcomphelper -luno_sal -ltllo -lunopkgapp -o 
$W/LinkTarget/Executable/unopkg.bin
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `PR_Now'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSMessage_Create'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `CERT_DecodeCertFromPackage'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignedData_AddCertificate'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignerInfo_IncludeCerts'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSEncoder_Finish'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSMessage_Destroy'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignedData_AddSignerInfo'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignerInfo_AddSigningTime'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSEncoder_Start'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_NoDB_Init'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `HASH_Begin'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `HASH_End'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignedData_Create'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSMessage_GetContentInfo'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignedData_GetContentInfo'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignerInfo_Create'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSContentInfo_SetContent_SignedData'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `HASH_Update'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSSignedData_SetDigestValue'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `HASH_Create'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `NSS_CMSContentInfo_SetContent_Data'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `PORT_NewArena'
/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/solver/unxsogi.pro/lib/libvcllo.so:
 undefined reference to `HASH_Destroy'
collect2: ld returned 1 exit status
gmake: *** 
[/sources/userlands/xstream-userland-gate/components/libreoffice/libreoffice-4.1.0.1/workdir/unxsogi.pro/LinkTarget/Executable/unopkg.bin]
 Error 1
I can't see any linking of nspr nor nss. Maybe I should add some flags to configure / gmake to let 
it link under /usr/lib/mps?
Why ldd doesn't reveal this lib as missing, nor shows it as referenced?
Thanx so much for all your help!
Gabriele.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.