php-install Digest 15 Jan 2002 22:23:24 -0000 Issue 651

Topics (messages 5574 through 5589):

Re: ONLY 1ST LINE OF CODE APPEARS???
        5574 by: Neil Barclay

Library -lbind not found?
        5575 by: Rosser, Chris

Help Me please I want to start using php
        5576 by: william
        5580 by: EdwardSPL.ita.org.mo
        5582 by: Rasmus Lerdorf

Help please installing PHP on NetWare6 with Oracle 8i
        5577 by: Marc Gervais

[EMAIL PROTECTED]
        5578 by: John Edward Molano

Re: Compiling PHP on FreeBSD
        5579 by: Jonathan Hilgeman
        5581 by: Peter Bowyer

PHP and ODBC under Windows
        5583 by: Christ Christoph (Erste)

Need Help with PHP/Apache Installation.
        5584 by: Impu
        5588 by: Jim Thome
        5589 by: Impu

Re: problems with snmp and php
        5585 by: Giovanny Miguel Orozco Theran
        5586 by: Giovanny Miguel Orozco Theran
        5587 by: Rasmus Lerdorf

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]


----------------------------------------------------------------------
--- Begin Message ---
Hi,

Perhaps this is a result of an error during build/install, but only the 1st 
line of code appears to be parsed by apache.

I am using apache-1.3.20-16 and php-4.0.6-7 on RH7.2 and installed all from 
RPM's.

Has anyone come across this before?

TIA

Neil.
--- End Message ---
--- Begin Message ---
I'm attempting to build PHP 4.1.1 as an Apache 1.3.2x DSO on Solaris. I've
run configure without problems (--with-axps --with-oci8) but it's failing
when I try to build with make:

/bin/sh /home/ebb21242/php-4.1.1/libtool --silent --mode=link gcc  -I.
-I/home/e
bb21242/php-4.1.1/ -I/home/ebb21242/php-4.1.1/main
-I/home/ebb21242/php-4.1.1 -I
/opt/apps/apache/include -I/home/ebb21242/php-4.1.1/Zend
-I/home/ebb21242/php-4.
1.1/ext/mysql/libmysql -I/gw/oracle/product/8.1.7/rdbms/public
-I/gw/oracle/prod
uct/8.1.7/rdbms/demo -I/home/ebb21242/php-4.1.1/ext/xml/expat
-D_POSIX_PTHREAD_
SEMANTICS -DSOLARIS2=260 -DUSE_EXPAT -I/home/ebb21242/php-4.1.1/TSRM -g -O2
-pre
fer-pic   -o libphp4.la -rpath /home/ebb21242/php-4.1.1/libs -avoid-version
-L/u
sr/ucblib -L/usr/central/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2
-L/gw/oracle/pr
oduct/8.1.7/lib  -R /usr/ucblib -R
/usr/central/lib/gcc-lib/sparc-sun-solaris2.6
/2.95.2 -R /gw/oracle/product/8.1.7/lib stub.lo  Zend/libZend.la
sapi/apache/li
bsapi.la  main/libmain.la  regex/libregex.la  ext/mysql/libmysql.la
ext/oci8/lib
oci8.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la
ext/
standard/libstandard.la ext/xml/libxml.la  TSRM/libtsrm.la -lpam -ldl
-lsched -l
dl -lgen -lsocket -lnsl -lcrypt -lresolv -lbind -lm -ldl -lnsl -lsocket
-lgcc -l
crypt -lclntsh
ld: fatal: library -lbind: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /home/ebb21242/php-4.1.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'    

I've got a feeling -lbind is Oracle related... can anyone shed any light on
it?

TIA,

Chris
}:)


--- End Message ---
--- Begin Message ---

HTTP Error 403

403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed.

Please contact the Web server's administrator if the problem persists.

Why when I use the filename.php I got this message, What should I do?(I am using PWS on win98se)

____________________________________________________
  IncrediMail - Email has finally evolved - Click Here
--- End Message ---
--- Begin Message ---
Hello,

