Re: [PHP-DEV] shared extension linking

2002-08-20 Thread Ron Lange
Hi David, thank you, at least the linking seems to be done now. But if I test the module via dl() following error occours: Warning: Unable to load dynamic library './indi.so' - libmmem.so: cannot open shared object file: No such file or directory in /usr/local/ apache/htdocs/indi/indi.php on l

Re: [PHP-DEV] shared extension linking

2002-08-19 Thread Ron Lange
Hi David, David Eriksson wrote: > Use PHP_ADD_LIBRARY_WITH_PATH or PHP_ADD_LIBRARY in your config.m4 > Already done... My config.m4: Note: IndiComm, ndr and mmem have to be statically linked into this module! -- INDI_PROJECT_PATH="/home/ron/INDI

[PHP-DEV] shared extension linking

2002-08-19 Thread Ron Lange
Hello, I need to link some external libs statically into a shared php extension. If I compile this extension statically with php, all external libs also linked statically in, the extension can be used. I can't figure out how I have to modify the many configuration files to get the additional l

[PHP-DEV] Re: sockets and fds

2002-07-25 Thread Ron Lange
Arrrgghh, I left out a detail: the segmentation faults occured in the io-fns and _free() of libc. Bye Ron -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] sockets and fds

2002-07-25 Thread Ron Lange
Hello friends, I have a couple of questions about sockets and file descriptors. In my extension I make use of a ordinary c socket and two fds build on it. I want this connection to be kept over request, therefore I put a struct pointer containing this into the persistant_list of the zend engin

Re: [PHP-DEV] how to debug a php extension...

2002-07-16 Thread Ron Lange
Hi David, hi Joseph, thanks a lot, I have a very helpful backtrace now. Regards Ron David Eriksson wrote: > On Tue, 16 Jul 2002, Ron Lange wrote: > >> hi, >> in which way I could debug my extension (builtin, apachemodule)? >> unfortunately I get segmentation faults o

[PHP-DEV] how to debug a php extension...

2002-07-16 Thread Ron Lange
hi, in which way I could debug my extension (builtin, apachemodule)? unfortunately I get segmentation faults of the forked apache proc, and I can only guess where it is. It's in a particular place, where I set up a socket and two fds. I don't use php_streams. Any hints? Regards Ron -- PHP Deve

[PHP-DEV] Re: functions of ext not available

2002-07-12 Thread Ron Lange
I am really tired. I just changed the function names into the xxx_xxx form, and it is going fine. Why doesn't anybody told me that xxxXXX naming isn't "very useful"??? Good night Ron -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] functions of ext not available

2002-07-12 Thread Ron Lange
Hi guys, I've successfully compiled my extension into php and apache...the test php file phpize generated (without dl()) shows: Functions available in the test extension: indi_newSession indi_closeSession indi_sessionExists indi_startSearch indi_viewThumb indi_viewImage But if I actually want t

Re: [PHP-DEV] linking librarys into php4 extensions

2002-07-04 Thread Ron Lange
Hi David, thanks a lot! Regards Ron -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] linking librarys into php4 extensions

2002-07-03 Thread Ron Lange
Hi, I have set additional headers and AC_ADD_LIBRARY_WITH_PATH in the config.m4 of my extension to link with external libs. The php 'make --with-extension --with-apache=[pathtoapache]' builds w/o errors, but at the following apache 'configure --activate-module=src/modules/php4/libphp4.a' I get

Re: [PHP-DEV] compiling extension

2002-07-02 Thread Ron Lange
A attempt to explain... Source-Struktur: -- PHP-Tree INDI-CVS ext ... @indi -->php *buildconf (php) include *configure (php)

Re: [PHP-DEV] compiling extension

2002-07-02 Thread Ron Lange
Hi Markus, > > You don't need to include your sources but a static library > of your extension needs to be created which exports the > symbols as needed and which gets statically linked into > libphp4.so . How you build and link static libs automatically by modifying config.m4?

Re: [PHP-DEV] compiling extension

2002-07-01 Thread Ron Lange
Hello again, my last question for this week (I hope): How can I include the sources of my lib in the php build??? Although it's compiling fine, the apache build fails about undefined references to my functions. I am really tired now, since four hours I am trying to solve this problem. May I am

Re: [PHP-DEV] compiling extension

2002-07-01 Thread Ron Lange
Hi Fab, I have left out some informations, sorry. I had a problem with including our lib headers, but now I managed it. Man pages are fine things...especially these of autoconf ;-). Another mistake I've done was to ignore the output of the ext-skel script, which is telling the further steps (.

[PHP-DEV] Re: compiling extension

2002-07-01 Thread Ron Lange
Ron Lange wrote: ... > And does php compile then also as a static apache module with my > extensions? Uhm, sorry, I mean 'compile then also as an apache module with my static extension?'... > Getting tired > Ron -- PHP Development Mailing List <http://www.php.ne

[PHP-DEV] compiling extension

2002-07-01 Thread Ron Lange
Hi all, now I have only one really sucking problem: how I can compile extensions? I know that I am appearing a little bit stupid, just because of the hints of Derick an the others in a former thread... But I can't get it work... The core code of my extension (without any php-related stuff yet)

[PHP-DEV] session related connection handling/cvs/mem

2002-06-27 Thread Ron Lange
Hi, I have to build a extension for PHP, which is connecting to a special server over tcp/ip. For each session (client-php) a session related set of data has to be kept, inclusive the socket descriptors and so on. 1. How can I keep the relationship of the data and the session? The data consist