Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4554 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49244 invoked by uid 1010); 23 Sep 2003 15:58:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 49188 invoked from network); 23 Sep 2003 15:58:52 -0000 Received: from unknown (HELO smtpzilla3.xs4all.nl) (194.109.127.139) by pb1.pair.com with SMTP; 23 Sep 2003 15:58:52 -0000 Received: from tail.dwerg.net (dwerg.xs4all.nl [213.84.21.204]) by smtpzilla3.xs4all.nl (8.12.9/8.12.9) with ESMTP id h8NFwpf6075844 for ; Tue, 23 Sep 2003 17:58:51 +0200 (CEST) To: internals@lists.php.net Content-Type: text/plain Message-ID: <1064332750.15197.13.camel@tail.dwerg.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 23 Sep 2003 17:59:11 +0200 Content-Transfer-Encoding: 7bit Subject: MonetDB extension From: manfred.stienstra@dwerg.net (Manfred Stienstra) Hi, I guess I should introduce myself first: I'm Manfred Stienstra, I'm a parttime web application programmer and parttime student Artificial Intelligence. I was asked by a teacher to create a php api for MonetDB [1], I started working on that today, and I can't find out how to create a dynamic loadable extension. The code I'm using is the standard code from ext_skel. I've tried this: gcc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I.. -I ../.. -I../../Zend -I../../include -I../../main -I../../TSRM -c -o monet.o monet.c ld --export-dynamic -shared -L/usr/lib -o monet.so monet.o but php gives this error: Warning: dl(): Invalid library (maybe not a PHP library) 'monet.so' in /var/www/tail.dwerg.net/htdocs/monet/index.php on line 3 Is there some way to use the php build structure to create dynamic loadable extensions or does someone know how to fix this? Manfred Stienstra [1] http://monetdb.cwi.nl