From owner-freebsd-ports@FreeBSD.ORG Fri Sep 5 17:42:05 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 537C016A4BF for ; Fri, 5 Sep 2003 17:42:05 -0700 (PDT) Received: from lapdance.yazzy.org (yazzy.org [217.8.140.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DE5643FE0 for ; Fri, 5 Sep 2003 17:42:04 -0700 (PDT) (envelope-from freebsd@yazzy.org) Received: from yazzy.org (localhost [127.0.0.1]) by lapdance.yazzy.org (Postfix) with ESMTP id 5E22545DA; Sat, 6 Sep 2003 02:40:24 +0200 (CEST) Message-ID: <3F592CF7.1000604@yazzy.org> Date: Sat, 06 Sep 2003 02:40:23 +0200 From: YazzY User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20030904 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Brandon S. Allbery KF8NH" References: <21881.193.215.241.28.1062803807.squirrel@mail.yazzy.org> <1062805199.25955.6.camel@pyanfar.ece.cmu.edu> In-Reply-To: <1062805199.25955.6.camel@pyanfar.ece.cmu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: ports@freebsd.org Subject: Re: Problem with porting of an application which depends on linux libs. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd@yazzy.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 00:42:05 -0000 Hi. Got it ported over to FreeBSD now. Thanks a lot Brandon. Brandon S. Allbery KF8NH wrote: > On Fri, 2003-09-05 at 19:16, Martin Jessa wrote: > >>The libdl library is included in glibc which is located in >>/usr/compat/linux/lib/libdl.so.2 >>How can I use this library with my port? >>I suspect it isn't possible to link freebsd executables against linux libs. >>Or is it? >> >> >>Error message: >>checking for dlsym in -ldl... no >>configure: error: libdl is required >>===> Script "configure" failed unexpectedly. > > > The short answer is "the application is Linux-specific". > > The longer one: dlsym() happens to be in -ldl on Linux, but is in -lc > on FreeBSD. config.in needs to be modified to check for dlsym() being > in libc, and only if it's not found try looking in -ldl; then autoconf > needs to be re-run to generate a new configure script. > > But this should be taken as a warning that there may be other hidden > Linux-specific issues to deal with; the fix is *never* to try to link > against Linux compatibility libraries, but to port the application to > use the appropriate FreeBSD libraries and services. >