[PHP-DEV] Compiling PHP as a NLM
I am currently attempting to compile PHP as an NLM. Unfortunately, my programming skills fall short of the task, but I am wading my way through it. What I am currently stuck on is where in the php4 configure script (if this is the right place to do it at) should I add the following to have it passed to gcc as it compiles it? CFLAGS = -Wall -O2 -g -I/usr/nwsdk/include/ -nostdinc -fno-builtin -fpack-struct Im not sure what other problems I may run into down the road, but I have made it this far at least.. Any help anyone could provide would be immensely appreciated Thanks, Davin Thompson [EMAIL PROTECTED] -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Compiling PHP as a NLM
Davin; I've been wanting to do this for a while (compile PHP as an Apache/NetWare module). If you need help, please let me know. I don't have a NetWare compiler, but I've been needing a reason to get one. The flags that are being passed into GCC control the way it compiles (In order... All warnings, optimize to level two, include debug symbols, use /usr/nwsdk/include as a include path, don't use the standard includes, don't use the built-in functions, and pack structs). If you're not using GCC (or are you?), you'll need to set those flags in your compiler. - Matt Davin Thompson [EMAIL PROTECTED] 04/25/01 01:01PM I am currently attempting to compile PHP as an NLM. Unfortunately,my programming skills fall short of the task, but I am wading my way throughit. What I am currently stuck on is where in the php4 configure script(if this is the right place to do it at) should I add the following tohave it passed to gcc as it compiles it? CFLAGS = -Wall -O2 -g -I/usr/nwsdk/include/ -nostdinc -fno-builtin -fpack-struct Im not sure what other problems I may run into down the road, but Ihave made it this far at least.. Any help anyone could providewould be immensely appreciated Thanks, Davin Thompson [EMAIL PROTECTED] PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Compiling PHP as a NLM
actually, I am using GCC here is a page that may be of some interest to you http://www.penguin.cz/~mhi/nlm/NLM-HOWTO/NLM-HOWTO.html I finaly figured out that I could set all the options I needed in the file "config_vars.mk", now i am fighting with POSIX it does not want to die Matt White wrote: Davin; I've been wanting to do this for a while (compile PHP as an Apache/NetWare module). If you need help, please let me know. I don't have a NetWare compiler, but I've been needing a reason to get one. The flags that are being passed into GCC control the way it compiles (In order... All warnings, optimize to level two, include debug symbols, use /usr/nwsdk/include as a include path, don't use the standard includes, don't use the built-in functions, and pack structs). If you're not using GCC (or are you?), you'll need to set those flags in your compiler. - Matt >>> Davin Thompson [EMAIL PROTECTED]> 04/25/01 01:01PM >>> I am currently attempting to compile PHP as an NLM. Unfortunately,my programming skills fall short of the task, but I am wading my way throughit. What I am currently stuck on is where in the php4 configure script(if this is the right place to do it at) should I add the following tohave it passed to gcc as it compiles it? CFLAGS = -Wall -O2 -g -I/usr/nwsdk/include/ -nostdinc -fno-builtin -fpack-struct Im not sure what other problems I may run into down the road, but Ihave made it this far at least.. Any help anyone could providewould be immensely appreciated Thanks, Davin Thompson [EMAIL PROTECTED] PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL PROTECTED] contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]