Re: [PHP4BETA] 4.0B3-RC3 as CGI - link error

From: Date: Tue, 09 Nov 1999 16:01:29 +0000
Subject: Re: [PHP4BETA] 4.0B3-RC3 as CGI - link error
References: 1 2 3 4  Groups: php.version4 
Request: Send a blank email to php-version4+get-6032@lists.php.net to get a copy of this message
After linking, it isn't running. The CGI version segfaults when run: $ ./php Segmentation fault (core dumped) $ gdb ./php GNU gdb 4.18 [snip] (gdb) run Starting program: /usr/home/jeff/Build/orig/PHP/php-4.0b3-RC3/./php Program received signal SIGSEGV, Segmentation fault. 0x2832994b in __swhatbuf () from /usr/lib/libc.so.3 (gdb) backtrace #0 0x2832994b in __swhatbuf () from /usr/lib/libc.so.3 #1 0x2832c091 in .cerror () from /usr/lib/libc.so.3 #2 0x28316b15 in fopen () from /usr/lib/libc.so.3 #3 0x808640a in php3_fopen_with_path (filename=0x81600ab "php.ini", mode=0x81600a9 "r", path=0x8239300 ".::/usr/local/lib", opened_path=0xbfbfdb3c) at fopen-wrappers.c:397 #4 0x80842c3 in php3_init_config () at configuration-parser.y:205 #5 0x80837a8 in php3_config_ini_startup () at main.c:789 #6 0x80838b7 in php_module_startup (sf=0x81c3ea4) at main.c:899 #7 0x806c502 in main (argc=1, argv=0xbfbfdc14) at cgi_main.c:290 #8 0x806c1e1 in _start () (gdb) OH! Also, to get the ldap support to work, I had to link -lkrb and -ldes. OpenLDAP needs these to work right. After adding a quick hack around this cgi_main stuff, it won't run. :) So I don't have any clue whats up, except I can't get this new beta to run either as a CGI or a DSO. There are some other link warnings: /usr/lib/libc_r.so.3: warning: this program uses f_prealloc(), which is stupid. SUggestions?

« previous php.version4 (#6032) next »