From owner-freebsd-ports@freebsd.org Thu Sep 1 18:39:28 2016 Return-Path: Delivered-To: freebsd-ports@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 45F99BCBE13 for ; Thu, 1 Sep 2016 18:39:28 +0000 (UTC) (envelope-from ben.lavery@hashbang0.com) Received: from sender163-mail.zoho.com (sender163-mail.zoho.com [74.201.84.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A1A87BD for ; Thu, 1 Sep 2016 18:39:27 +0000 (UTC) (envelope-from ben.lavery@hashbang0.com) Received: from [192.168.1.78] (134.164.93.209.dyn.plus.net [209.93.164.134]) by mx.zohomail.com with SMTPS id 14727551537219.734455256258457; Thu, 1 Sep 2016 11:39:13 -0700 (PDT) To: freebsd-ports@freebsd.org From: Ben Lavery Subject: codecvt and libc++ on FreeBSD 9.x Message-ID: <36e5134f-ef31-ec5a-c029-9a005f4c8e8d@hashbang0.com> Date: Thu, 1 Sep 2016 19:39:10 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 18:39:28 -0000 Good evening all, Fairly new to porting and I've tried porting what I thought would be a trivial program, bunnysay. Written in C++ I've patched the code to work on FreeBSD 10, however it doesn't work on FreeBSD 9 because I've included codecvt. It fails with the following error and I'm feeling a little out of my depth: ===> Building for bunnysay-1.0 [ 50%] Building CXX object CMakeFiles/bunnysay.dir/src/BunnySay.cpp.o In file included from /root/bunnysay/work/bunnysay-1.0/src/BunnySay.cpp:22:0: /root/bunnysay/work/bunnysay-1.0/src/BunnySay.h:33:19: fatal error: codecvt: No such file or directory #include ^ compilation terminated. *** [CMakeFiles/bunnysay.dir/src/BunnySay.cpp.o] Error code 1 1 error *** [CMakeFiles/bunnysay.dir/all] Error code 2 1 error *** [all] Error code 2 1 error *** [do-build] Error code 2 Stop in /root/bunnysay. On the submission (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212278) CPM has said of the issue "Second it seems that codecvt is missing, so it needs libc++ support" - but I'm not sure how to add this. I've tried adding the following which I found in multiple threads on the forums, but to no avail: CC=clang CXX=clang++ CPP=clang-cpp WITH_LIBCPLUSPLUS=yes I *think* this is because clang is too old on FreeBSD 9.3? But I'm not sure if I can/should reference a newer version from ports (and how to go about this in the proper way), and how to make this apply to FreeBSD 9.x only as it works fine "as is" on FreeBSD 10. Many thanks for any advice and words of wisdom. Ben