You can only use asp for Window System ( PWS + Window ), php use for
UNIX/Linux !

Edward.
--- End Message ---
--- Begin Message ---
> You can only use asp for Window System ( PWS + Window ), php use for
> UNIX/Linux !

Obviously not true.  PHP works fine on Windows.

-Rasmus

--- End Message ---
--- Begin Message ---
Need explication on how to install PHP on a NetWare 6 server (with
Apache) with the Oracle 8i connectivity. Thanks e-mail [EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---


-----Mensaje original-----
De: Marc Gervais [mailto:[EMAIL PROTECTED]]
Enviado el: Martes, 15 de Enero de 2002 07:32 a.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP-INST] Help please installing PHP on NetWare6 with Oracle 8i


Need explication on how to install PHP on a NetWare 6 server (with
Apache) with the Oracle 8i connectivity. Thanks e-mail [EMAIL PROTECTED]


-- 
PHP Install 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]

--- End Message ---
--- Begin Message ---
Are you using the port or the source code? If you're trying to compile the
source, just use the ports instead. It's faster and more manageable. Just
update your ports if it doesn't offer php 4.1.1

- Jonathan

-----Original Message-----
From: Peter Bowyer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 12, 2002 1:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Compiling PHP on FreeBSD


Hi,

I'm trying to compile PHP 4.1.1 on FreeBSD but keep on getting the
following error:


