Date: Tue, 31 Oct 2006 14:15:02 -0600 From: Brooks Davis <brooks@one-eyed-alien.net> To: Shane <untilzero@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Compile Issue: "cannot find -ldl" Message-ID: <20061031201502.GA37630@lor.one-eyed-alien.net> In-Reply-To: <e2cabd770610311207w62e81e8cwc5835f5fa7d3a644@mail.gmail.com> References: <e2cabd770610311207w62e81e8cwc5835f5fa7d3a644@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 31, 2006 at 02:07:05PM -0600, Shane wrote: > Hi... >=20 > What I'm on: > FreeBSD/i386 version 6.1 >=20 > What I'm doing: > Trying to get PHP to compile against a Linux binary install of the > Informix Client SDK, and I've been running into an issue I cannot > correct. >=20 > Compile Error: > ... > /usr/local/ifx/lib/esql/checkapi.o -lifglx -lcrypt -liconv -liconv -lm > -lcrypt -lcrypt -o sapi/cgi/php > /usr/bin/ld: cannot find -ldl > *** Error code 1 > ... >=20 > What I know: > I know that FreeBSD does not house its dl* functions in libdl, and I'm > well aware of the ability to simple take out any references to -ldl in > the Makefile, but doing so causes even more compile errors (i'll > gladly include them if you like) >=20 > What I've tried so far: > * Adding AC_SEARCH_LIBS(dlopen,dl) to the configure.in script and > removing all references to -ldl in the Makefile >=20 > I really need help on this. Apparently IBM doesn't have any > BSD-family distributions for its client SDK, and I don't know how to > make these two guys friends. This same setup has (obviously) worked > out very well on the Debian machine it was previously on, but I would > much rather get it working on my FreeBSD server as opposed to going > back to Debian. >=20 > Is this possible? Any help would be greatly appreciated. This isn't the sort of thing that's easily possible. The problem is that you need to link the Linux library against the Linux libraries it uses or provide shims for the needed symbols. This is possible, but it's rather non-trivial. The www/linuxpluginwrapper port does this for plugins with some success, but it's non-trivial and tends to be rather fragile. -- Brooks --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFR67GXY6L6fI4GtQRAoC/AKCd3T6FV97Av8ybXi8K+gLTcE8uLQCdGE8G QPlIwwi12XAErDI1A03EY20= =ck17 -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061031201502.GA37630>