From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 21:46:55 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71B2D106566B for ; Wed, 26 Mar 2008 21:46:55 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9E08FC18 for ; Wed, 26 Mar 2008 21:46:55 +0000 (UTC) (envelope-from bahamasfranks@gmail.com) Received: by wx-out-0506.google.com with SMTP id i29so4912160wxd.7 for ; Wed, 26 Mar 2008 14:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=cd+6RgSsxpGmyj5Z3/C+TaabwGmFFv+5z4OH4d9+Nk4=; b=jP0+iEURHU9wrekJPHKDt6wyWiPS87eOXb0pLJIV8les2FZKBtGGK0W8yFsrBbRRgWonaDQFDk5bkDba7lHl8P/UZLHeKdIEkfcu2IsvggxJbphTuKF+F+ZUOd8Wir8vVENxtXwzeIrfa/kP9QzZkAh6w/gXsl7D51RntPjNi6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=U3FYCrx9DRPX+fimwbhwsCA/uSll2tGPDRZf1LnoJgt2Yfv/xoVysvrieErRiC6ymMsAM4yI/L5xKm8DE8Fyssz2K0ZFK/ohvb2a4wpzCgperFXwRR24fODVQVLqzgfrEycjUUugJaTcGdsAAZEHsX7NX4WuwoqG/2YPv0XUG6Q= Received: by 10.100.41.11 with SMTP id o11mr1224219ano.7.1206568014372; Wed, 26 Mar 2008 14:46:54 -0700 (PDT) Received: by 10.100.253.13 with HTTP; Wed, 26 Mar 2008 14:46:53 -0700 (PDT) Message-ID: <539c60b90803261446h38ee141bjc89f7156c204d58@mail.gmail.com> Date: Wed, 26 Mar 2008 14:46:53 -0700 From: "Steve Franks" Sender: bahamasfranks@gmail.com To: "User Questions" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 8487781ab2008d5c Subject: Re: freebsd equiv of libdl.a (load shared libs) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stevefranks@ieee.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2008 21:46:55 -0000 On Wed, Mar 26, 2008 at 2:39 PM, Steve Franks wrote: > I am porting a linux app which is looking for libdl.a (which I > understand from googling is related to loading of shared libs). The > app makes a libusb-based shared lib. FreeBSD uses shared libs, so I > assume there is equivalent functionality somewhere. I also see > libdl.a in /compat/linux/lib, but I assume if I link a native FreeBSD > app against this, fireworks will be the only result. I further assume > since I got no error from gcc, that some freebsd header actally points > to the exact functions expected in libdl.a, so they are in there > somewhere.... > > Steve > > -- > Steve Franks, KE7BTE > Staff Engineer > La Palma Devices, LLC > http://www.lapalmadevices.com > (520) 312-0089 > Looks like changing -ldl to -lc (libc.a) to the link step in my makefile did it. No idea why they weren't picking that up... Steve -- Steve Franks, KE7BTE Staff Engineer La Palma Devices, LLC http://www.lapalmadevices.com (520) 312-0089