% make
Making all in Zend
Making all in main
Making all in ext
Making all in mysql
Making all in libmysql
Making all in pcre
Making all in pcrelib
Making all in posix
Making all in session
Making all in standard
/bin/sh /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/libtool
--silent --mode=compile gcc  -I.
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/main
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1
-I/usr/local/apache/1.2.6/include
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/Zend
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/mysql/libmysql
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/xml/expat
-DSTATUS -DVSERV -DISERVER -DSTANDALONE -DFRONTPAGE
-I/usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/TSRM -g -O2
-prefer-pic  -c dns.c
dns.c: In function `zif_checkdnsrr':
dns.c:199: `T_MX' undeclared (first use in this function)
dns.c:199: (Each undeclared identifier is reported only once
dns.c:199: for each function it appears in.)
dns.c:208: `T_A' undeclared (first use in this function)
dns.c:209: `T_NS' undeclared (first use in this function)
dns.c:211: `T_PTR' undeclared (first use in this function)
dns.c:212: `T_ANY' undeclared (first use in this function)
dns.c:213: `T_SOA' undeclared (first use in this function)
dns.c:214: `T_CNAME' undeclared (first use in this function)
dns.c:223: `C_IN' undeclared (first use in this function)
dns.c: In function `zif_getmxrr':
dns.c:253: `HEADER' undeclared (first use in this function)
dns.c:253: `hp' undeclared (first use in this function)
dns.c:254: syntax error before `*'
dns.c:284: `i' undeclared (first use in this function)
dns.c:284: `C_IN' undeclared (first use in this function)
dns.c:284: `T_MX' undeclared (first use in this function)
dns.c:289: syntax error before `)'
dns.c:290: `cp' undeclared (first use in this function)
dns.c:291: `end' undeclared (first use in this function)
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext/standard.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1/ext.
*** Error code 1

Stop in /usr/home/azorpro/usr/local/etc/httpd/peter/php-4.1.1.



Can anyone help?  This is my first attempt at compiling, so it's probably a 
silly error :-)

Thanks,
Peter.

--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--


-- 
PHP Install 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]
--- End Message ---
--- Begin Message ---
At 07:45 AM 1/15/02 -0800, Jonathan Hilgeman wrote:
>Are you using the port or the source code? If you're trying to compile the
>source, just use the ports instead. It's faster and more manageable. Just
>update your ports if it doesn't offer php 4.1.1

I think the problem is that Verio VPS servers don't give you the full root 
access they claim, which prevents you from installing programs to /usr/lib 
or /usr/local/lib.  I tried libXML as well, and got the same problem that I 
didn't have permission to write to those directories.  As the pkg_* tools 
aren't available to me, I'm guessing I can't use the ports either :-(

Of course, if anyone knows differently I'd love to hear from them!
TIA,
Peter.

--oOo--
Narrow Gauge on the web - photos, directory and forums!
http://www.narrow-gauge.co.uk
--oOo--
Peter's web page - Scottish narrow gauge in 009
http://members.aol.com/reywob/
--oOo--

--- End Message ---
--- Begin Message ---
Dears,

As I'm already whole the day trying to connect to a MS SQL Server with the
odbc support from PHP I encountered big problems in doing so. After deleting
all registry keys of already existing odbc connections and reconfiguring the
server to accept also user/passwordlogins (before only trusted connections
were allowed and no server-authenification) the odbc code works. Is there a
possibility to use trusted connections also? I'm asking that, because
obviously the odbc_connect function tries to open the connection with
username/password even if the dsn is configured for trusted connections and
the server denies access for user "\" (which of course does not exist....)

My config:

PHP 4.4.1 (CGI module under Win2k)
Apache 1.3.19 under win2k
my SQL-Server is version 7.0 SP1
ODBC-Drivers are Version 2.6 from Microsofts homepage
 
Regards
Christoph Christ
email: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi,
      I will highly appreciate anyone who can help me with this problem. I
am simply unable to get this going, and need somebody to point me to the
right direction. Really a network engineer, but need to launch some of my
project to the web to impress folks :))

By the way, since PHP came, I now see all the good application require
PHP...but only binary available is for Windows only :(((

Ok, here I go...  My Server environment is HP-UX 10.20

Basically, I have downloaded PHP 4.0.6, Apache 1.3.22 and I already have
installed copy of mySQL 3.23.46.  So, from PHP Directory, I ran this command

./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22

configure runs and find various dependencies.  In short, it finds gcc,
bison, gnu make and so on.  No error at all during configure script.

But as soon as I run make, I get

Making all in Zend
make[1]: Entering directory `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_scanner.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_scanner.c
/bin/sh ../libtool --silent --mode=link gcc  -g -O2  -o libZend_c.la
zend_lang
uage_scanner.lo zend_ini_scanner.lo
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_parser.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_parser.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_alloc.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_compile.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_constants.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_dynamic_array.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g   -c ./zend_execute.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_execute_API.c
zend_execute_API.c: In function `zend_set_timeout':
zend_execute_API.c:720: storage size of `t_r' isn't known
zend_execute_API.c:721: `sigset_t' undeclared (first use in this function)
zend_execute_API.c:721: (Each undeclared identifier is reported only once
zend_execute_API.c:721: for each function it appears in.)
zend_execute_API.c:721: parse error before "sigset"
zend_execute_API.c:726: `ITIMER_PROF' undeclared (first use in this
function)
zend_execute_API.c:728: `sigset' undeclared (first use in this function)
zend_execute_API.c:730: `SIG_UNBLOCK' undeclared (first use in this
function)
zend_execute_API.c: In function `zend_unset_timeout':
zend_execute_API.c:746: storage size of `no_timeout' isn't known
zend_execute_API.c:750: `ITIMER_PROF' undeclared (first use in this
function)
make[1]: *** [zend_execute_API.lo] Error 1
make[1]: Leaving directory `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
make: *** [all-recursive] Error 1


Thank you very much for your help!

Impu
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I am forwarding to you instructions I received from HP on how to build PHP on HPUX 11

Note the change to the libtool hack...
##############################################
INSTALL_php_on_HP_apache.txt

-----------------------------------------------------------------------
Installation Instructions for PHP 4.0

Note: At some points you will need to use sudo if you are not root.
The following instructions are relevant only for the official HP
distribution of Apache (1.3.12), the version of gcc on the Open
Source Developer's Toolkit CD-ROM (X.Y.Z), and php-4.0.2.
Apache and gcc must be installed on your system before attempting
to compile PHP and mod_php.

QUICK INSTALL (DSO)

