From owner-freebsd-questions@FreeBSD.ORG Fri Apr 14 07:21:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 582F116A402 for ; Fri, 14 Apr 2006 07:21:42 +0000 (UTC) (envelope-from premal.mishra@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5758743D49 for ; Fri, 14 Apr 2006 07:21:41 +0000 (GMT) (envelope-from premal.mishra@gmail.com) Received: by nproxy.gmail.com with SMTP id a25so13747nfc for ; Fri, 14 Apr 2006 00:21:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nlxuEwxYvaWrdtJ3xffew15DJphF/1AmiRkCB769EPqL5Ah8dPexYyz/6cFFlrVEidnXzl+UWY+CxXB1HTS1KLupUxKCwht7vVCyekczHfE6sXuAX2sR3CNOXDu7PMyBv6xbNxqVTXY3o58UGIDhE+24UKQrpa3TkGmsiuIK9f0= Received: by 10.48.144.9 with SMTP id r9mr435799nfd; Thu, 13 Apr 2006 23:56:09 -0700 (PDT) Received: by 10.49.31.1 with HTTP; Thu, 13 Apr 2006 23:56:09 -0700 (PDT) Message-ID: <2211edca0604132356k42ead631p81f9a646a01f5a9a@mail.gmail.com> Date: Fri, 14 Apr 2006 12:26:09 +0530 From: "Premal Mishra" To: "Kris Kennaway" In-Reply-To: <20060413220040.GA71356@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <2211edca0604131404i5f8e7dd8w979a9381d875050f@mail.gmail.com> <20060413220040.GA71356@xor.obsecurity.org> Cc: freebsd-questions@freebsd.org Subject: Re: linker error: undefined reference to _dl_global_scope_alloc@GLIBC_2.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2006 07:21:42 -0000 Hi Kris, I was trying to build a linux binary but seems doing it the wrong way. Problem is: I want to use a library which is built for linux. So i did the following: 1. cd /compat/linux 2. linked /compat/linux/lib/libc.so.6 When i linked to libc.so.6 the undefined reference errors for __ctype_b were gone. How to correctly build a linux binary? Regards Premal. On 4/14/06, Kris Kennaway wrote: > On Fri, Apr 14, 2006 at 02:34:03AM +0530, Premal Mishra wrote: > > Hi , > > > > Am gettin a linker error: > > > > in /compat/linux/lib/libc.so.6: undefined reference to > > _dl_global_scope_alloc@GLIBC_2.1 > > > > Also, there were many other similar listimgs with suffixes @GLIBC_2.2, > > @GLIBC_2.0 > > > > Which library conatins these missing definitions!!! > > What are you trying to do? I'm guessing you're trying to link FreeBSD > code to the linux libc, which is impossible. > > Kris > > >