php-install Digest 28 Apr 2001 01:21:45 -0000 Issue 282

Topics (messages 2921 through 2929):

Apache2 install grief
        2921 by: Tim Kay

Re: Blocks in template class
        2922 by: Ninjaman

Problem with network.c?
        2923 by: Victor Meirans

Re: Can build database module and PHP module separately?
        2924 by: Yasuo Ohgaki

Problems with PDFLib on RedHat 6.x
        2925 by: Donald Greer
        2927 by: Andrew Apold

gd support
        2926 by: lookalive

file stub.lo: unknown file type
        2928 by: Tara Dirst

PHP for PWS??
        2929 by: Sarnil Prasad

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]


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


Hello,
        I'm trying to install 4.0.4pl1 as a module to apache 2.0.16beta and
failing miserably. Apache is built and running happily with DSO support
but PHP fails to compile using apxs2. Error messages relate to
php_apache.h and sapi_apache2.c (below) is this 'cause Apache2 has
changed so much since the alpha when php 2.0.4pl1 was released or am I
doing something wrong - there's nothing before line 24 in php_apache.h
aside from a declaration.

Thanks in adv

Tim


In file included from sapi_apache2.c:45:
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: type defaults to `int' in declaration of `php_struct'
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)





I have narrowed the problem down to the following puzzling fact.
The problem is that I can't get anything back into the block.

The following doesn't work:

    // Create the block handle
    $tpl->set_block("theList", "myblock", "HANDLE");

    // Make the list
    $tpl->set_var("BLOCK_ROW", "One");
    $tpl->parse("HANDLE", "myblock", true);
    //and more items...

This just prints the word HANDLE where the list is is supposed to be.
What does work is this:

    // Create the block handle
    $tpl->set_block("theList", "myblock", "{HANDLE}");

    // Make the list
    $tpl->set_var("BLOCK_ROW", "One");
    $tpl->parse("HANDLE", "myblock", true);
    //more items...

Note the difference. HANDLE in set_block is replaced by {HANDLE}. With this
code everything prints nicely.

I have checked the source of template.inc and indeed looks right.
(Row 109) $str = preg_replace($reg, "{$name}", $str);


I don't get it! Why is this? Everybody writing examples and using
template.inc seem to have no problem.


/NinjaMan






Hello, guys...

I am trying to compile PHP_4.0.4pl1 as an Apache_3.1.19 module with gd 
support on FreeBSD_4.0-release.

When I run "make" for PHP, I get following error:

