From owner-freebsd-ports@FreeBSD.ORG Sun Mar 8 12:42:20 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9544B97E for ; Sun, 8 Mar 2015 12:42:20 +0000 (UTC) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (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 57796A85 for ; Sun, 8 Mar 2015 12:42:20 +0000 (UTC) Received: by qcvx3 with SMTP id x3so60813103qcv.5 for ; Sun, 08 Mar 2015 05:42:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=FDxwyqyRFCl+h8oZ6T22ARyl/MyLdwj0V137OTXHvzc=; b=rgL4m1czz39guMzBaUKbrb81GZBj/Y3+UeO0WkUgs1nlVP3qZOk5YvzgnLifm7tJT4 iV1sth7Jep1slpe5kOUZ0df7n7c1tNI6n8Dimxp/xsxMHhQTDZKJyZDhX+H+LPynbr5I iUjN/MAHZR2wEl5ARHk/c0V9iguT5Xbz1ItjGeg+5HleCvmhuaQLhMH9T8NwFBNPYOv3 ZlDPuHz+od2seUulEPsNTIzQSU013mCzciM+DE5uI+7qZ1JAfKaToQ4Rx1M5d+ReCptV ACwQt5BFYPyWhiECHsM5rZG2uMyEdBZQPN1Gwtoar7cLTvxwclE4OYI4997ur+qeJlin RNMg== MIME-Version: 1.0 X-Received: by 10.140.233.84 with SMTP id e81mr31279351qhc.94.1425818539494; Sun, 08 Mar 2015 05:42:19 -0700 (PDT) Received: by 10.96.158.137 with HTTP; Sun, 8 Mar 2015 05:42:19 -0700 (PDT) In-Reply-To: References: <54FB8656.8060502@rawbw.com> <54FBDDE0.6090806@pinyon.org> <54FBEE00.6060501@rawbw.com> Date: Sun, 8 Mar 2015 14:42:19 +0200 Message-ID: Subject: Re: Single worst bug for ports: lang/gcc* doesn't support c++11 From: Kimmo Paasiala To: Yuri Content-Type: text/plain; charset=UTF-8 Cc: "Russell L. Carter" , freebsd-ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2015 12:42:20 -0000 On Sun, Mar 8, 2015 at 2:36 PM, Kimmo Paasiala wrote: > On Sun, Mar 8, 2015 at 8:36 AM, Yuri wrote: >> On 03/07/2015 21:28, Russell L. Carter wrote: >>> >>> >>> I would like to understand better the problem here, because I use c++11 >>> features heavily with lang/gcc49 on a daily basis with zero problems. >> >> >> No, gcc-4.9.3 fails in the same way. Specific missing feature: std::snprintf >> >> error: 'snprintf' is not a member of 'std' >> >> >> Yuri > > Post an example of the offending code. I suspect that the real problem > is that the code is not using an explicit 'using std::snprintf' when > it should, this is a very common problem in C++ code that has been > written at a time when including a header file was enough to bring the > std:: namespace names in that header to the global namespace. This is > no longer the case afaik on standard conformining implementations. > > -Kimmo Well, scratch that sorry. I just learned that std::snprintf is indeed a c++11 only feature... -Kimmo