Date: Fri, 14 Apr 2006 12:26:09 +0530 From: "Premal Mishra" <premal.mishra@gmail.com> To: "Kris Kennaway" <kris@obsecurity.org> Cc: freebsd-questions@freebsd.org Subject: Re: linker error: undefined reference to _dl_global_scope_alloc@GLIBC_2.1 Message-ID: <2211edca0604132356k42ead631p81f9a646a01f5a9a@mail.gmail.com> In-Reply-To: <20060413220040.GA71356@xor.obsecurity.org> References: <2211edca0604131404i5f8e7dd8w979a9381d875050f@mail.gmail.com> <20060413220040.GA71356@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <kris@obsecurity.org> 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 > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2211edca0604132356k42ead631p81f9a646a01f5a9a>