From owner-freebsd-multimedia@FreeBSD.ORG Sun Dec 12 21:24:21 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C67831065694 for ; Sun, 12 Dec 2010 21:24:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 3EE498FC1E for ; Sun, 12 Dec 2010 21:24:20 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id oBCKjgIg060840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 12 Dec 2010 22:45:42 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id oBCKjfEZ066221; Sun, 12 Dec 2010 22:45:41 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id oBCKjf2U066220; Sun, 12 Dec 2010 22:45:41 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 12 Dec 2010 22:45:41 +0200 From: Kostik Belousov To: Andriy Gapon Message-ID: <20101212204541.GA33073@deviant.kiev.zoral.com.ua> References: <4D05332C.7010208@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gd+outVunBU67ahz" Content-Disposition: inline In-Reply-To: <4D05332C.7010208@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-multimedia@freebsd.org, "Martin Matus\(ka" Subject: Re: ffmpeg and mmap X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Dec 2010 21:24:21 -0000 --gd+outVunBU67ahz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 12, 2010 at 10:40:12PM +0200, Andriy Gapon wrote: > To get around that issue _on Linux_, ffmpeg folks have put explicit > _SVID_SOURCE definition right into the libswscale/utils.c file: > #define _SVID_SOURCE //needed for MAP_ANONYMOUS > > For much the same reason we need to add the following for FreeBSD (as > hackish as it is): #define __BSD_VISIBLE 1 > > With that addition the code buffer is allocated properly and the code > in it can be executed. Applications should never define the symbols from reserved namespace, in this case __BSD_VISIBLE. Right solution is to not define _POSIX_SOURCE. --gd+outVunBU67ahz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk0FNHUACgkQC3+MBN1Mb4iDVwCfRZi2kBGKrWXvEBt/uTzEaoKb jhMAn0q/dohVX7GXZmawJ0RFVJlM2rlR =6/jm -----END PGP SIGNATURE----- --gd+outVunBU67ahz--