From: "Michael A. Peters" <mpeters@omnilinux.com>
To: Edwin Tam <edwintam@ieee.org>, <linuxppc-dev@lists.linuxppc.org>
Cc: ProjectQ2@unitek.com
Subject: Re: php compilation fix
Date: Wed, 9 Aug 2000 10:38:42 -0700 [thread overview]
Message-ID: <00080910462800.26506@localhost.localdomain> (raw)
In-Reply-To: <B5B71115.316A%edwintam@ieee.org>
Thanks! That patch worked beautifully on PowerPC, and mod_php-gd builds and the
gd.so module loads.
What we decided to do (until an official patch comes from zend) is only apply
that patch when the src rpm builds for PowerPC, even though the patch may
benefit i386 as well.
But the nice thing is that I now have the RPM's, all of them including
mod_php-gd, working on both platforms. linux-Sparc64 is next (hopefully it will
at most just need the ppc patch, hopefully...)
Once again, Thanks!
On Tue, 08 Aug 2000, Edwin Tam wrote:
> Marco Pratesi (Bcc'ed) suggested a much neater fix than mine:
> > I have solved the problem simply by commenting out
> > the lines 370 and 435 and using orig_args
> > instead of args.
> > I have made this thing because orig_args is never
> > overwritten in the functions related to lines 370
> > and 435 and it is used only to copy it in args.
> > Do you think my correction can be dangerous ?
> > My diff:
> > 370,372c370,372
> > < args = orig_args;
> > < size = vsnprintf(buffer, sizeof(buffer) - 1, format,
> args);
> > < va_end(args);
> > ---
> >> // args = orig_args;
> >> size = vsnprintf(buffer, sizeof(buffer) - 1, format, orig_args);
> >> va_end(orig_args);
> > 435,437c435,437
> > < args = orig_args;
> > < size = vsnprintf(buffer, sizeof(buffer) - 1, format, args);
> > < va_end(args);
> > ---
> >> // args = orig_args;
> >> size = vsnprintf(buffer, sizeof(buffer) - 1, format, orig_args);
> >> va_end(orig_args);
*SNIP*
> > I created a patch that makes the changes suggest to php-4.0.1pl2/main/main.c
> >
> > replace
> > args = orig_args;
> > by:
> > memcpy(args, orig_args, sizeof(orig_args));
> >
> > in lines 370 & 435
> >
*snip*
--
Michael A. Peters
http://www.omnilinux.com/
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2000-08-09 17:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-09 0:29 php compilation fix Michael A. Peters
2000-08-09 1:48 ` Daniel Jacobowitz
2000-08-09 5:45 ` Edwin Tam
2000-08-09 15:16 ` David Edelsohn
2000-08-09 17:38 ` Michael A. Peters [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00080910462800.26506@localhost.localdomain \
--to=mpeters@omnilinux.com \
--cc=ProjectQ2@unitek.com \
--cc=edwintam@ieee.org \
--cc=linuxppc-dev@lists.linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).