From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 31 20:07:07 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13B6816A412 for ; Tue, 31 Oct 2006 20:07:07 +0000 (UTC) (envelope-from untilzero@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F12D43D76 for ; Tue, 31 Oct 2006 20:07:06 +0000 (GMT) (envelope-from untilzero@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so1664967wxd for ; Tue, 31 Oct 2006 12:07:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=PNK1dhz5DO+nNhcUA2vSrN3ITHEkbV09gj5qGTHtNio7Ff8Lv1WP/f3EzlXRHBPOAQgT2zYMqhpQN/1s3cdnS4Cdc7pkqBUftj6iB35zAQYaUXHtbaX3sZmyJfJ1vkI6kHbWsA/De86sxEdc9sFvSdft/evXg8lOj/4w0cADQcc= Received: by 10.70.54.20 with SMTP id c20mr7879593wxa; Tue, 31 Oct 2006 12:07:05 -0800 (PST) Received: by 10.70.21.14 with HTTP; Tue, 31 Oct 2006 12:07:05 -0800 (PST) Message-ID: Date: Tue, 31 Oct 2006 14:07:05 -0600 From: Shane To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Compile Issue: "cannot find -ldl" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Oct 2006 20:07:07 -0000 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. - Shane