php-install Digest 14 Aug 2001 15:18:41 -0000 Issue 413

Topics (messages 3956 through 3966):

configured problem
        3956 by: Abu Yatim
        3957 by: Jani Taskinen

SQL script file
        3958 by: legal.HEROCYCLES.COM

Re: oci8 on s/390
        3959 by: Benjamin Heckmann

PHP as CGI with shared modules - is it possible?
        3960 by: Peter Holm
        3961 by: Rasmus Lerdorf

HTML HELP WITH PHP
        3962 by: Aaron Norton
        3963 by: Walter, Marcel
        3964 by: Guru
        3965 by: Walter, Marcel

Solaris/PHP libs in non-standard places, AFS, etc
        3966 by: Jill Reese

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]


----------------------------------------------------------------------


Hi,

When I configured php-4.0.6 with apache-1.3.19,
mysql-3.22.22 and ucd-snmp-4.2, i got error message in
php/debug.log like this :
gcc -o conftest -g -O2  -DSUPPORT_UTF8 
-Wl,-rpath,/usr/local/ucd-snmp/lib -L/usr/local/uc
d-snmp/lib conftest.c -lsnmp -lcrypt -lresolv -lm -ldl
-lnsl  -lresolv 1>&5
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `EVP_DigestInit'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `EVP_DigestFinal'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `EVP_md5'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `HMAC'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `EVP_sha1'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `des_cbc_encrypt'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `des_key_sched'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `EVP_DigestUpdate'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `RAND_bytes'
/usr/local/ucd-snmp/lib/libsnmp.so: undefined
reference to `des_ncbc_encrypt'
collect2: ld returned 1 exit status

How i can solve this problem ?

TIA

Best Regards,

-abu-

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/





Add --with-openssl to your configure line.

--Jani


On Mon, 13 Aug 2001, Abu Yatim wrote:

>Hi,
>
>When I configured php-4.0.6 with apache-1.3.19,
>mysql-3.22.22 and ucd-snmp-4.2, i got error message in
>php/debug.log like this :
>gcc -o conftest -g -O2  -DSUPPORT_UTF8
>-Wl,-rpath,/usr/local/ucd-snmp/lib -L/usr/local/uc
>d-snmp/lib conftest.c -lsnmp -lcrypt -lresolv -lm -ldl
>-lnsl  -lresolv 1>&5
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `EVP_DigestInit'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `EVP_DigestFinal'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `EVP_md5'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `HMAC'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `EVP_sha1'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `des_cbc_encrypt'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `des_key_sched'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `EVP_DigestUpdate'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `RAND_bytes'
>/usr/local/ucd-snmp/lib/libsnmp.so: undefined
>reference to `des_ncbc_encrypt'
>collect2: ld returned 1 exit status
>
>How i can solve this problem ?
>
>TIA
>
>Best Regards,
>
>-abu-
>
>__________________________________________________
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/
>
>





In MS-SQL server,  table data is transferred/uploaded on webserver  by
using the Enterprise Manager. A table alongwith data can be transferred on
Webserver by using the export option.
I am looking for such option in Mysql. I am using Mysql on windows. But, in
Mysql there is no such option to transfer table data on webserver.  I
understand that in Mysql, it can be done with running SQL script file.
Am I right? Or there is also some another option for this?
Pl. also let me know :
1.   How Sql script file is created, its format and with what extension
name it is saved?
2.   How that script file is called/executed in php? Coding for that?
Can any one send to me sample script file.

Thanks in advance.

Ajay K. Ratra
Ludhiana (INDIA)
[EMAIL PROTECTED]
www.LudhianaInfoline.com





> I am looking into running php on s/390.
>
> Do any of you know whether or not the only libraries needed for an oci8
> install are:
>
> libclntsh.so and libwtc8.so

IMO this should not be enough. The main problem you should check is, if
there
is a oracle client software for your desired s/390 system. If so, install it
and you will be fine. If not IMO you will not be able to run php with oci8
support.

>
> this is what I get as ldd output from the apache binary
>
> But will it be enough to compile and install?
>
>
> /Troels

Benjamin





HI!             

It would be interesting to know if any body did php conpile as a cgi
with shared modules and if it works. 

Was it ever intended to install it like this? I would like to use it
with shared modules, because that way I can give user different
features (with each php.ini) without compiling a php for each of them.

