From nobody@FreeBSD.org  Wed Sep 21 14:08:49 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 80F2616A420
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2005 14:08:49 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1B17243D53
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2005 14:08:48 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8LE8mZV090539
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 21 Sep 2005 14:08:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j8LE8mWd090535;
	Wed, 21 Sep 2005 14:08:48 GMT
	(envelope-from nobody)
Message-Id: <200509211408.j8LE8mWd090535@www.freebsd.org>
Date: Wed, 21 Sep 2005 14:08:48 GMT
From: Meka <meka@softhome.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: can not link shared libs to libstdc++ and libsupc++
X-Send-Pr-Version: www-2.3

>Number:         86412
>Category:       misc
>Synopsis:       can not link shared libs to libstdc++ and libsupc++
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 21 14:10:19 GMT 2005
>Closed-Date:    Sat Jul 29 21:35:29 GMT 2006
>Last-Modified:  Sat Jul 29 21:35:29 GMT 2006
>Originator:     Meka
>Release:        6.0BETA5
>Organization:
>Environment:
FreeBSD hal9000 6.0-BETA5 FreeBSD 6.0-BETA5 #1: Mon Sep 19 07:06:34 CEST 2005     root@hal9000:/usr/obj/mnt/atom/home/src/sys/HAL9000  amd64

>Description:
      Can not make a libSOMETHING.so if it needs to link agains libsupc++ and libstdc++.
>How-To-Repeat:
      Try compiling fltk2 from svn with ./configure --enable-shared
>Fix:
      I've tried using gcc-4.0, but same thing happend. Then, I've added -fPIC to CFLAGS in /etc/make.conf and recompiled gcc-4.0, and it works. Maybe this is the solution for the system gcc.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: arved 
State-Changed-When: Sat Jul 29 21:34:24 UTC 2006 
State-Changed-Why:  
This is a problem in your applications build system. 

Shared libraries need to be compiled with -fPIC on amd64 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86412 
>Unformatted:
