[PHP] "Fatal error" on parsedate.c While Building 4.3.9

2004-11-03 Thread Andrew Hauger
I am trying to build PHP 4.3.9 on Solaris 8, and I
can't get past the "make" step. At first I get the
following message:

bison -y  /opt/php/php-4.3.9/ext/standard/parsedate.y
M4sugar requires GNU M4. Install it before installing
M4sugar or
set the M4 environment variable to its path name.***
Signal 13
make: Fatal error: Command failed for target
`/opt/php/php-4.3.9/ext/standard/parsedate.c'

So I create an environment variable "M4" and point it
to the path to the "m4" command. Then I get this
message:

bison -y  /opt/php/php-4.3.9/ext/standard/parsedate.y
*** Signal 13
make: Fatal error: Command failed for target
`/opt/php/php-4.3.9/ext/standard/parsedate.c'

I have the following tools installed:

gcc v3.3
make (version bundled with Solaris 8)
flex v2.5.4a
bison v1.875
m4 v1.4.2
autoconf v2.59
automake v1.9
perl (version bundled with Solaris 8)
gzip 11.8.0
tar  (version bundled with Solaris 8)
sed 4.1.1
libtool 1.5

I have another Solaris 8 server on which I
successfully built an installed PHP 4.3.9. These tools
are all the same on both servers, and I have ensured
the LD_LIBRARY_PATH and PATH variables are also
identical.

Any helpful suggestions would be appreciated.

Andy

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0

2004-10-27 Thread Andrew Hauger
Still having trouble with this. I have tried to
compile the standard java extension in "ext/java", and
I have tried to compile "php-java-bridge" v1.0.5.

The 'phpize' script fails for the standard java
extension with the following messages:

 > Can't locate object method "path" via package
"Request" at
/usr/local/share/autoconf/Autom4te/C4che.pm line 69,
 line 94.
 > aclocal: autom4te failed with exit status: 1

The 'phpize' and 'configure' scripts complete
successfully for php-java-bridge, and then 'make'
fails with the following messages:

 >
/opt/php/php-4.3.9/php-java-bridge_1.0.5/server/natcJavaBridge.c:202:
too many arguments to function `sigwait'
 > make: *** [server/natcJavaBridge.lo] Error 1

I back-revved from PHP 4.3.10-dev to PHP 4.3.9, and I
upgraded the supporting tools as follows:

m4: 1.4.2
autoconf: 2.59
automake: 1.9
libtool: 1.5

As a reminder, I am running Solaris 9 for Sparc.

Any help would be appreciated.

--- Andrew Hauger <[EMAIL PROTECTED]> wrote:

> Thanks Raditha. Unfortunately, I am still having
> problems. I am new to building extensions, and now
> my
> problem is an error during the java extension build
> process.
> 
> I got the message :
> 
> configure.in:65: error: possibly undefined macro:
> AC_PROG_LIBTOOL
> 
> when I ran phpize in the ext/java directory. I'm not
> sure at this point how I managed to build the
> extension the first time, because now I can't build
> it.
> 
> I researched this message, and I found bug report
> #16552. I followed the instructions in the bug
> report
> that said the fix was to download the latest
> snapshot,
> but no luck. I am still getting the error.
> 
> Here's my configuration:
> 
> OS: Solaris 9 on Sparc
> PHP: 4.3.10-dev (as of this morning, was 4.3.4)
> automake: 1.62
> autoconf: 2.53
> 
> Again, I would appreciate any useful suggestions.
> 
> --- raditha dissanayake <[EMAIL PROTECTED]> wrote:
> 
> > Andrew Hauger wrote:
> > 
> > >Everything compiled okay, and I think everything
> is
> > >installed in the right places. When I try to run
> a
> > >test program, I get the error:
> > >
> > >[error] PHP Fatal error: 
> > >java.lang.UnsatisfiedLinkError: no php_java in
> > >java.library.path in
> > >/usr/local/apache/htdocs/java_test2.php on line 5
> > >
> > >The file php_java.jar is in that directory!
> > >  
> > >
> > And what is that directory? :-)
> > 
> > here is what worked for me
> > http://www.raditha.com/php/java.php  i 
> > originally wrote it for version 1.4.2 but use thed
> > same settings with 1.5.0
> > 
> > 
> > >  
> > >
> > 
> > 
> > -- 
> > Raditha Dissanayake.
> >
>

> > http://www.radinks.com/sftp/ |
> > http://www.raditha.com/megaupload
> > Lean and mean Secure FTP applet with | Mega Upload
> -
> > PHP file uploader
> > Graphical User Inteface. Just 128 KB | with
> progress
> > bar.
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit:
> http://www.php.net/unsub.php
> > 
> > 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0

2004-10-22 Thread Andrew Hauger
Thanks Raditha. Unfortunately, I am still having
problems. I am new to building extensions, and now my
problem is an error during the java extension build
process.

I got the message :

configure.in:65: error: possibly undefined macro:
AC_PROG_LIBTOOL

when I ran phpize in the ext/java directory. I'm not
sure at this point how I managed to build the
extension the first time, because now I can't build
it.

I researched this message, and I found bug report
#16552. I followed the instructions in the bug report
that said the fix was to download the latest snapshot,
but no luck. I am still getting the error.

Here's my configuration:

OS: Solaris 9 on Sparc
PHP: 4.3.10-dev (as of this morning, was 4.3.4)
automake: 1.62
autoconf: 2.53

Again, I would appreciate any useful suggestions.

--- raditha dissanayake <[EMAIL PROTECTED]> wrote:

> Andrew Hauger wrote:
> 
> >Everything compiled okay, and I think everything is
> >installed in the right places. When I try to run a
> >test program, I get the error:
> >
> >[error] PHP Fatal error: 
> >java.lang.UnsatisfiedLinkError: no php_java in
> >java.library.path in
> >/usr/local/apache/htdocs/java_test2.php on line 5
> >
> >The file php_java.jar is in that directory!
> >  
> >
> And what is that directory? :-)
> 
> here is what worked for me
> http://www.raditha.com/php/java.php  i 
> originally wrote it for version 1.4.2 but use thed
> same settings with 1.5.0
> 
> 
> >  
> >
> 
> 
> -- 
> Raditha Dissanayake.
>

> http://www.radinks.com/sftp/ |
> http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload -
> PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress
> bar.
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Trying to Integrate PHP 4.3.4 w/ JDK 1.5.0

2004-10-21 Thread Andrew Hauger
Everything compiled okay, and I think everything is
installed in the right places. When I try to run a
test program, I get the error:

[error] PHP Fatal error: 
java.lang.UnsatisfiedLinkError: no php_java in
java.library.path in
/usr/local/apache/htdocs/java_test2.php on line 5

The file php_java.jar is in that directory!

Here are the php.ini parameters:
java.class.path=/usr/local/php-4.3.4/lib/php_java.jar
java.home=/usr/java
java.library.path=/usr/local/php-4.3.4/lib
java.library=/usr/jdk1.5.0/jre/lib/sparc/libjava.so

I appreciate any useful suggestions.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Ld error

2004-06-18 Thread Andrew Hauger
I found this thread in a php news archive. I am fairly
new to compiling php on a Unix system, and I am having
the same problem described in this thread. I am trying
to compile php 4.3.4 on a Solaris 9 system. I have
fixed my path, and I do not have GNU sed installed on
the system. I am still getting the same error. Would
installing GNU sed fix the problem, or is there
something else I need to do?

- Original Message -

Thanks for the hint, 
it was my standard Sun sed application before the GNU
dito in my PATH as
well as ld application that cased the problem. So
switching usr/bin and
usr/local/bin in the path helped alot.

Göran 

-Ursprungligt meddelande-
Från: Evan Nemerson [mailto:[EMAIL PROTECTED] 
Skickat: den 27 maj 2003 03:25
Till: Göran Höglund
Kopia: [EMAIL PROTECTED]
Ämne: Re: [PHP] Ld error


PHP trips up on my ld sometimes if i made the command
line (/cgi)
version of 
php before the dso. Try `make clean`, then `make`.
dunno if that's the 
problem for sure, though- my error is usually file
truncated, but im on
linux



On Monday 26 May 2003 06:09 am, Göran Höglund wrote:
> Hi I'm trying to compile the php-4.3.1 package on a
SUN/Solaris 8 
> mashine.
>
> I confugured php with: ./configure 
> --with-apxs2=/usr/local/apache2/bin/apxs
>
> I have installed all requiered neccesary packages,
downloded from 
> sunfreeware.com.
>
> I have installed Apache2 under /usr/local/apache2.
>
> When my gcc compiler tries to make the package I get
the following
> message:
>
> ld: fatal: file ext/ctype/ctype.lo: unknown file
type
> ld: fatal: File processing errors. No output written
to 
> .libs/libphp4.so
>
>
> My ld is: /usr/ccs/bin/ld
>
> And ls gives: -rw-r--r--   1 root other 
1 May 26 11:23
> ext/ctype/ctype.lo
>
> Regards Göran

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] File Download link not working in PHP 4.3.4

2004-03-31 Thread Andrew Hauger
Curt,

Thanks for the suggestions. Unfortunately, no luck
yet. Here's the current version of the affected lines
of code:

$file_type = "vnd.ms-excel";
$file_ending = "xls";
header ( "Content-Type: application/$file_type" );
header ( 'Content-Disposition: attachment;
filename="product.'.$file_ending.'"' );
header ( 'Expires: ' . date ( 'r', 0 ));

Still getting the same behavior, on both the Windows
and Solaris platforms.

Andy

> From: Curt Zirzow [EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 9:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] File Download link not working in
PHP 4.3.4
> 
> * Thus wrote Andrew Hauger ([EMAIL PROTECTED]):
> > the file name. When the "OK" button is clicked, an
> > error dialog pops up with the message "Internet
> > Explorer cannot download ... [snipped URL].
Internet
> > Explorer was not able to open this Internet site.
The
> > requested site is either unavailable or cannot be
> > found. Please try again later."
> 
> This can mean a lot of things, IE tends to be too
friendly
> sometimes.
> 
> 
> > 
> > Here are the header commands:
> > 
> > $file_type = "vnd.ms-excel";
> > $file_ending = "xls";
> > header ( "Content-Type: application/$file_type" );
> > header ( "Content-Disposition: attachment;
> > filename=product.".$file_ending );
> 
> Quote the filename, although it most likley wont be
the problem.
> 
>Conent-Type: attachment; filename="product.xls"
> 
> 
> > header ( "Expires: 0" );
> 
> I might wage this is the problem, it needs to be a
valid HTTP date,
> something like this will do the job:
> 
>   header('Expires: ' . date('r', 0); 
> 
> 
> Curt
> -- 
> "I used to think I was indecisive, but now I'm not
so sure."
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system
(http://www.grisoft.com).
> Version: 6.0.624 / Virus Database: 401 - Release
Date: 3/15/2004

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] File Download link not working in PHP 4.3.4

2004-03-30 Thread Andrew Hauger
I have a script that dynamically generates a CSV file
for downloading to MS Excel. The script works fine in
PHP 4.3.3 on a Windows machine using Apache 2, and the
exact same script does not work in PHP 4.3.4 on
Solaris 9 using Apache 1.3.29. A script with
essentially the same header commands works in PHP
4.3.1 on Solaris 9 using Apache 1.3.27. 

The script is supposed to pop up a window to prompt
the user to either open the document from its current
location or save it to disk. On the systems that work,
the window pops up with the expected file name. On the
system that does not work, the window pops up with the
URL for the script that generates the file instead of
the file name. When the "OK" button is clicked, an
error dialog pops up with the message "Internet
Explorer cannot download ... [snipped URL]. Internet
Explorer was not able to open this Internet site. The
requested site is either unavailable or cannot be
found. Please try again later."

Here are the header commands:

$file_type = "vnd.ms-excel";
$file_ending = "xls";
header ( "Content-Type: application/$file_type" );
header ( "Content-Disposition: attachment;
filename=product.".$file_ending );
header ( "Expires: 0" );
header ( "Connection: Keep-Alive" );

Thanks in advance for any helpful suggestions.

Andy Hauger

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php