Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Nov 2015 18:14:05 +0100
From:      Jan Beich <jbeich@vfemail.net>
To:        "Marat N.Afanasyev" <amarat@li.ru>
Cc:        Steve Wills <swills@freebsd.org>, Louis Epstein <le@main.put.com>, gecko@freebsd.org
Subject:   Re: Seamonkey port?
Message-ID:  <bnb4-behu-wny@vfemail.net>
In-Reply-To: <563F155E.7030705@li.ru> (Marat N. Afanasyev's message of "Sun, 08 Nov 2015 12:26:54 %2B0300")
References:  <20151104230905.Q98665-100000@main.put.com> <563B6A1E.9000806@li.ru> <563BA5F1.2080503@FreeBSD.org> <563C9BA8.7010006@li.ru> <563F155E.7030705@li.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

"Marat N.Afanasyev" <amarat@li.ru> writes:

> /usr/bin/ld: libxul.so: hidden symbol `downmix_int' isn't defined

Adding -lopus won't be enough. Firefox hides any symbol not explicitly
listed as system with pragma visibility, see config/system-headers. However,
downmix_int isn't really a public symbol. So, you either have to disable
system opus via USE_MOZILLA=3D-opus like r386162 or apply the following hack

Index: audio/opus/Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2D-- audio/opus/Makefile	(revision 401065)
+++ audio/opus/Makefile	(working copy)
@@ -2,7 +2,7 @@
=20
 PORTNAME=3D	opus
 PORTVERSION=3D	1.1
=2DPORTREVISION=3D	2
+PORTREVISION=3D	3
 CATEGORIES=3D	audio
 MASTER_SITES=3D	http://downloads.xiph.org/releases/opus/ \
 		MOZILLA/opus
@@ -24,9 +24,7 @@ CONFIGURE_ARGS=3D	--enable-custom-modes \
 INSTALL_TARGET=3D	install-strip
 TEST_TARGET=3D	check
=20
=2D.include <bsd.port.options.mk>
=2D
=2D.if ${ARCH} =3D=3D "arm"
+.if defined(MACHINE_CPU) && ${MACHINE_CPU:Msoftfp}
 CONFIGURE_ARGS+=3D--enable-fixed-point
 .endif
=20
Index: audio/opus/files/patch-export-downmix
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
=2D-- audio/opus/files/patch-export-downmix	(nonexistent)
+++ audio/opus/files/patch-export-downmix	(working copy)
@@ -0,0 +1,28 @@
+--- include/opus.h.orig	2013-11-29 20:49:17 UTC
++++ include/opus.h
+@@ -971,6 +971,14 @@ OPUS_EXPORT OPUS_WARN_UNUSED_RESULT opus
+=20
+ /**@}*/
+=20
++#ifdef __SOFTFP__ /* XXX FIXED_POINT isn't exported */
++OPUS_EXPORT void downmix_float(const void *_x, opus_int32 *sub, int subfr=
ame, int offset, int c1, int c2, int C);
++OPUS_EXPORT void downmix_int(const void *_x, opus_int32 *sub, int subfram=
e, int offset, int c1, int c2, int C);
++#else
++OPUS_EXPORT void downmix_float(const void *_x, float *sub, int subframe, =
int offset, int c1, int c2, int C);
++OPUS_EXPORT void downmix_int(const void *_x, float *sub, int subframe, in=
t offset, int c1, int c2, int C);
++#endif
++
+ #ifdef __cplusplus
+ }
+ #endif
+--- src/opus_private.h.orig	2013-11-29 20:17:16 UTC
++++ src/opus_private.h
+@@ -83,8 +83,6 @@ int get_mono_channel(const ChannelLayout
+ #define OPUS_SET_FORCE_MODE(x) OPUS_SET_FORCE_MODE_REQUEST, __opus_check_=
int(x)
+=20
+ typedef void (*downmix_func)(const void *, opus_val32 *, int, int, int, i=
nt, int);
+-void downmix_float(const void *_x, opus_val32 *sub, int subframe, int off=
set, int c1, int c2, int C);
+-void downmix_int(const void *_x, opus_val32 *sub, int subframe, int offse=
t, int c1, int c2, int C);
+=20
+ int optimize_framesize(const opus_val16 *x, int len, int C, opus_int32 Fs,
+                 int bitrate, opus_val16 tonality, float *mem, int bufferi=
ng,

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJWP4LdXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF
NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3bWIsIAIWiSo1ItDH9j76Heu4pnDau
DanD+Pf1xRKKHG9pGSNq0DcJ+qtbD3SrNifuSqaXBCmrO95YQaFJpJW0VpcU+WRY
Py1B1eoyW8oJd+hxor/D/sf4ZAb80/+4Dg6cUe0xcvx8JfYIn7dGtpLHjvygUAaw
cMYKhW7DBCDW3weUrx2ZSUzncXeBuJJi/G7JZ47/nz6i4zhovfJQ5JiKuYgxHDN9
jAxJMGbcHLNus/tOojX6YKteN2au+uDw9TgleTuE3Cl7eC4UuJlYeAn2c4czos95
2mlPkNxhQbXbJGzLGoNFHb94i/aAgfneyz7gJkrQyznrXuzGzNFS40fQW3RGy3Y=
=YXIK
-----END PGP SIGNATURE-----
--=-=-=--



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