From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25853 invoked by alias); 11 May 2007 20:38:49 -0000 Received: (qmail 25841 invoked by uid 22791); 11 May 2007 20:38:48 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 May 2007 20:38:42 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hmbsi-0004NL-G3 for gcc-help@gcc.gnu.org; Fri, 11 May 2007 22:38:28 +0200 Received: from 65.207.248.83 ([65.207.248.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 22:38:28 +0200 Received: from mw_triad by 65.207.248.83 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 May 2007 22:38:28 +0200 To: gcc-help@gcc.gnu.org From: Matthew Woehlke Subject: Re: hidden symbol __dso_handle reference: link error Date: Fri, 11 May 2007 20:38:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.4.0 In-Reply-To: X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00111.txt.bz2 Gary Hughes-Fenchel wrote: > I am seeing this: > /usr/bin/ld: pgmreceiver: hidden symbol `__dso_handle' in > /usr/lib/gcc/x86_6 > 4-redhat-linux/4.1.1/crtbegin.o is referenced by DSO > 26 /usr/bin/ld: final link failed: Nonrepresentable section on output > 27 collect2: ld returned 1 exit status > > I am calling ld directly. I am building 2 separate libraries and trying > to link with the dynamic libraries. The libraries are being created with: > -fvisibility=default > -shared > -soname foo.so -lc mylib1.a mylib2.a Are you using '-shared' when you invoke gcc/g++ to compile your source objects? -- Matthew find / -user your -name base -print0 | xargs -0 chown us:us