From owner-freebsd-ports@freebsd.org Fri Jul 14 05:05:05 2017 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 A1DA6D94CCB for ; Fri, 14 Jul 2017 05:05:05 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qk0-x232.google.com (mail-qk0-x232.google.com [IPv6:2607:f8b0:400d: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 642D97C93D for ; Fri, 14 Jul 2017 05:05:04 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qk0-x232.google.com with SMTP id a66so53585577qkb.0 for ; Thu, 13 Jul 2017 22:05:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=5oqHHFHsVdT44Ze76ptJEfvXjtwUHP9o7aorK6KILm4=; b=WLHMg2BvPar0GEGvO3oN9cx47yvSsb0bA5gc1AVtkApdkO6fA1XcArkEHwFoe17R/Y c2iT3Fba5FeixJAsrxF1w0uYg1vCFvL08RM2C/zlAlxpGjan/5QvkkoQyK832vEcnUI/ rotRM3An23OaM8cHTo++TqAHQtTSZrjR2EiAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=5oqHHFHsVdT44Ze76ptJEfvXjtwUHP9o7aorK6KILm4=; b=PmBy6RdtZkVit3OF+3WLrssVxYWngimRDQAmw16CvSa6mEWaE0GHEukkSu8HFLbvKm TwQpv7s83Bh/s3KxVkr/+ieMdWjJsMtsc3BdbgCZ/XgrqFaL6V00dUhdZsYvt7JwfUzY cqc0REBow7pnqu4+9gyJe1tkQZwnwgbCHvHxxUuMjfzOP7KzJpKlZh6LZ2nZRb3YZHdQ RLH6GWfcpNztCe8DzlTHSFQdz5n8gtrQH8U28i4klY8+WdWIN2zI+gFIyiQQG1gwecSY mxS2VMUWeaLbWR8LioeuO0fnuBZWKXllP3VjikSgARRDx4wFWBV3ZN38gSnKNTyXfJM3 XSjA== X-Gm-Message-State: AIVw112gjNvfEHRM86UigqNqu3Ng9myejMBj4cAmescN4k8ukokcaGv4 ka7j292X3casDl+N0b0= X-Received: by 10.55.108.68 with SMTP id h65mr9004311qkc.141.1500008703537; Thu, 13 Jul 2017 22:05:03 -0700 (PDT) Received: from ?IPv6:2804:54:19ef:cc00:b15a:ca6c:ee5a:6989? ([2804:54:19ef:cc00:b15a:ca6c:ee5a:6989]) by smtp.googlemail.com with ESMTPSA id 143sm5417993qkf.8.2017.07.13.22.05.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 22:05:02 -0700 (PDT) Subject: Re: ext/atomicity.h bits/c++config.h To: freebsd-ports@freebsd.org References: <77a7513c-b47d-1e59-bce8-550570c73035@bsd.com.br> <0F257FA5-0B66-484D-BFFD-68649B8E9696@FreeBSD.org> From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: Date: Fri, 14 Jul 2017 02:04:57 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <0F257FA5-0B66-484D-BFFD-68649B8E9696@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2017 05:05:05 -0000 Em 13/07/2017 17:47, Dimitry Andric escreveu: > On 13 Jul 2017, at 20:50, OtacĂ­lio wrote: >> I'm trying to make a port for personal use of the rmtp library. However I'm having some problems that I can not solve with just the help of google. Among other things, the compilation is breaking at this point >> >> In file included from /usr/ports/science/mrpt/work/.build/libs/base/cotire/mrpt-base_CXX_prefix.hxx:4: >> In file included from /usr/ports/science/mrpt/work/.build/libs/base/cotire/mrpt-base_CXX_prefix.cxx:4: >> In file included from /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/src/base-precomp.h:17: >> In file included from /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/utils/CObject.h:17: >> In file included from /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/otherlibs/stlplus/smart_ptr.hpp:49: >> /usr/ports/science/mrpt/work/mrpt-752b211/libs/base/include/mrpt/synch/atomic_incr.h:20:12: fatal error: 'ext / atomicity.h' file not found >> #include > This header is a GNU libstdc++ specific extension, e.g. it is non-portable. If the program insists on having this header, you should probably use one of the gcc ports to build it. In most cases, the program can be changed to use a portable header instead. > > >> I have found this library in /usr/src/contrib/libstdc ++/include and I do not know the correct way to include it in the project because I expected to find it in /usr/include or /usr/local/include. I even added this line in the configuration: -I/usr/src/contrib/libstdc++/include but now went on to complain that this other head file is missing >> >> /usr/src/contrib/libstdc++/include/ext/atomicity.h:38:10: fatal error: 'bits/c++config.h' file not found > You can't do that, most headers under /usr/src are not suitable for direct inclusion, they have to be installed in the right locations. Again, try using one of the gcc ports instead, they will automatically find their own libstdc++ headers (usually under /usr/local/lib/gccX/include/c++/ext). > > -Dimitry > Hi Reading the source of the program I realized that the author had already prepared to compile for OSX using clang. So I just needed to modify some #ifdef tests to make it work. Thank you by your answer. []'s -Otacilio