network.c: In function `php_network_getaddresses':
network.c:79: storage size of `hints' isn't known
network.c:87: dereferencing pointer to incomplete type
network.c:95: dereferencing pointer to incomplete type
network.c:114: dereferencing pointer to incomplete type
network.c:108: warning: unreachable code at beginning of switch statement
network.c:121: dereferencing pointer to incomplete type
make[2]: *** [network.lo] Error 1
make[2]: Leaving directory `/var/linked/src/php-4.0.4pl1/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/linked/src/php-4.0.4pl1/main'
make: *** [all-recursive] Error 1

Is this a problem with PHP source or with FreeBSD??

I am using GNU make_3.79

Any help would be highly appreciated...

Please reply to directly to [EMAIL PROTECTED], since I'm not on this list.

Thanks in advance,

ViC





Change directory to exertion resides, then
$ phpize
$ ./configure --with-<module> (or --enable-<module>)
$ make
$ make install

README.SELF-CONTAINED-EXTENSION will help also. It comes with PHP source.

Regards,
--
Yasuo Ohgaki

""dino"" <[EMAIL PROTECTED]> wrote in message
9cbjud$oaj$[EMAIL PROTECTED]">news:9cbjud$oaj$[EMAIL PROTECTED]...
> Hi
>
>     Because I always met problem when building the PHP, with
> informix support. I used the steps to do this
>
> Apache
> (1)./configure --enable-module=so
> make ; make install
>
> PHP
> (2)
> ./configure --with-informox=/opt/informix --with-apxs=/usr/local/apache/bin/
> apxs
> (3)make ; make install
>
> But I can't pass (2), cause there are error occured in ext/informix, I
> wonder
> if I can skip this module first, and build php module first?
> If yes, how can I re-build the informix module later?
> possible? Thanks
>
>
>
>
>
> --
> 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]
>




   Folks,
   Ok, I'm trying to rebuild PHP4 (4.0.3pl1) with PDF capabilities and 
running into problems.  The build fails agains PDFLib 4.0.0.  When I try 
to build PDFLib 3.0.3 the build fails because I need to upgrade libpng, 
and libpng 1.0.9 complains during installation about incompatibilities 
with QT < 2.2.2.  All these builds are as RPMs.
   So, my question is, has anybody successfully built PDFLib and PHP4 w/ 
PDF support under RedHat 6.1?  If so, what are the versions you are 
using of PHP, PDFLib, libpng, and QT?
   I need to build these as RPMs because we are potentially going to 
have to install this on a dozen remote machines, and compiling and 
installing a custom install on each machine is out-of-the-question from 
a maintenance point of view.
   Any help is GREATLY appreciated.
   TIA!
   Don

-- 
--------------------------------------------------------
Donald L. Greer, Jr            [EMAIL PROTECTED]
Systems Consultant             Voice: 512-231-1240 x 101
Airlink Systems, Inc.     http://www.AirlinkSystems.COM/

"Traveler Convenience ... Corporate Control."





Donald Greer wrote:
> 
>    Folks,
>    Ok, I'm trying to rebuild PHP4 (4.0.3pl1) with PDF capabilities and
> running into problems.  The build fails agains PDFLib 4.0.0.  When I try
> to build PDFLib 3.0.3 the build fails because I need to upgrade libpng,
> and libpng 1.0.9 complains during installation about incompatibilities
> with QT < 2.2.2.  All these builds are as RPMs.
>    So, my question is, has anybody successfully built PDFLib and PHP4 w/
> PDF support under RedHat 6.1?  If so, what are the versions you are
> using of PHP, PDFLib, libpng, and QT?

Yes, though I've since ditched the RPMs.  I did have a bitch of a time 
getting them to work together, though, kept dying on show_boxed.  The
script I followed for source was mostly taken from
http://www.delouw.ch/linux/apache.phtml
just about everything except the pdflib 4.0.0 is up to date with latest
version numbers,
complete with links to where you get the stuff from.

As for RPMs, there was this guy, Arvin something or other I think that
has a 
bunch of RPMs built for redhat that are all supposed to work together
nicely,
including pdflib rpm.  You might want to check out his site, it got me
working before
(though that was on Redhat 7)...

http://rpms.arvin.dk/php/

follow the link based on your type of intel (these are precomp'd for
intel only)...

make sure you are also installing the mod_php if you are using apache...




Do web hosts have to enable GD support or should it already be active. I
checked the phpinfo.php on my host (portland.co.uk) and noticed that GD
support wasn't there. I haven't had a reply from them so can anyone tell me
if it possible for it to be enabled somehow?

Thanks






Hello, all---

I have apache and mysql installed on a Solaris 8 box. I'm trying to
install PHP 4.0 and have this error when doing make:

ld: fatal: file stub.lo: unknown file type
ld: fatal: File processing errors. No output written to
.libws/libphp4.so
*** Error code 1
make: Fatal error: command failed for target 'libphp4.la'
Current working directory /export/home/root/php-4.0.4pl1
*** Error code 1
Make: Fatal error: Command failed to target 'install-recursive'

Any ideas?

Tara




CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:


Hi fellas.

I am brand new to this php thingy. I tried installing PHP for PWS and it
worked fine, until I created and ran tested the "hello.php" file? I got the
error above. ANy suggestions?
--
Regards
=============================================
Sarnil Prasad
Etrends Fiji                                               EBizFiji Ltd.
New Media Design                                   Fiji Business Online
http://www.etrendsfiji.com                         http://www.ebizfiji.com
+ (679) 721 652                                       + (679) 315 950
ICQ 27221579
=============================================





Reply via email to