Date: Fri, 7 Jul 2017 00:22:12 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: "Simon J. Gerraty" <sjg@juniper.net> Cc: FreeBSD current <freebsd-current@freebsd.org> Subject: Re: .configure && make fails to find ld [dlopen] Message-ID: <CALM2mEmFrH%2BQBF_E_93qc40CyjfZh-mortiDaE=uBfQBMZHeWw@mail.gmail.com> In-Reply-To: <12350.1499357551@kaos.jnpr.net> References: <CALM2mEnzAKWLzRi4=KnP2GTjHEHDjLzPx8vqDmDixm=A3ugt5Q@mail.gmail.com> <95831.1499300050@kaos.jnpr.net> <CALM2mEkhrFfFOYoXDfjU%2B1GQY5=ZQierMm%2BEZF56Td-a9wG3aw@mail.gmail.com> <12350.1499357551@kaos.jnpr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
@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 <sjg@juniper.net> wrote: > blubee blubeeme <gurenchan@gmail.com> 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. >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEmFrH%2BQBF_E_93qc40CyjfZh-mortiDaE=uBfQBMZHeWw>