For this to work your Apache httpd must have mod_so enabled.
Check using httpd -l.  

  $ /opt/apache/bin/httpd -l

You should see something like:

Compiled-in modules:
  http_core.c
  mod_so.c

Chances are you will see a lot more modules than these two. That's ok, 
as long as mod_so.c shows up you can proceed with the following steps:

-----------------------------------------------------------------------
1. Unpack your distribution file.  

You can get the latest version from "http://www.php.net/";

  $ cd /opt
  $ mkdir php
  $ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
  $ cd /opt/php

  $ gunzip -c php-4.0.x.tar.gz | tar xf -
  $ cd php-4.0.x

-----------------------------------------------------------------------
2. Configure PHP

When running configure, you should use at least the following
command line:

  $ ./configure --enable-libgcc --with-apxs=/opt/apache/bin/apxs

You can add other options if you like.  You can use the --help
option to configure to get a complete list.

After configure runs, you must edit the file libtool.  

  $ vi ./libtool

At line 184, you should change the line from:

  deplibs_check_method="unknown"
to
  deplibs_check_method="pass_all"

so that PHP and mod_php are properly compiled.

-----------------------------------------------------------------------
3. Compile and install the files.

Run make.  This should complete normally.

  $ make

Run make install.  This will fail when it attempts to call apxs.

  $ make install

Program will crash after apxs call.
Copy the call to apxs along with all its arguments.

Rename the file "libs/libphp4.sl" to "libs/libphp4.so".
  
  $ mv lib/libphp4.sl lib/libphp4.so

Re-run the command that you copied earlier but change the reference
of "lib/libphp4.sl" to "lib/php4.so":

  $ /opt/apache/bin/apxs -i -a -n php4 libs/libphp4.so

-----------------------------------------------------------------------
4. Setup the server

Next you must copy php.ini-dist to the appropriate place (normally
/usr/local/lib/php.ini) and edit it as necessary to set PHP options.

  $ sudo cp php.ini-dist /usr/local/lib/php.ini

The only thing left to do is to edit your httpd.conf file:

Look for the string "php4" and make sure that the "LoadModule"
and "AddModule" directives are outside any "IfDefine SSL" directives.

  $ vi /opt/apache/conf/httpd.conf 

  LoadModule php4_module        libexec/libphp4.so

  AddModule mod_php4.c

Also make sure the PHP 4 mime type is there and uncommented.  
You need a line that looks like this:

   AddType application/x-httpd-php .php

-----------------------------------------------------------------------
5. Testing it all worked

Restart your server. 

  $ sudo /opt/apache/bin/apachectl restart

You should be able to serve up PHP files now.  Make a test file called "test.php" and 
put some PHP tags in it such as <?phpinfo()?>.

  $ vi /opt/apache/htdocs/test.php

add

  <html> <head> </head> <body> <p> <?phpinfo()?> </p> </body> </html>

Enter following URL in your browser.

  http://<your server>/test.php

##############################################

Good Luck,

Jim


>>> "Impu" <[EMAIL PROTECTED]> 01/15 9:55 AM >>>
Hi,
      I will highly appreciate anyone who can help me with this problem. I
am simply unable to get this going, and need somebody to point me to the
right direction. Really a network engineer, but need to launch some of my
project to the web to impress folks :))

