|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2000-10-17 14:18 UTC] weunice at acm dot org
  [2001-11-27 05:41 UTC] sander@php.net
  [2001-12-18 07:14 UTC] sander@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 17:00:02 2025 UTC | 
I am using Netscape FastTrack 3.01 and HP-UX 10.20 and I am attempting to compile PHP as a CGI (PHP 4.0.3pl1). My problem is getting: "No input file specified." when I try to run PHP in conjunction with my web server. I can manage to get PHP 3.0.17 to work fine with my web server, but I am having a hard time getting the XML (expat) stuff working with that (I keep getting unresolved references). In order to solve my need for the XML support I decided to try PHP 4.0.3pl1. I would prefer PHP4 anyway since this is what I have at home. I can get other CGI programs to work with my web server, just not PHP. PHP also works fine from the command line. I have tried the following configure setups: CFLAGS=+e ./configure --without-mysql --enable-discard-path --with-xml CFLAGS=+e ./configure --without-mysql --with-xml CFLAGS=+e ./configure --without-mysql --enable-discard-path CFLAGS=+e ./configure --without-mysql I am pretty sure the --with-xml doesn't help or hurt the situation. I simply type make after the configure. I have copied the default php.ini file to the /usr/local/lib directory. I get a few problems during the make process, but typing make again seems to resolve them. The problems during make are (with the subsequent makes). The executable seems to work OK: /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE -I. -I/usr/local/myusername /php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4. 0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph p-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 +e -o php -export-dynamic stub.lo libphp4.la /usr/ccs/bin/ld: Unsatisfied symbols: DL_UNLOAD (code) *** Error exit code 1 Stop. *** Error exit code 1 Stop. [mymachinename:myusername] (ttypc) $ make Making all in Zend Making all in main Making all in ext Making all in pcre Making all in pcrelib Making all in posix Making all in session Making all in standard Making all in xml Making all in expat Making all in xmltok Making all in xmlparse Making all in sapi Making all in cgi /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE -I. -I/usr/local/myusername /php/php_compile/php-4.0.3pl1/sapi/cgi -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/m ain -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compil e/php-4.0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_co mpile/php-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 +e -o libsapi.la cgi_main.lo getopt.lo Making all in TSRM Making all in regex Making all in . /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE -I. -I/usr/local/myusername /php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4. 0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph p-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 +e -o libphp4.la -rpath /usr/local/myusername/php/php_compile/php-4.0.3pl1/libs stub.lo Zend/lib Zend.la sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.l a ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lm -lcrypt /bin/sh /usr/local/myusername/php/php_compile/php-4.0.3pl1/libtool --silent --mode=link cc -Aa -D_HPUX_SOURCE -I. -I/usr/local/myusername /php/php_compile/php-4.0.3pl1/ -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/main -I/u sr/local/myusername/php/php_compile/php-4.0.3pl1/Zend -I/usr/local/myusername/php/php_compile/php-4.0.3pl1 -I/usr/local/myusername/php/php_compile/php-4. 0.3pl1/ext/xml/expat/xmltok -I/usr/local/myusername/php/php_compile/php-4.0.3pl1/ext/xml/expat/xmlparse -I/usr/local/myusername/php/php_compile/ph p-4.0.3pl1/TSRM -DXML_BYTE_ORDER=21 +e -o php -export-dynamic stub.lo libphp4.la /usr/ccs/bin/ld: Unsatisfied symbols: DL_UNLOAD (code) *** Error exit code 1 Stop. *** Error exit code 1 Stop. [mymachinename:myusername] (ttypc) $ make Making all in Zend Making all in main Making all in ext Making all in pcre Making all in pcrelib Making all in posix Making all in session Making all in standard Making all in xml Making all in expat Making all in xmltok Making all in xmlparse Making all in sapi Making all in cgi Making all in TSRM Making all in regex Making all in . Making all in pear [mymachinename:myusername] (ttypc) $ I have also tried the following, which I discovered in previous posts related to the same issue: In sapi/cgi/cgi_main.c if (getenv("SCRIPT_FILENAME")) SG(request_info).path_translated = estrdup(getenv("SCRIPT_FILENAME")); else /* CNC Web server doesn`t use SCRIPT_FILENAME, so... */ { SG(request_info).path_translated = estrdup(SG(request_info).argv0); } Any info would be GREATLY appreciated