Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jul 2017 17:14:10 -0700
From:      "Simon J. Gerraty" <sjg@juniper.net>
To:        blubee blubeeme <gurenchan@gmail.com>
Cc:        FreeBSD current <freebsd-current@freebsd.org>, <sjg@juniper.net>
Subject:   Re: .configure && make fails to find ld [dlopen]
Message-ID:  <95831.1499300050@kaos.jnpr.net>
In-Reply-To: <CALM2mEnzAKWLzRi4=KnP2GTjHEHDjLzPx8vqDmDixm=A3ugt5Q@mail.gmail.com>
References:  <CALM2mEnzAKWLzRi4=KnP2GTjHEHDjLzPx8vqDmDixm=A3ugt5Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
blubee blubeeme <gurenchan@gmail.com> wrote:
> 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

dlopen is actually implemeted in the rtld - so you need to link at least
one shared lib (usually libc) to get it.

> make also fails when it comes time to link because of the dlopen although
> it's a part of FreeBSD libc

Check that you don't have -static or equivalent in CFLAGS/LDFLAGS.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?95831.1499300050>