From owner-freebsd-ports@FreeBSD.ORG Thu Dec 15 03:02:01 2011 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 9923D106564A; Thu, 15 Dec 2011 03:02:01 +0000 (UTC) (envelope-from mashtizadeh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2538FC08; Thu, 15 Dec 2011 03:02:01 +0000 (UTC) Received: by dakp5 with SMTP id p5so1604566dak.13 for ; Wed, 14 Dec 2011 19:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=2iYtXbPf5/yJeSMLR6IG1GMSGko6vj9XWZilC/omd8A=; b=imAPrf5keossACHxqWoZCSdf8eAopwhf0dglhm6pjy5trH5D1/dqmIAJ/umIsYgSab WwU8syPqn5SbHkew/gLWB0AFSHYTrqTaTlYSAh4aWRvvfuw6F3/st6E8alSfI9nc7bN/ VOKA0kf1ygwjFPCY+iqsuq0WGQkUSBCo1ihfU= MIME-Version: 1.0 Received: by 10.68.189.98 with SMTP id gh2mr6947662pbc.50.1323916545778; Wed, 14 Dec 2011 18:35:45 -0800 (PST) Received: by 10.68.64.132 with HTTP; Wed, 14 Dec 2011 18:35:45 -0800 (PST) In-Reply-To: <4EE90544.7020603@FreeBSD.org> References: <4EE90544.7020603@FreeBSD.org> Date: Wed, 14 Dec 2011 18:35:45 -0800 Message-ID: From: Ali Mashtizadeh To: glarkin@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-ports Subject: Re: Building ports with gcc46 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: Thu, 15 Dec 2011 03:02:01 -0000 That gives the same error as the one of my previous attempts. Any help with this would be great. libtool: link: g++46 -D_THREAD_SAFE -pthread -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -pipe -Wl,-rpath=3D/usr/local/lib/gcc46 -fno-strict-aliasing -D_THREAD_SAFE -pthread -Wl,-rpath=3D/usr/local/lib/gcc46 -o .libs/protoc main.o ./.libs/libprotobuf.so ./.libs/libprotoc.so /usr/ports/devel/protobuf/work/protobuf-2.4.1/src/.libs/libprotobuf.so -lz -pthread -Wl,-rpath -Wl,/usr/local/lib/usr/local/bin/ld: .libs/protoc: hidden symbol `__dso_handle' in /usr/local/lib/gcc46/gcc/x86_64-portbld-freebsd9.0/4.6.3/crtbegin.o is referenced by DSO/usr/local/bin/ld: final link failed: Bad valuecollect2: ld returned 1 exit statusgmake[2]: *** [protoc] Error 1gmake[2]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1/src'gmake[1]: *** [all-recursive] Error 1gmake[1]: Leaving directory `/usr/ports/devel/protobuf/work/protobuf-2.4.1'gmake: *** [all] Error 2*** Error code 1 Stop in /usr/ports/devel/protobuf. On Wed, Dec 14, 2011 at 12:21 PM, Greg Larkin wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 12/14/11 1:44 PM, Ali Mashtizadeh wrote: >> Is there a way to build devel/protobuf with gcc46? Unfortunately I see >> a compatibility issue where the software I'm linking against it >> crashes because of the conflicting stdc++ librray versions. I've tried >> setting CC, CXX, LDFLAGS but I seem to be missing something else? >> >> Thanks, > > [NOTE: Redirecting to freebsd-ports@] > > Hi Ali, > > Have you tried adding the following to /etc/make.conf? > > USE_GCC=3D4.6 > > Note that the directive will bring in a lot of other dependencies with > it, so you may also want to add WITHOUT_X11=3Dyes to make.conf, if necess= ary. > > Hope that helps, > Greg > - -- > Greg Larkin > > http://www.FreeBSD.org/ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 - The Power To= Serve > http://www.sourcehosting.net/ =C2=A0 =C2=A0 - Ready. Set. Code. > http://twitter.com/cpucycle/ =C2=A0 =C2=A0 =C2=A0- Follow you, follow me > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk7pBUQACgkQ0sRouByUApD5iwCfZx+Z6P+NbSvz9o5iKkx1Wgsg > ME4AoICCe4m+MIPOA1UXXvoKiirIaBUb > =3DCbJJ > -----END PGP SIGNATURE----- --=20 Ali Mashtizadeh =D8=B9=D9=84=DB=8C =D9=85=D8=B4=D8=AA=DB=8C =D8=B2=D8=A7=D8=AF=D9=87