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=/usr/local/lib/gcc46 -fno-strict-aliasing -D_THREAD_SAFE
-pthread -Wl,-rpath=/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 <glar...@freebsd.org> 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=4.6
>
> Note that the directive will bring in a lot of other dependencies with
> it, so you may also want to add WITHOUT_X11=yes to make.conf, if necessary.
>
> Hope that helps,
> Greg
> - --
> Greg Larkin
>
> http://www.FreeBSD.org/           - The Power To Serve
> http://www.sourcehosting.net/     - Ready. Set. Code.
> http://twitter.com/cpucycle/      - 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
> =CbJJ
> -----END PGP SIGNATURE-----



-- 
Ali Mashtizadeh
علی مشتی زاده
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to