Article View: de.comp.lang.php
Article #5Re: hilfe: extensions als .SO
From: Herbert Rosmanith
Date: Fri, 16 Feb 2001 16:32
Date: Fri, 16 Feb 2001 16:32
25 lines
1925 bytes
1925 bytes
In at.linux Herbert Rosmanith <herp@wildsau.idv.uni-linz.ac.at> wrote:
> : http://www.zend.com/...
> : Zend / Zend API Documentation / Extending PHP 4.0 / Creating Extensi (p7 of 9)
> : Compiling Manually. To compile your modules manually, you need the
> : following commands:
> : Compiling cc -fpic -DCOMPILE_DL=1 -I/usr/local/include -I. -I..
^^^^^^^^^^^^^^
"ha-ha-ha"
> : -I../Zend -c -o <your_object_file> <your_c_file>
> : Linking cc -shared -L/usr/local/lib -rdynamic -o <your_module_file>
> : <your_object_file(s)>
so, nach langem suchen (-> ext/standard/dl.c nachlesen)
was nirgends steht: man muss -DCOMPILE_DL_<MODULE_NAME>=1 setzen,
sonst verweigert "dl.c" das laden des .so-files. dl.c:DL_FETCH_SYMBOL()
verlangt nach einem eintrag "get_module", der durch genau diesen
switch mitcompiliert wird.
sehr witzig!!!
Technical Details
Message-ID:
<3a8d562b@alijku02.edvz.uni-linz.ac.at>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed.germany.net!blackbush.xlink.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newsfeed.wu-wien.ac.at!aconews.univie.ac.at!alijku02.edvz.uni-linz.ac.at!not-for-mailReferences:
<3a8d3ae6@alijku02.edvz.uni-linz.ac.at>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f92b,36f62c89c720867 X-Google-Attributes: gid10f92b,public X-Google-Thread: 1101c9,36f62c89c720867 X-Google-Attributes: gid1101c9,public X-Google-ArrivalTime: 2001-02-16 08:34:03 PST From: Herbert Rosmanith <herp@wildsau.idv.uni-linz.ac.at> Subject: Re: hilfe: extensions als .SO Newsgroups: de.comp.lang.php,at.linux References: <3a8d3ae6@alijku02.edvz.uni-linz.ac.at> Organization: private site User-Agent: tin/pre-1.4-971106 (UNIX) (Linux/2.2.17 (i586)) NNTP-Posting-Host: wildsau.idv-edu.uni-linz.ac.at Message-ID: <3a8d562b@alijku02.edvz.uni-linz.ac.at> Date: 16 Feb 2001 17:32:43 +0100 X-Trace: 16 Feb 2001 17:32:43 +0100, wildsau.idv-edu.uni-linz.ac.at Lines: 26 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!newsfeed.germany.net!blackbush.xlink.net!newsfeed.Austria.EU.net!newsfeed.kpnqwest.at!newsfeed.wu-wien.ac.at!aconews.univie.ac.at!alijku02.edvz.uni-linz.ac.at!not-for-mail