But I ran into major problems compiling it that way on a RH 7.1 . 
DSO works good.

So before posting some more logs I would like to ask, if it _should_
be possible... and if it makes sense...




THANKS for your attention!







Have a nice thread,
Peter




Works fine for me.  I use the same php.ini for my DSO and my CGI build and
in there I have a bunch of extension=module.so entries.  Works fine.

-Rasmus

On Tue, 14 Aug 2001, Peter Holm wrote:

> HI!
>
> It would be interesting to know if any body did php conpile as a cgi
> with shared modules and if it works.
>
> Was it ever intended to install it like this? I would like to use it
> with shared modules, because that way I can give user different
> features (with each php.ini) without compiling a php for each of them.
>
> But I ran into major problems compiling it that way on a RH 7.1 .
> DSO works good.
>
> So before posting some more logs I would like to ask, if it _should_
> be possible... and if it makes sense...
>
>
>
>
> THANKS for your attention!
>
>
>
>
>
>
>
> Have a nice thread,
> Peter
>
>





I created my page in html and then created a php file seperately for
date/time function. How do I add the function to my html page and keep the
html tage on it. Or is there a way to ad a function that will call on the
php file I made.

PLZ HELP






I think this is what you did:
file.php:
<?php
function someTimefunction() {
        <some code...>
}
?>

index.html
<html>
.
.
.
</html>

Am I right ?

What you want to do is:
1) Rename index.html in index.php  (or let the php-engine parse your
html-files)
2) Insert in your index.php or index.html - File this code:
<?php  someTimefunction(); ?>

And everything what the function returns will be written in the html - file
....

Hope this is what you asked for ...

> -----Original Message-----
> From: Aaron Norton [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 14:36
> To:   [EMAIL PROTECTED]
> Subject:      [PHP-INST] HTML HELP WITH PHP
> 
> I created my page in html and then created a php file seperately for
> date/time function. How do I add the function to my html page and keep the
> html tage on it. Or is there a way to ad a function that will call on the
> php file I made.
> 
> PLZ HELP
> 
> 
> 
> -- 
> 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]





> I created my page in html and then created a php file seperately for
> date/time function. How do I add the function to my html page and keep the
> html tage on it. Or is there a way to ad a function that will call on the
> php file I made.

add the include(URL) command to HTML code


Hope this helps

G.

-- 
http://szafir.univ.szczecin.pl/~slaanesh/ArsMagica
zapisz sie na liste poswiecona Ars Magice:
[EMAIL PROTECTED]





I forgot something. ....

YouŽll have to insert:
<?php  
        include (<full path to yout php-file with the function>);
        someTimefunction(); 
?>


> -----Original Message-----
> From: Walter, Marcel [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 14:41
> To:   'Aaron Norton'; [EMAIL PROTECTED]
> Subject:      RE: [PHP-INST] HTML HELP WITH PHP
> 
> I think this is what you did:
> file.php:
> <?php
> function someTimefunction() {
>       <some code...>
> }
> ?>
> 
> index.html
> <html>
> .
> .
> .
> </html>
> 
> Am I right ?
> 
> What you want to do is:
> 1) Rename index.html in index.php  (or let the php-engine parse your
> html-files)
> 2) Insert in your index.php or index.html - File this code:
> <?php  someTimefunction(); ?>
> 
> And everything what the function returns will be written in the html -
> file
> ....
> 
> Hope this is what you asked for ...
> 
> > -----Original Message-----
> > From:       Aaron Norton [SMTP:[EMAIL PROTECTED]]
> > Sent:       Tuesday, August 14, 2001 14:36
> > To: [EMAIL PROTECTED]
> > Subject:    [PHP-INST] HTML HELP WITH PHP
> > 
> > I created my page in html and then created a php file seperately for
> > date/time function. How do I add the function to my html page and keep
> the
> > html tage on it. Or is there a way to ad a function that will call on
> the
> > php file I made.
> > 
> > PLZ HELP
> > 
> > 
> > 
> > -- 
> > 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]
> 
> -- 
> 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]




Hi Jeff,  (answer to post on 8/6/01, 8:16 pm:
           "*Please* post fix for Solaris/PHP libmysqlclient.so.10")

        I've been having the same difficulty with configuring, making and
