Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2008 12:40:06 -0200
From:      Aline de Freitas <aline@riseup.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: llmozlib fails to build (unofficial port)
Message-ID:  <200802141240.09130.aline@riseup.net>
In-Reply-To: <200802141125.38495.aline@riseup.net>
References:  <200802141125.38495.aline@riseup.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1370441.IhT8oUq3Z1
Content-Type: text/plain;
  charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Em Thursday 14 February 2008 11:25:28 Aline de Freitas escreveu:
> I'm triyng to build llmozlib (which is a dependency for secondlife viewer)
> from the port provided in
> http://wiki.secondlife.com/wiki/Compiling_the_viewer_(FreeBSD).
>
> The build fails in a way that looks very easy to solve, but I couldn't
> manage it.
>
> The error message:
> /usr/bin/ld: cannot find -lmozjs
>
> c++ is invoked with:
> -L../../dist/bin -lmozjs
>
> and in the ../dist/bin directory we have:
> [root@anderson-herzer
> /usr/ports/local/llmozlib/work/llmozlib/build_mozilla/objdir-mozilla-free=
bs
>d/dist/bin]# ls -lh libmozjs.so.1.0
> lrwxr-xr-x  1 root  wheel    28B 14 Fev 10:30
> libmozjs.so.1.0 -> ../../js/src/libmozjs.so.1.0
>
> The link is not broken and the permissions looks right to me:
>
> [root@anderson-herzer
> /usr/ports/local/llmozlib/work/llmozlib/build_mozilla/objdir-mozilla-free=
bs
>d/js/src]# ls -lh libmozjs.so.1.0
> -rwxr-xr-x  1 root  wheel   693K 14 Fev 10:30 libmozjs.so.1.0
>
> Does any one have any idea about what may be wrong here?
>
> Thanks in advance.

Replying to myself I've solved with

ln -s libmozjs.so.1.0 libmozjs.so

This is because I realized in the ld manpage that the linker when invoked=20
with -larchive looks for a library libarchive.so But a question remains. Ho=
w=20
could I link a library which name is libarchive.so.1.0 ?

=2D-=20
Aline de Freitas - Chave p=C3=BAblica: ID DE632016 / keys.indymedia.org
gpg --keyserver keys.indymedia.org --recv-keys DE632016

--nextPart1370441.IhT8oUq3Z1
Content-Type: application/pgp-signature; name=signature.asc 
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBHtFLJhLRvs95jIBYRAnuoAKCCMnVENQQN1gO2/hfPFr2M/nN8yACdHcGG
06WqaOIXU6CLyzCd2HXqGIk=
=9nTL
-----END PGP SIGNATURE-----

--nextPart1370441.IhT8oUq3Z1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802141240.09130.aline>