By the way, since PHP came, I now see all the good application require
PHP...but only binary available is for Windows only :(((

Ok, here I go...  My Server environment is HP-UX 10.20

Basically, I have downloaded PHP 4.0.6, Apache 1.3.22 and I already have
installed copy of mySQL 3.23.46.  So, from PHP Directory, I ran this command

./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22

configure runs and find various dependencies.  In short, it finds gcc,
bison, gnu make and so on.  No error at all during configure script.

But as soon as I run make, I get

Making all in Zend
make[1]: Entering directory `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_scanner.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_scanner.c
/bin/sh ../libtool --silent --mode=link gcc  -g -O2  -o libZend_c.la
zend_lang
uage_scanner.lo zend_ini_scanner.lo
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_language_parser.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_ini_parser.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_alloc.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_compile.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_constants.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_dynamic_array.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g   -c ./zend_execute.c
/bin/sh ../libtool --silent --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I../main
   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c zend_execute_API.c
zend_execute_API.c: In function `zend_set_timeout':
zend_execute_API.c:720: storage size of `t_r' isn't known
zend_execute_API.c:721: `sigset_t' undeclared (first use in this function)
zend_execute_API.c:721: (Each undeclared identifier is reported only once
zend_execute_API.c:721: for each function it appears in.)
zend_execute_API.c:721: parse error before "sigset"
zend_execute_API.c:726: `ITIMER_PROF' undeclared (first use in this
function)
zend_execute_API.c:728: `sigset' undeclared (first use in this function)
zend_execute_API.c:730: `SIG_UNBLOCK' undeclared (first use in this
function)
zend_execute_API.c: In function `zend_unset_timeout':
zend_execute_API.c:746: storage size of `no_timeout' isn't known
zend_execute_API.c:750: `ITIMER_PROF' undeclared (first use in this
function)
make[1]: *** [zend_execute_API.lo] Error 1
make[1]: Leaving directory `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
make: *** [all-recursive] Error 1


Thank you very much for your help!

Impu
[EMAIL PROTECTED] 



-- 
PHP Install 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] 

--- End Message ---
--- Begin Message ---
Hi Jim,
   Very much appreciate your help!

unfortunately, I have encountered the same problem
still :-(

Here's the error..
zend_execute_API.c: In function `zend_set_timeout':
zend_execute_API.c:720: storage size of `t_r' isn't
known
zend_execute_API.c:721: `sigset_t' undeclared (first
use in this function)
zend_execute_API.c:721: (Each undeclared identifier is
reported only once
zend_execute_API.c:721: for each function it appears
in.)
zend_execute_API.c:721: parse error before "sigset"
zend_execute_API.c:726: `ITIMER_PROF' undeclared
(first use in this function)
zend_execute_API.c:728: `sigset' undeclared (first use
in this function)
zend_execute_API.c:730: `SIG_UNBLOCK' undeclared
(first use in this function)
zend_execute_API.c: In function `zend_unset_timeout':
zend_execute_API.c:746: storage size of `no_timeout'
isn't known
zend_execute_API.c:750: `ITIMER_PROF' undeclared
(first use in this function)
make[1]: *** [zend_execute_API.lo] Error 1
make[1]: Leaving directory `/opt/php/php-4.0.6/Zend'
make: *** [all-recursive] Error 1


What the heck are these zend_execute_API?  Oh, I wish
HPUX Porting center will have the binary for PHP
:)))))

Any more pointer?

R
I
--- Jim Thome <[EMAIL PROTECTED]> wrote:
> I am forwarding to you instructions I received from
> HP on how to build PHP on HPUX 11
> 
> Note the change to the libtool hack...
> ##############################################
> INSTALL_php_on_HP_apache.txt
> 
>
-----------------------------------------------------------------------
> Installation Instructions for PHP 4.0
> 
> Note: At some points you will need to use sudo if
> you are not root.
> The following instructions are relevant only for the
> official HP
> distribution of Apache (1.3.12), the version of gcc
> on the Open
> Source Developer's Toolkit CD-ROM (X.Y.Z), and
> php-4.0.2.
> Apache and gcc must be installed on your system
> before attempting
> to compile PHP and mod_php.
> 
> QUICK INSTALL (DSO)
> 
> For this to work your Apache httpd must have mod_so
> enabled.
> Check using httpd -l.  
> 
>   $ /opt/apache/bin/httpd -l
> 
> You should see something like:
> 
> Compiled-in modules:
>   http_core.c
>   mod_so.c
> 
> Chances are you will see a lot more modules than
> these two. That's ok, 
> as long as mod_so.c shows up you can proceed with
> the following steps:
> 
>
-----------------------------------------------------------------------
> 1. Unpack your distribution file.  
> 
> You can get the latest version from
> "http://www.php.net/";
> 
>   $ cd /opt
>   $ mkdir php
>   $ mv <wherever it is>/php-4.0.<?>.tar.gz /opt/php
>   $ cd /opt/php
> 
>   $ gunzip -c php-4.0.x.tar.gz | tar xf -
>   $ cd php-4.0.x
> 
>
-----------------------------------------------------------------------
> 2. Configure PHP
> 
> When running configure, you should use at least the
> following
> command line:
> 
>   $ ./configure --enable-libgcc
> --with-apxs=/opt/apache/bin/apxs
> 
> You can add other options if you like.  You can use
> the --help
> option to configure to get a complete list.
> 
> After configure runs, you must edit the file
> libtool.  
> 
>   $ vi ./libtool
> 
> At line 184, you should change the line from:
> 
>   deplibs_check_method="unknown"
> to
>   deplibs_check_method="pass_all"
> 
> so that PHP and mod_php are properly compiled.
> 
>
-----------------------------------------------------------------------
> 3. Compile and install the files.
> 
> Run make.  This should complete normally.
> 
>   $ make
> 
> Run make install.  This will fail when it attempts
> to call apxs.
> 
>   $ make install
> 
> Program will crash after apxs call.
> Copy the call to apxs along with all its arguments.
> 
> Rename the file "libs/libphp4.sl" to
> "libs/libphp4.so".
>   
>   $ mv lib/libphp4.sl lib/libphp4.so
> 
> Re-run the command that you copied earlier but
> change the reference
> of "lib/libphp4.sl" to "lib/php4.so":
> 
>   $ /opt/apache/bin/apxs -i -a -n php4
> libs/libphp4.so
> 
>
-----------------------------------------------------------------------
> 4. Setup the server
> 
> Next you must copy php.ini-dist to the appropriate
> place (normally
> /usr/local/lib/php.ini) and edit it as necessary to
> set PHP options.
> 
>   $ sudo cp php.ini-dist /usr/local/lib/php.ini
> 
> The only thing left to do is to edit your httpd.conf
> file:
> 
> Look for the string "php4" and make sure that the
> "LoadModule"
> and "AddModule" directives are outside any "IfDefine
> SSL" directives.
> 
>   $ vi /opt/apache/conf/httpd.conf 
> 
>   LoadModule php4_module        libexec/libphp4.so
> 
>   AddModule mod_php4.c
> 
> Also make sure the PHP 4 mime type is there and
> uncommented.  
> You need a line that looks like this:
> 
>    AddType application/x-httpd-php .php
> 
>
-----------------------------------------------------------------------
> 5. Testing it all worked
> 
> Restart your server. 
> 
>   $ sudo /opt/apache/bin/apachectl restart
> 
> You should be able to serve up PHP files now.  Make
> a test file called "test.php" and put some PHP tags
> in it such as <?phpinfo()?>.
> 
>   $ vi /opt/apache/htdocs/test.php
> 
> add
> 
>   <html> <head> </head> <body> <p> <?phpinfo()?>
> </p> </body> </html>
> 
> Enter following URL in your browser.
> 
>   http://<your server>/test.php
> 
> ##############################################
> 
> Good Luck,
> 
> Jim
> 
> 
> >>> "Impu" <[EMAIL PROTECTED]> 01/15 9:55 AM >>>
> Hi,
>       I will highly appreciate anyone who can help
> me with this problem. I
> am simply unable to get this going, and need
> somebody to point me to the
> right direction. Really a network engineer, but need
> to launch some of my
> project to the web to impress folks :))
> 
> By the way, since PHP came, I now see all the good
> application require
> PHP...but only binary available is for Windows only
> :(((
> 
> Ok, here I go...  My Server environment is HP-UX
> 10.20
> 
> Basically, I have downloaded PHP 4.0.6, Apache
> 1.3.22 and I already have
> installed copy of mySQL 3.23.46.  So, from PHP
> Directory, I ran this command
> 
> ./configure --with-mysql=/usr/local/mysql
> --with-apache=../apache_1.3.22
> 
> configure runs and find various dependencies.  In
> short, it finds gcc,
> bison, gnu make and so on.  No error at all during
> configure script.
> 
> But as soon as I run make, I get
> 
> Making all in Zend
> make[1]: Entering directory
> `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_language_scanner.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_ini_scanner.c
> /bin/sh ../libtool --silent --mode=link gcc  -g -O2 
> -o libZend_c.la
> zend_lang
> uage_scanner.lo zend_ini_scanner.lo
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_language_parser.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_ini_parser.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_alloc.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_compile.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_constants.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_dynamic_array.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>   -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -g   -c
> ./zend_execute.c
> /bin/sh ../libtool --silent --mode=compile
> gcc -DHAVE_CONFIG_H -I. -I. -I../main
>    -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21  -g -O2 -c
> zend_execute_API.c
> zend_execute_API.c: In function `zend_set_timeout':
> zend_execute_API.c:720: storage size of `t_r' isn't
> known
> zend_execute_API.c:721: `sigset_t' undeclared (first
> use in this function)
> zend_execute_API.c:721: (Each undeclared identifier
> is reported only once
> zend_execute_API.c:721: for each function it appears
> in.)
> zend_execute_API.c:721: parse error before "sigset"
> zend_execute_API.c:726: `ITIMER_PROF' undeclared
> (first use in this
> function)
> zend_execute_API.c:728: `sigset' undeclared (first
> use in this function)
> zend_execute_API.c:730: `SIG_UNBLOCK' undeclared
> (first use in this
> function)
> zend_execute_API.c: In function
> `zend_unset_timeout':
> zend_execute_API.c:746: storage size of `no_timeout'
> isn't known
> zend_execute_API.c:750: `ITIMER_PROF' undeclared
> (first use in this
> function)
> make[1]: *** [zend_execute_API.lo] Error 1
> make[1]: Leaving directory
> `/mnt/i3107tis/D0003/source/php/php-4.0.6/Zend'
> make: *** [all-recursive] Error 1
> 
> 
> Thank you very much for your help!
> 
> Impu
> [EMAIL PROTECTED] 
> 
> 
> 
> -- 
> PHP Install 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] 
> 


