From owner-freebsd-mono@freebsd.org Sat Aug 26 07:48:08 2017 Return-Path: Delivered-To: freebsd-mono@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 935A4DF07A7 for ; Sat, 26 Aug 2017 07:48:08 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21AA63142 for ; Sat, 26 Aug 2017 07:48:08 +0000 (UTC) (envelope-from radovanovic@gmail.com) Received: by mail-wm0-x232.google.com with SMTP id b79so4960029wmb.1 for ; Sat, 26 Aug 2017 00:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=x+UNJn3R2afehT+ppikOKiCT2FpKaY/0tvgHhmRxGXk=; b=J/hnYfmiBLJebR2VVv8DPOVEnbPsHSSIn2TnTGM5lrBRorXLFoqkVUwZ/nPzBI9VxT p+p1x7f2ZXZqVyQ50Cg4q0rxEGXJ/twkRixRf7jlVvjHeja9se65AO0CO0hGuBqaMZFZ qgbyr0j5thlZLCO3PAjBVm8mmpxXOPdO0b/CaLjAYppQSt6wilmcBYhNdvYf/GtnxZnK md0ahQrjtxpn1Pmp7Al7+NDK0KNQJn8Ol2IKCuuamaxlAr+tOmkCrkdl9jQCaztjTynj KbahMbqFjabohzvUW6hrNkr5ZD8Z970ITW58bBYrPDWiCq9qDyAKfx9FGNoRzvUzFW/L 3e2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=x+UNJn3R2afehT+ppikOKiCT2FpKaY/0tvgHhmRxGXk=; b=Xkvtd+0G05Cj4l7nDE2kRxEfej/12wwCHuXRrxbd30VVkiD5JiTLV/7x/QcTIS7RGM acd98aL7fGgSUHMOm4/F2AQUA9zhRFimnoyO9BYG5cMXdhgMMMrZh57DmSBwTUu3M5p+ kDQclxXiYiH7FL1zAUNC/vaW+Gz5Se7Aq9AwMv2mMwLpagCF71sST8rW8XrVYP40Jg3x wVC4AGqBhigPFQwYNFTgDwmq3hxlw9UGe59R9ZvUJj4z0HCNQgB7KFNf2vpRRmB5ibeY kXC4utGJd18U+b2YGefrBuu5UNHfkIS//4qMS88B3Yt1q4vgB7Z8Qo/TRGZGQPmJih2b O+/w== X-Gm-Message-State: AHYfb5hIOcc7Xq1DH+Jw1kiE6+F0OMDzq9NQluagoe1Lz5+83B8bgK18 BSjtyRPMF19oOiTF X-Received: by 10.28.16.211 with SMTP id 202mr487059wmq.62.1503733685878; Sat, 26 Aug 2017 00:48:05 -0700 (PDT) Received: from zmaj.softwarehood.com (109-93-122-61.dynamic.isp.telekom.rs. [109.93.122.61]) by smtp.googlemail.com with ESMTPSA id n71sm2502527wmg.13.2017.08.26.00.48.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Aug 2017 00:48:04 -0700 (PDT) Subject: Re: Update on porting mono 5 To: Alexander Regueiro Cc: Russell Haley , freebsd-mono@freebsd.org References: <20170824184423.6422611.83240.30832@gmail.com> <0434E7AC-4627-4AF1-AF70-63219E632E52@me.com> <955EEBAF-5C94-4647-AF8C-507F1B8C12C4@me.com> <78CE544C-7B29-4561-AEDB-0EF53F0C6E03@me.com> From: Ivan Radovanovic Message-ID: Date: Sat, 26 Aug 2017 09:48:03 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <78CE544C-7B29-4561-AEDB-0EF53F0C6E03@me.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-mono@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Mono and C# applications on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2017 07:48:08 -0000 On 26/08/2017 02:47, Alexander Regueiro wrote: > Thanks for the tip. In fact, it turns out I just needed to use the `—disable-dtrace` option when configuring, to get rid of that linkage error, oops! > > Here’s the successful procedure that I followed to build & install Mono 5.2 on my FreeBSD 11 machine, in case it’s of interest to anyone while the port is being updated. I’m CCing the mailing list in case this is of use to someone. > > (Make sure beforehand you have installed ports/packages for mono [to bootstrap], gcc, and gmake.) > > The following can be run as a bash script and should do the whole job. > > PREFIX=“$HOME/build/mono/“ && > VERSION=“5.2.0.215” && > FILENAME=“mono-$VERSION.tar.bz2” && > curl -O "https://download.mono-project.com/sources/mono/$FILENAME ” && > tar -xvf “$FILENAME” && > cd “mono-$VERSION” && > ./configure —prefix=“$PREFIX" --disable-nls --disable-dtrace --build="$(gcc -dumpmachine)” && > sed -EI -e "s|#define HAVE_LOCALCHARSET_H.*|#undef HAVE_LOCALCHARSET_H|" eglib/config.h && > mkdir -p “$PREFIX” && > gmake && > gmake install && > echo “Mono $VERSION successfully built and installed to '$PREFIX'." > > (This was inspired by the docs at http://www.mono-project.com/docs/compiling-mono/mac/ , but with some significant changes.) > > Alex > > I suggest enabling btls, otherwise it won't be able to connect to servers using TLS 1.2 (unless it is enabled by default in 5.2) Kind regards, Ivan