From owner-freebsd-ports@FreeBSD.ORG Tue Apr 6 06:15:03 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2388106567A; Tue, 6 Apr 2010 06:15:03 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out7.libero.it (cp-out7.libero.it [212.52.84.107]) by mx1.freebsd.org (Postfix) with ESMTP id 461C58FC23; Tue, 6 Apr 2010 06:15:03 +0000 (UTC) Received: from soth.ventu (151.51.36.44) by cp-out7.libero.it (8.5.107) id 4BB326E4008C2080; Tue, 6 Apr 2010 08:15:02 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.3) with ESMTP id o366EvdN058212; Tue, 6 Apr 2010 08:14:58 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4BBAD161.7060706@netfence.it> Date: Tue, 06 Apr 2010 08:14:57 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; it-IT; rv:1.9.1.9) Gecko/20100402 Thunderbird/3.0.4 MIME-Version: 1.0 To: pav@freebsd.org, freebsd-ports@freebsd.org References: <4BA93494.9080601@netfence.it> <20100405222608.GD37471@graf.pompo.net> In-Reply-To: <20100405222608.GD37471@graf.pompo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: thierry@freebsd.org Subject: Re: Problem with devel/libtool22? [was Re: OpenCASCADE marked broken] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 06:15:03 -0000 On 04/06/10 00:26, Thierry Thomas wrote: > Le Mar 23 mar 10 à 22:37:24 +0100, Andrea Venturoli > écrivait : >> Just to let you know this used to work on 6.3, though I cannot test it >> anymore now. >> >> I can compile it without any problem on 7.2/i386, though I remove >> "USE_FORTRAN=yes". >> >> The latter is to avoid compilation with gcc4.4, which will lead to >> incompatibilities with other libraries (such as boost) I use on a >> project of mine. > > It should be fixed now. > > Actually, it used to work untill gcc-4.4.4.20100216. Gcc-44 is needed > because f77 has been removed from the base. Are you sure OpenCASCADE requires f77? I looked into the source and didn't find any file like "*.f" or "*.for", although of course they might have other extension or be generated during the build process. Also I can confirm it compiles with the base system gcc, although I don't remember if I had gcc44 installed at the time, so it might also be it picked f77 from gcc44 anyway. The whole point of the above is that, due to gcc44's libstdc++ recently becoming incompatible with older versions, if you mix different g++ versions in the same project, you'll get "Undefined symbol" errors when starting your executable. In my case, I'm linking (amongst others) against Boost and OpenCASCADE, so I need them to use the same compiler (and use that myself). Again, this is not a problem with OpenCASCADE only, but potentially affects any C++ library which is build with gcc44. bye & Thanks av.