__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--- End Message ---
--- Begin Message ---
Hello, we are a proyect that we need to link php4.0.6 with ucd-snmp4.2.1
 for start apache1.3.2 server, we compiling each module but to start the
 apache server it display the follow error.

 # ./apachectl start
 Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
 /usr/local/apache/bin/httpd: fatal: relocation error: file
 /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not found
 ./apachectl start: httpd could not be started

the path of library is correct, the SO is Solaris 7
 we arenīt know why, please do you know how fi it?

--- End Message ---
--- Begin Message ---
Hello, we are a proyect that we need to link php4.0.6 with ucd-snmp4.2.1
 for start apache1.3.2 server, we compiling each module but to start the
 apache server it display the follow error.

 # ./apachectl start
 Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
 Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
 /usr/local/apache/bin/httpd: fatal: relocation error: file
 /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not found
 ./apachectl start: httpd could not be started

the path of library is correct, the SO is Solaris 7
 we arenīt know why, please do you know how fi it?

--- End Message ---
--- Begin Message ---
kstat?  Is that perhaps a kerberos symbol?  Try adding --with-kerberos to
your configure line, or build ucd-snmp yourself without kerberos support,
unless of course you need it.

-Rasmus

On Tue, 15 Jan 2002, Giovanny Miguel Orozco Theran wrote:

> Hello, we are a proyect that we need to link php4.0.6 with ucd-snmp4.2.1
>  for start apache1.3.2 server, we compiling each module but to start the
>  apache server it display the follow error.
>
>  # ./apachectl start
>  Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
>  Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
>  /usr/local/apache/bin/httpd: fatal: relocation error: file
>  /usr/local/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not found
>  ./apachectl start: httpd could not be started
>
> the path of library is correct, the SO is Solaris 7
>  we arenīt know why, please do you know how fi it?
>
>

--- End Message ---

Reply via email to