Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25355 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92673 invoked by uid 1010); 14 Aug 2006 21:16:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 92658 invoked from network); 14 Aug 2006 21:16:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2006 21:16:20 -0000 X-PHP-List-Original-Sender: gmclachl@cis.strath.ac.uk X-Host-Fingerprint: 83.67.88.174 i-83-67-88-174.freedom2surf.net Linux 2.5 (sometimes 2.4) (4) Received: from ([83.67.88.174:43025] helo=shatner) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 77/50-19138-028E0E44 for ; Mon, 14 Aug 2006 17:16:17 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) by shatner (Postfix) with ESMTP id 5CD6F4D0068 for ; Mon, 14 Aug 2006 22:16:20 +0100 (BST) Message-ID: <44E0E820.3030909@cis.strath.ac.uk> Date: Mon, 14 Aug 2006 22:16:16 +0100 User-Agent: Thunderbird 1.5.0.5 (X11/20060728) MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: PHP embed issues with libphp5 as a shared object. From: gmclachl@cis.strath.ac.uk (George McLachlan) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, I have run into a bit of a problem. I am trying to embed PHP into an application I am writing. So I checked out 5.2 from CVS and built it with the following flags. ./configure --enable-debug --enable-maintainer-zts --disable-cgi - --enable-cli --enable-embed I them wrote a simple example and compiled it with the following Makefile (taken from Extending and Embedding PHP) CC = gcc CFLAGS = -c -I/usr/local/include/php/ \ -I/usr/local/include/php/main \ -I/usr/local/include/php/Zend \ -I/usr/local/include/php/TSRM \ -Wall -g LDFLAGS = -L /usr/local/lib/ -lphp5 all: testphpembed.c $(CC) -o testphpembed.o testphpembed.c $(CFLAGS) $(CC) -o testphpembed testphpembed.o $(LDFLAGS) It all compiles fine, but when I try to run it I get the following error ./testphpembed: error while loading shared libraries: libphp5.so: cannot open shared object file: No such file or directory Looking in /use/local/lib shows that libphp5.so is there, and it doesn't seem to complain during compile time. Any pointers would be great. Thanks George -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFE4Ogg+w/sW80MaLwRAoVfAJ0fdEURSad1Z27ztclV3f2oJe2bmACgtc1w age0CgNzHhGjWWCu4nTy5qY= =sfIR -----END PGP SIGNATURE-----