php-install Digest 16 Apr 2001 14:42:27 -0000 Issue 264 Topics (messages 2788 through 2792): Curl Installation problem - Log included 2788 by: Ben Ward Install php at sco unix 2789 by: Åí½ÌÎ php4 & apache2 ? 2790 by: Timothy Wojtaszek 2792 by: Mark Reidenbach Re: Exception:access violation when using PHP/apache/WinNT4.0/MSSQL calls 2791 by: Matthew DeChant Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
My support guy over at my ISP and I are having the hardest time installing curl with ssl. Everytime we try to install it like so LDFLAGS=-L/usr/local/ssl/lib ./configure --with-ssl it installs, but I get an "curl: (1) SSL is disabled, https: not supported" message. If someone could look at the config log and locations below, I would really appreciate any suggestions. Thanks, Ben -----Original Message----- From: Cedant Web Hosting [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 11:17 AM To: Ben Ward Subject: RE: cURL with SSL support (OpenSSL) Hello Ben, I attempted to do some of things outlined in the FAQ apparently without luck. I have attached the config.log file which displays the output of the configuration. Maybe you or someone that is familiar with this software can take a look at that to determine why this is not working. The command I ran was as suggested by the FAQ: LDFLAGS=-L/usr/local/ssl/lib ./configure --with-ssl Here are the contents of the /usr/local/ssl directory: $ ls bin certs include lib man misc openssl.cnf private rand.dat Here are the contents of /usr/local/ssl/lib/ $ ls libcrypto.a libssl.a Here are the contents of /usr/local/ssl/bin/ $ ls c_rehash openssl ssleay You might have someone who is familiar with OpenSSL take a look to see if this looks correct to work with CURL. Hope this helps. Thank you. -- Kurt Stauffacher Cedant Web Hosting At 06:52 PM 4/15/01, you wrote: >Kurt, > >Thank you for reinstalling. However, >I'm still getting the message below. >"curl: (1) SSL is disabled, https: not supported" >Curl isn't very smart about configuring itself without >everything in the right place. I've included some the >following from the faqs at http://curl.haxx.se/docs/faq.shtml. > >If you could check the information below and see where >curl maybe looking for OpenSSL libs or files in the wrong >place, I would greatly appreciate it. > >You can check to see if any change has corrected the problem >at http://www.japanregistry.com/ssltest.php. There will still be a >"curl: (1) SSL is disabled, https: not supported" message if there >is a problem. > This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. configure:594: checking for a BSD compatible install configure:647: checking whether build environment is sane configure:704: checking whether make sets ${MAKE} configure:750: checking for working aclocal configure:763: checking for working autoconf configure:776: checking for working automake configure:789: checking for working autoheader configure:802: checking for working makeinfo configure:891: checking host system type configure:912: checking build system type configure:932: checking for ranlib configure:962: checking for gcc configure:1075: checking whether the C compiler (gcc -L/usr/local/ssl/lib) works configure:1091: gcc -o conftest -L/usr/local/ssl/lib conftest.c 1>&5 configure:1117: checking whether the C compiler (gcc -L/usr/local/ssl/lib) is a cross-compiler configure:1122: checking whether we are using GNU C configure:1150: checking whether gcc accepts -g configure:1193: checking for ld used by GCC configure:1255: checking if the linker (/usr/bin/ld) is GNU ld configure:1271: checking for BSD-compatible nm configure:1307: checking whether ln -s works ltconfig:603: checking for object suffix ltconfig:604: gcc -c -g -O2 conftest.c 1>&5 ltconfig:776: checking if gcc PIC flag -fPIC works ltconfig:777: gcc -c -g -O2 -fPIC -DPIC conftest.c 1>&5 ltconfig:829: checking if gcc supports -c -o file.o ltconfig:830: gcc -c -g -O2 -o out/conftest2.o conftest.c 1>&5 ltconfig:862: checking if gcc supports -c -o file.lo ltconfig:863: gcc -c -g -O2 -c -o conftest.lo conftest.c 1>&5 ltconfig:914: checking if gcc supports -fno-rtti -fno-exceptions ltconfig:915: gcc -c -g -O2 -fno-rtti -fno-exceptions -c conftest.c conftest.c 1>&5 ltconfig:958: checking if gcc static flag -static works ltconfig:959: gcc -o conftest -g -O2 -L/usr/local/ssl/lib -static conftest.c 1>&5 GNU ld version 2.9.1 (with BFD 2.9.1.0.24) ltconfig:1653: checking if global_symbol_pipe works ltconfig:1654: gcc -c -g -O2 conftest.c 1>&5 ltconfig:1657: eval "/usr/bin/nm -B conftest.o | sed -n -e /^.*[ ]\([ABCDGISTW]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" ltconfig:1709: gcc -o onftest -g -O2 -fno-builtin -fno-rtti -fno-exceptions -L/usr/local/ssl/lib conftest.c conftstm.o 1>&5 configure:1499: checking host system type configure:1520: checking target system type configure:1541: checking for gcc configure:1654: checking whether the C compiler (gcc -g -O2 -L/usr/local/ssl/lib) works configure:1670: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c 1>&5 configure:1696: checking whether the C compiler (gcc -g -O2 -L/usr/local/ssl/lib) is a cross-compiler configure:1701: checking whether we are using GNU C configure:1729: checking whether gcc accepts -g configure:1762: checking how to run the C preprocessor configure:1842: checking for AIX configure:1875: checking for special C compiler options needed for large files configure:1931: checking for _FILE_OFFSET_BITS value needed for large files configure:1987: checking for _LARGEFILE_SOURCE value needed for large files configure:2043: checking for _LARGE_FILES value needed for large files configure:2102: checking whether make sets ${MAKE} configure:2130: checking whether to enable debug options configure:2164: checking whether to enable ipv6 configure:2198: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c 1>&5 configure: failed program was: #line 2184 "configure" #include "confdefs.h" /* is AF_INET6 available? */ #include <sys/types.h> #include <sys/socket.h> main() { if (socket(AF_INET6, SOCK_STREAM, 0) < 0) exit(1); else exit(0); } configure:2288: checking for gethostbyname configure:2515: checking for strcasecmp configure:2654: checking for connect configure:2750: checking for gethostname configure:2846: checking for dlopen configure:2892: checking for dlopen in -ldl configure:2965: checking for /dev/urandom configure:3045: checking if Kerberos4 support is requested configure:3465: checking where to look for SSL configure:3477: checking for CRYPTO_lock in -lcrypto configure:3727: checking for RAND_status configure:3727: checking for RAND_screen configure:3727: checking for RAND_egd configure:3810: checking for gethostbyname_r configure:3858: checking if gethostbyname_r takes 3 arguments configure:3881: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c -ldl 1>&5 configure: In function `main': configure:3872: storage size of `hdata' isn't known configure:3876: sizeof applied to an incomplete type configure:3876: sizeof applied to an incomplete type configure:3876: sizeof applied to an incomplete type configure:3876: sizeof applied to an incomplete type configure:3876: sizeof applied to an incomplete type configure:3876: sizeof applied to an incomplete type configure:3877: too few arguments to function `gethostbyname_r' configure: failed program was: #line 3863 "configure" #include "confdefs.h" #include <string.h> #include <sys/types.h> #include <netdb.h> int main () { struct hostent h; struct hostent_data hdata; char *name = "localhost"; int rc; memset(&h, 0, sizeof(struct hostent)); memset(&hdata, 0, sizeof(struct hostent_data)); rc = gethostbyname_r(name, &h, &hdata); exit (rc != 0 ? 1 : 0); } configure:3897: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments configure:3922: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c -ldl 1>&5 configure: In function `main': configure:3913: storage size of `hdata' isn't known configure:3917: sizeof applied to an incomplete type configure:3917: sizeof applied to an incomplete type configure:3917: sizeof applied to an incomplete type configure:3917: sizeof applied to an incomplete type configure:3917: sizeof applied to an incomplete type configure:3917: sizeof applied to an incomplete type configure:3918: too few arguments to function `gethostbyname_r' configure: failed program was: #line 3902 "configure" #include "confdefs.h" #define _REENTRANT #include <string.h> #include <sys/types.h> #include <netdb.h> int main () { struct hostent h; struct hostent_data hdata; char *name = "localhost"; int rc; memset(&h, 0, sizeof(struct hostent)); memset(&hdata, 0, sizeof(struct hostent_data)); rc = gethostbyname_r(name, &h, &hdata); exit (rc != 0 ? 1 : 0); } configure:3942: checking if gethostbyname_r takes 5 arguments configure:3963: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c -ldl 1>&5 configure: In function `main': configure:3959: warning: passing arg 5 of `gethostbyname_r' from incompatible pointer type configure:3959: too few arguments to function `gethostbyname_r' configure:3959: warning: assignment makes pointer from integer without a cast configure: failed program was: #line 3947 "configure" #include "confdefs.h" #include <sys/types.h> #include <netdb.h> int main () { struct hostent *hp; struct hostent h; char *name = "localhost"; char buffer[8192]; int h_errno; hp = gethostbyname_r(name, &h, buffer, 8192, &h_errno); exit (hp == NULL ? 1 : 0); } configure:3979: checking if gethostbyname_r takes 6 arguments configure:4001: gcc -o conftest -g -O2 -L/usr/local/ssl/lib conftest.c -ldl 1>&5 configure:4051: checking for gethostbyaddr_r configure:4099: checking if gethostbyaddr_r takes 5 arguments configure:4117: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:4111: storage size of `hdata' isn't known configure:4113: too few arguments to function `gethostbyaddr_r' configure: failed program was: #line 4101 "configure" #include "confdefs.h" #include <sys/types.h> #include <netdb.h> int main() { char * address; int length; int type; struct hostent h; struct hostent_data hdata; int rc; rc = gethostbyaddr_r(address, length, type, &h, &hdata); ; return 0; } configure:4133: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments configure:4152: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:4146: storage size of `hdata' isn't known configure:4148: too few arguments to function `gethostbyaddr_r' configure: failed program was: #line 4135 "configure" #include "confdefs.h" #define _REENTRANT #include <sys/types.h> #include <netdb.h> int main() { char * address; int length; int type; struct hostent h; struct hostent_data hdata; int rc; rc = gethostbyaddr_r(address, length, type, &h, &hdata); ; return 0; } configure:4172: checking if gethostbyaddr_r takes 7 arguments configure:4193: gcc -c -g -O2 conftest.c 1>&5 configure: In function `main': configure:4189: warning: passing arg 7 of `gethostbyaddr_r' from incompatible pointer type configure:4189: too few arguments to function `gethostbyaddr_r' configure:4189: warning: assignment makes pointer from integer without a cast configure: failed program was: #line 4174 "configure" #include "confdefs.h" #include <sys/types.h> #include <netdb.h> int main() { char * address; int length; int type; struct hostent h; char buffer[8192]; int h_errnop; struct hostent * hp; hp = gethostbyaddr_r(address, length, type, &h, buffer, 8192, &h_errnop); ; return 0; } configure:4209: checking if gethostbyaddr_r takes 8 arguments configure:4231: gcc -c -g -O2 conftest.c 1>&5 configure:4268: checking for inet_ntoa_r configure:4379: checking for localtime_r configure:4427: checking whether localtime_r is declared configure:4481: checking for ANSI C header files configure:4615: checking for unistd.h configure:4615: checking for malloc.h configure:4615: checking for stdlib.h configure:4615: checking for arpa/inet.h configure:4615: checking for net/if.h configure:4615: checking for netinet/in.h configure:4615: checking for netinet/if_ether.h configure:4615: checking for netdb.h configure:4615: checking for sys/select.h configure:4615: checking for sys/socket.h configure:4615: checking for sys/sockio.h configure:4615: checking for sys/stat.h configure:4615: checking for sys/types.h configure:4615: checking for sys/time.h configure:4615: checking for getopt.h configure:4615: checking for sys/param.h configure:4615: checking for termios.h configure:4615: checking for termio.h configure:4615: checking for sgtty.h configure:4615: checking for fcntl.h configure:4615: checking for dlfcn.h configure:4615: checking for alloca.h configure:4615: checking for winsock.h configure:4615: checking for time.h configure:4615: checking for io.h configure:4615: checking for pwd.h configure:4654: checking for working const configure:4729: checking for size_t configure:4762: checking whether time.h and sys/time.h may both be included configure:4801: checking size of long double configure:4841: checking size of long long configure:4882: checking for ssize_t configure:4918: checking for socklen_t in sys/socket.h configure:4982: checking host system type configure:5008: checking return type of signal handlers configure:5077: checking for socket configure:5077: checking for select configure:5077: checking for strdup configure:5077: checking for strstr configure:5077: checking for strftime configure:5077: checking for uname configure:5077: checking for strcasecmp configure:5077: checking for stricmp configure:5077: checking for strcmpi configure:5077: checking for gethostname configure:5077: checking for gethostbyaddr configure:5077: checking for getservbyname configure:5077: checking for gettimeofday configure:5077: checking for inet_addr configure:5077: checking for inet_ntoa configure:5077: checking for tcsetattr configure:5077: checking for tcgetattr configure:5077: checking for perror configure:5077: checking for closesocket configure:5077: checking for setvbuf configure:5077: checking for sigaction configure:5077: checking for signal configure:5077: checking for getpass_r configure:5077: checking for strlcat configure:5077: checking for getpwuid configure:5077: checking for geteuid configure:5141: checking for perl configure:5180: checking for gnroff configure:5222: checking for bison
I had install apache www service at SCO UNIX, and I want use PHP & Mysql to create some php document. I had configure /usr/local/lib/apache/etc/srm.conf and insert line AddType application/x-httpd-php3 .php3 in it, and I restart my apache www service, but When I write a file name aaa.php3 like this: <html><head><title>test</title></head> <body> ======================= <?php echo("Okey....."); ?> ========================= </body></html> when I use : http://somesite.com/aaa.php3, the IE tell me to download this file, Why not display Okey? software: apache 1.3, php3.0, and I think I had make a correct.
Where can I get more information on (1) if this is even possible yet - I know that php4 has a --with-apxs2 option, but I get this: ---------------make output ------------------------------- make[1]: Entering directory `/opt/Project_Yuuto/php-4.0.4pl1/sapi/apache2filter' /bin/sh /opt/Project_Yuuto/php-4.0.4pl1/libtool --silent --mode=compile gcc -I. -I/opt/Project_Yuuto/php-4.0.4pl1/sapi/apache2filter -I/opt/Proj ect_Yuuto/php-4.0.4pl1/main -I/opt/Project_Yuuto/php-4.0.4pl1 -I/opt/apache/include -I/opt/apache/include/apr -I/opt/Project_Yuuto/php-4.0.4pl1/Z end -I/opt/Project_Yuuto/php-4.0.4pl1/ext/xml/expat/xmltok -I/opt/Project_Yuuto/php-4.0.4pl1/ext/xml/expat/xmlparse -I/opt/Project_Yuuto/php-4.0. 4pl1/TSRM -D_REENTRANT -DXML_BYTE_ORDER=12 -I../TSRM -g -O2 -pthread -c sapi_apache2.c In file included from sapi_apache2.c:44: php_apache.h:24: parse error before `ap_bucket_brigade' php_apache.h:24: warning: no semicolon at end of struct or union php_apache.h:32: parse error before `}' php_apache.h:32: warning: data definition has no type or storage class sapi_apache2.c: In function `php_apache_sapi_ub_write': sapi_apache2.c:49: `ap_bucket' undeclared (first use in this function) sapi_apache2.c:49: (Each undeclared identifier is reported only once sapi_apache2.c:49: for each function it appears in.) sapi_apache2.c:49: `b' undeclared (first use in this function) sapi_apache2.c:50: `ap_bucket_brigade' undeclared (first use in this function) sapi_apache2.c:50: `bb' undeclared (first use in this function) sapi_apache2.c:51: `ctx' undeclared (first use in this function) sapi_apache2.c:52: parse error before `now' sapi_apache2.c:55: `sapi_globals' undeclared (first use in this function) sapi_apache2.c:61: `now' undeclared (first use in this function) sapi_apache2.c: In function `php_apache_sapi_header_handler': sapi_apache2.c:77: `ctx' undeclared (first use in this function) sapi_apache2.c:78: parse error before `char' sapi_apache2.c:80: `val' undeclared (first use in this function) sapi_apache2.c: In function `php_apache_sapi_send_headers': sapi_apache2.c:105: `ctx' undeclared (first use in this function) sapi_apache2.c: In function `php_apache_sapi_read_post': sapi_apache2.c:117: `ctx' undeclared (first use in this function) sapi_apache2.c: In function `php_apache_sapi_read_cookies': sapi_apache2.c:136: `ctx' undeclared (first use in this function) sapi_apache2.c:137: parse error before `const' and (2) how to properly do this, I have read to only put AddOutputFilter...., or LoadModule... in httpd.conf, but first I need a DSO. All I need is some direction please. Thanks - tim
I don't think it's possible with 4.04pl1, but it will compile if you grab the latest cvs snapshot. I've gotten it to serve pages, but when I issue an "apachectrl stop" apache refuses to kill all the processes once the php module is loaded. Take the php module out, and you're back in business. You'll also need to add the following lines to the bottom of your http.conf file: <Files *.php> SetOutputFilter PHP SetInputFilter PHP </Files> - Mark
Wow, that was a really informative. I'm glad you took the time to respond in such a helpful manner. I guess no one on this list is up to the challenge of attempting to troubleshoot the product(s) you support here? Perhaps someone could help me out and point me to the correct list? For those who had some helpful suggestions, thanks. -m -----Original Message----- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: Friday, April 13, 2001 2:54 PM To: Matthew DeChant Cc: [EMAIL PROTECTED] Subject: RE: [PHP-INST] Exception:access violation when using PHP/apache/WinNT4.0/MSSQL calls On Fri, 13 Apr 2001, Matthew DeChant wrote: > Does anyone else have any suggestions? unix > To answer the last questions: > The crash is immediate on first try. > IIS and PWS are not running. > Service pack 6a. > Nothing else is running. Memory is not an issue. > There are no event application errors or apache log errors. >