From owner-freebsd-current@freebsd.org Wed Jul 5 20:54:29 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 CB8E8D919DB for ; Wed, 5 Jul 2017 20:54:29 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-pg0-x236.google.com (mail-pg0-x236.google.com [IPv6:2607:f8b0:400e:c05::236]) (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 9F01F705D6 for ; Wed, 5 Jul 2017 20:54:29 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-pg0-x236.google.com with SMTP id u62so320438pgb.3 for ; Wed, 05 Jul 2017 13:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9MeI/upueHzv6Geibh8I3354StT8GuF3GdtIVZlq/+E=; b=dJoR5x7rQ+QCU/aNyb5m7qhgCH4Y7BBSMTA6Azkem3sdzkLjD+2fZwGwmuRzJ4AEnA JpWkEhwNW756SojtLGifMdwDvrkuqgQp7yI9r3pXh4KPO92mh4ZGIlGsoEwvCIu5lRRr 8YjozNTBfBJq6SXGbt/t8JxmaMWqFgRJ7edws2UHyq4SKUMCgqRbBbQiAcsesESOhJ1s AreYp5ZEUzovhaoe99Kx6SN9N9WsK4jo8Gb7cZIy3jgBfnH5pbZvlPlJABu4X9FJxU6u A/8VYQnQoPWwD94y3JXay4ZN7EKXI1DsnslvUsyP1uT9+li/ptSqhOx9wpWPdjs5yc09 OfMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9MeI/upueHzv6Geibh8I3354StT8GuF3GdtIVZlq/+E=; b=DuxgY07dSZAkoOe82MH5/NlypSzB61mfqaUPu9VXqJtWmHJaVLpRA5vXPHdef8BNpp 65LED9zhKbAFIc8+rMHpX/TH/YkTZ8Anh4XaC19++OoiSeTTh8oe6qSeTv9ZoTJ3Co55 gbCYNfskmNhiWWuyKgzW3rmET8L/zSl2kOV3T3ZTgvHfKe/Bvrc8zKYyJ5gwyZ3eemS2 uXd32dKTkKrKIZRAk6H/jmzjgrXDQI4Js4l7H3wy0Q+R8QXV5RiWs7Ew7nmDJ1M89OL9 cCmpIqhr6judsSiD7Sly0AuzUfcPtLr0kB0B3e6AP0mKiypBdMhz6PsYogudAfWDZHt2 ni4Q== X-Gm-Message-State: AIVw110kpzDpcJeW1POYSONewyhRpskzbTyZ8PCcGFBP5cf/6+HK5uxK 7sGG59KcC59gBxB9MddviIYi//aFMRq1 X-Received: by 10.98.198.87 with SMTP id m84mr22554168pfg.122.1499288068927; Wed, 05 Jul 2017 13:54:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.78 with HTTP; Wed, 5 Jul 2017 13:54:28 -0700 (PDT) From: blubee blubeeme Date: Thu, 6 Jul 2017 04:54:28 +0800 Message-ID: Subject: .configure && make fails to find ld [dlopen] To: 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: Wed, 05 Jul 2017 20:54:29 -0000 I am porting some software and it's getting tripped up with dlopen. I run autoreconf -fi and it asks me to add AC_CONFIG_MACRO_DIRS([m4]) to my configure.ac file, which I do. It creates a ./m4 directory and proceeds. After running .configure --prefix=/tmp [for testing] that' also goes fine, except .configure cannot find dlopen checking for dlopen in -ldl... no make also fails when it comes time to link because of the dlopen although it's a part of FreeBSD libc manually running ld -ld I get this output: https://pastebin.com/Rzfajnk0 The relevant parts of my env looks like this: https://pastebin.com/uJJ7BqDg Is there anything that I am missing why configure can't find ld? Best, Owen