From owner-freebsd-current@freebsd.org Thu Jul 6 16:22:14 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F4C9D87652 for ; Thu, 6 Jul 2017 16:22:14 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pf0-x235.google.com (mail-pf0-x235.google.com [IPv6:2607:f8b0:400e:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F323A76504 for ; Thu, 6 Jul 2017 16:22:13 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pf0-x235.google.com with SMTP id c73so3336591pfk.2 for ; Thu, 06 Jul 2017 09:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ACITdMPOrO7ZJdjNfPZ25INr4WVTHX/29rf8M3J6udA=; b=vNIAAw9jNnyFeR3q1pDbkQo8wIT5OQ9H1CWGgr1Mae71xWLcaJFr8RGho4wbRauAiC sGFJURQtLw42ItsAAVBuXhOkRNigeSOVxHlfvs4rM/J6ijLpObm9s/dlGBHlVdP2CceJ vnyVPW5SkMeAz3jAGIKxXKnL9pPPnuTjubrIoKuKblLTm9ip/ohWXexY6S+ZA37mtT8q w91TUPWDXUx714EgMaP/v+TiDNynY727HJvGo0RjN4D/lQGeEfTKPJmpixlqco9zVHAt 75qjHQav9PY9daY6q+Qb5z/XDm8e/D4NdQzFKvkahOxChWFR0S4WMJD3/qKEgf6RfTQC oEPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ACITdMPOrO7ZJdjNfPZ25INr4WVTHX/29rf8M3J6udA=; b=VV1m2t0gZGronxpHQMk7e1514uv/6bOIkUrdrGz4LYOzj9oIQSEPh7QUakbobSh2zA 8vE2eIbmCO2w2lUEXKgW8BKozLs18ImIvZrK/b7moul+IbNhbJQ1spZEP9yYtpmM+Grm eh4yu/b42+ZKa1EekI21xNpRWkKYJIjDpqnVYeza5zN2ZynGA6VrHzepwb2ZKW+VsJwQ ojFBnAkiASwyVbPyIg0JcjUOtx0YHHYP3hPiYzT+Erqi/ytx6yT82zdTZ/u1hVyZAclk +UaSjNnc1gdYstiV2XembBui5MbOQg8fHvrSFtc9uNARLo+mEN8S58lxfmIDr8YZovk7 6kdg== X-Gm-Message-State: AIVw112c6S6Wlik6GTdfDSqgL/xu0yXiY62ZnBPCbjr80Isfr8bHj9ve pvzGhfCDUDcgBrG0nVkWCu9M/pHaRg== X-Received: by 10.99.121.77 with SMTP id u74mr26550652pgc.107.1499358133494; Thu, 06 Jul 2017 09:22:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.78 with HTTP; Thu, 6 Jul 2017 09:22:12 -0700 (PDT) In-Reply-To: <12350.1499357551@kaos.jnpr.net> References: <95831.1499300050@kaos.jnpr.net> <12350.1499357551@kaos.jnpr.net> From: blubee blubeeme Date: Fri, 7 Jul 2017 00:22:12 +0800 Message-ID: Subject: Re: .configure && make fails to find ld [dlopen] To: "Simon J. Gerraty" Cc: FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2017 16:22:14 -0000 @Simon libdl is something used on Linux to provide dlopen like functions; on FreeBSD it's already in libc so, removing the LIBS += -ldl removes the problem and the program compiles successfully; I am just a bit lost as how to proceed; See my last email with the attached updated.diff file. Best, Owen On Fri, Jul 7, 2017 at 12:12 AM, Simon J. Gerraty wrote: > blubee blubeeme wrote: > > > Thanks for the reply, I haven't set any -static in my env variables or > > anything like that. Here's a brief output of my env > > > the linking to ldl is being done automatically since I call autoreconf > -fi > > and that sets up an m4 directory. grep -rn "\-ldl" in the root of the > > source folder shows that the built in configure script and the scripts in > > the m4 directory sets up those dlopen link example > > Do you *have* a libdl? > I don't on my system (10.3), and I don't see one in the tree (head). > > > $as_echo_n "checking for dlopen in -ldl... " >&6; } > > testing for it is fine - problem would be if it thinks it found it. > > > if ${ac_cv_lib_dl_dlopen+:} false; then : > > $as_echo_n "(cached) " >&6 > > else > > ac_check_lib_save_LIBS=$LIBS > > LIBS="-ldl $LIBS" > > cat confdefs.h - <<_ACEOF >conftest.$ac_ext > > > > those are sprinkled all over the place, how do I avoid that and use libc > > instead? > > If it is a standard test, there may be a knob to disable it. >