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...
> What I'm on:
> FreeBSD/i386 version 6.1
> 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.
> 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
> ...
> 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)
> 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
> 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.
> 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

-- Brooks

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.4.5 (FreeBSD)