installing PHP.  I would put this up there as "worse than sendmail" for
a build.  Building PHP on a Solaris with non-standard places for
libraries and source is really frustrating.  We run an AFS installation
here.  I don't have access to /usr/local/lib except as read-only.  I
have root access on our web server which is where the software is built
and installed.  We build everything in the /site directory, therefore, I
have to replace /usr/local in those files with /site.  
        I've gotten it to build and install in non-standard libraries without
having to move files around from other packages.  However, now that it
can find and open all the files, when loaded into Apache, httpd starts
and dies with a segmentation fault.  truss -f  and the httpd error log
point to probably the php.ini file is the culprit (it's 786 lines long. 
Gee, what could cause a problem *there*?)  I'm still working on the
segmentation faulting.  I think what I've got so far may help you a
bit.  

To just get vanilla PHP working with Apache, I stripped everything out
of it.  I'll post progress as I succeed (or not) with this.  

Use gtar to untar the tar file.  And use gmake as the make.  There seem
to be some instabilities with vanilla Solaris utilities and these
packages.

You've already discovered that using the EXTRA_LDFLAGS doesn't work. 
There are a couple of points in the make where it looks like LDFLAGS
gets reset back to 
" ".

After the untar, edit the "configure" script for the line:
        ac_default_prefix=/usr/local
Change it to whatever directory is standard for you.  We use /site here.
        (ie:  ac_default_prefix=/site )
This is also where all of the configure flags are defined.  Choose
wisely.

My configure looked like this:
./configure --without-mysql \
--with-apxs=/site/apache/bin/apxs \
--with-openssl=/usr/local/openssl \

After the configure ran, I checked config.status to see how everything
came out.  Surprise!  /site was ignored and /usr/local was popped in
almost everywhere.  Some things did pop up as /site/src, etc.  
So, I corrupted the config.status file to change to the results I want.

Changes to config.status:
--------------------------
s%@exec_prefix@%${prefix}%g
s%@prefix@%/site%g

s%@INCLUDE_PATH@%.:/site/lib%g
s%@EXPANDED_PEAR_INSTALLDIR@%/site/lib%g
s%@EXPANDED_EXTENSION_DIR@%/site/php4/extensions/no-debug-non-zts-20001222%g
s%@EXPANDED_BINDIR@%/site/bin%g
s%@EXPANDED_LIBDIR@%/site/lib%g
s%@EXPANDED_DATADIR@%/site/share%g
s%@EXPANDED_SYSCONFDIR@%/site/etc%g
s%@EXPANDED_LOCALSTATEDIR@%/site/var%g
s%@EXPANDED_PHP_CONFIG_FILE_PATH@%/site/lib%g

s%@EXTENSION_DIR@%/site/php4/extensions/no-debug-non-zts-20001222%g

Changes to config_vars.mk:
--------------------------
prefix = /site

EXTENSION_DIR = /site/lib/php/extensions/no-debug-non-zts-20001222
EXTRA_LDFLAGS = -avoid-version -L/usr/ucblib -L/usr/local/openssl/lib
-L/usr/loc
al/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1 -L/site/lib
                                               ^^^^^^^^^^^
INCLUDES = -I/usr/local/www/apache/include -I$(top_builddir)/Zend
-I/usr/local/o
penssl/include -I/site/src/php/php-4.0.6/ext/xml/expat/xmltok
-I/site/src/php/ph
p-4.0.6/ext/xml/expat/xmlparse -I$(top_builddir)/TSRM -I/site/include
                                                      ^^^^^^^^^^^^^^^
INCLUDE_PATH = .:/site/lib/php

PHP_LDFLAGS = -L/usr/ucblib -L/usr/local/openssl/lib
-L/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1 
-L/site/lib
^^^^^^^^^^^   

PHP_RPATHS = -R /usr/ucblib -R /usr/local/openssl/lib -R
/usr/local/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.95.1 
-R /site/lib
^^^^^^^^^^^^

Also added a line near the top of the Makefile generated by the
configure script so that gmake is definitely used:
MAKE = path_to_your_gmake/gmake-sparc

Having done this, I then gmake and gmake install.  It pops everything
into the right place. 

But it still causes httpd to seg fault when loaded.  I'm working on that
now.
        --Jill Reese


Reply via email to