Re: Php Extension with C Library

From: Date: Mon, 12 Jan 2004 14:17:44 +0000
Subject: Re: Php Extension with C Library
References: 1  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-342@lists.php.net to get a copy of this message
Have you taken a look at http://www.php.net/manual/en/zend.creating.php#zend.creating.compiling this may help. "Chidanand" <wingscng@yahoo.com> wrote in message news:20040112100635.89255.qmail@web60503.mail.yahoo.com... > Hi all, > > I am writing PHP extension. I want to use some > proprietary functions in it. The functions are in a C > library. How do i compile it with my PHP Extension. > > I have already wrritten an extension and have observed > that there is > libc.so.6 and > ld-linux.so.2 loadded with the extension . It can be > seen by trying ldd on your .so file > [php extension] > > I tried to compile it with my C-Library the > compilation goes fine and you can also see you library > along with libc.so.6 =>path to lib > ld-linux.so.2=>path to lib > yourlibrary=>path to lib > > but the program fails at the run time. saying dl() > unable to open the shared library file etc. > > I have already dropped a mail with subject > "Compilation options" you can view my compilations > opyions in that mail. > > where am i going wrong .Is my approach correct. > pls reply . > > Thanks and Regards > wings. > > __________________________________ > Do you Yahoo!? > Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes > http://hotjobs.sweepstakes.yahoo.com/signingbonus

« previous php.pecl.dev (#342) next »