OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 18 Dec 2006 15:47:55 -0000 Issue 4521

php-general-digest-helplists.php.net
Date: Mon Dec 18 2006 - 09:47:55 CST


php-general Digest 18 Dec 2006 15:47:55 -0000 Issue 4521

Topics (messages 245935 through 245960):

Re: problem with imagecreate on new webserver
        245935 by: Chris

Re: simplest way in php to get our content on another site / included javascript question
        245936 by: Casey Chu

Re: PDO statement/resultset
        245937 by: Chris

Re: Cookies & page refresh
        245938 by: Chris Shiflett

Re: php redirection..
        245939 by: Chris Shiflett
        245940 by: Chris Shiflett

Re: Clearing POST variable on page refresh
        245941 by: Jochem Maas
        245951 by: Brad Fuller
        245952 by: Jochem Maas
        245955 by: Robert Cummings

Re: Problems with Zip+IE6
        245942 by: Javier Ruiz

config error
        245943 by: Simon Forster
        245944 by: Jochem Maas
        245949 by: Simon Forster
        245950 by: Jochem Maas
        245954 by: Simon Forster
        245959 by: Jochem Maas

Re: $POST Q
        245945 by: Nisse Engström

Php Error Output Redirection
        245946 by: Sancar Saran
        245947 by: Saqib Ali
        245948 by: Jochem Maas

cannot quiet notice error
        245953 by: Gonzalo Gorosito
        245957 by: Youri LACAN-BARTLEY
        245958 by: Gonzalo Gorosito
        245960 by: Jochem Maas

Recomended host
        245956 by: R B

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

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

attached mail follows:


machakingdomsend.com wrote:
> i am moving my webserver from a windows box to a linux box with php ver
> 5.2.0 and noticed i am having a problem with a php file(code below). i
> thought it was a module i was missing but looking at the php config
> file all the same modules are loaded. allow_url_fopen is enabled. what
> would i be missing in the php install that would make this code not
> work correctly from one machine to the other.

You need to narrow the problem down a little bit..

Anything show up in the webserver error logs?

Turn up error reporting:

error_reporting(E_ALL);

and display errors:

ini_set('display_errors', true);

Place both of those at the start of the script and tell us what happens
then.

--
Postgresql & php tutorials
http://www.designmagick.com/

attached mail follows:


If this is about search engine optimization, I'd suggest using Javascript.

Something like :

<script type="text/javascript" language="JavaScript"
src="http://www.yoursite.com/include.php?article=1536f"></script><a
href="http://www.yoursite.com" id="yoursite">Provided by YourSite</a>

And inside the script, Ajax to fetch and display the content, and also add

if (var link = document.getElementById('yoursite') &&
link.href=='http://www.yoursite.com');
else window.location.replace("http://www.yoursite.com/youremovedthelinkyouwillpay.php");

On 12/17/06, jonathan <news_phparclocal.com> wrote:
> I'm working on a project where we'd want partner sites to get our
> content on the other web sites.
> A key priority is that they won't have much technical sophistication
> (probably no db experience or php experience).
> Also, these would be third party sites so there would also be an
> issue of requirements (differnet xsl processors,
> no allow_url_fopen, etc...)
>
> I tried looking at sites that get their content on other sites to see
> how they do it:
>
> the possible solutions seem to be:
> 1. rss / xml - this is "well known" but would have a pretty high
> technical hurdles on the other sites. We could create
> every walk through and code sample but I still think it would be too
> involved. Only way out is either a xsl transformation (not
> going to happen), custom parsing library in php (maybe) or writing to
> db with associated libraries (too complex)
> 2. serialized php with custom library - this seems more feasible than
> #1 in terms of requirements
> 3. php proxy and ajax call / json - i think this would be too complex
> and would require too much manipulation of apache to handle
> subdomains, etc.....
> 4. included javascript - kinda how digg handles syndication (see
> http://www.digg.com/add-digg for example).
> This would seem to be the lowest barrier to entry. The main concern
> is preventing unauthorized bots from crawling. It would seem
> our only option would be using the referer property but this could be
> forged relatively easily.
> 5. SOAP - no way
> 6. REST - if meant to just mean xml, i see this as an extension of #1.
>
> any thoughts or opinions would be appreciated.
>
> -jt
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


David Duong wrote:
> Hi everyone,
>
> Let me know if there is a better place to post this.
>
> I am playing with the idea of creating a true (KISS) abstraction layer
> that makes full use of PHP5's OOP support. So logically it would make
> sense to make use PDO wherever possible, however, one of PDO's design
> decisions was to make a prepared statement object also a result set
> (another question: ... why?) a script can not make use of the a
> statement more than once without completely fetching all the data it
> needs from the first query, before executing the next.
>
> A likely scenario is that the prepared statement is executed and then
> before the script is done with processing the result, the same statement
> (with different binds) will need to be executed again, also using the
> result set from that statement.
>
> Does PDO provide a method to deal with this problem? From what I
> understand the only solution would be to prepare a new statement for
> each query, even for queries with the same structure which defeats the
> purpose of a prepared statement(?) Is there a solution that is a bit
> better?

I don't think anyone understands exactly what you're trying to achieve.

Can you prepare 1 statement then use 2 different sets or parameters to
call it?

Of course - but as you have noticed, the 1st result set has to be used
before you can use the 2nd.

Why do you want to be able to do it another way? Are you trying to run
queries in parallel (forking, whatever)? Are you trying to do things in
a loop? Explain what you're trying to do and you might get a better
response.

--
Postgresql & php tutorials
http://www.designmagick.com/

attached mail follows:


Richard Lynch wrote:
> A cookie is sent BACK to the server after the server sends
> it to the browser. Period.
>
> It's kind of like when you go to a movie, and you buy your
> ticket from one person, and then you hand it to another,
> and they hand it back, and then you have to be prepared to
> show it to prove you aren't sitting through a second movie.
>
> Walking back out front to the ticket sales window, you don't
> show them your ticket again...
>
> Maybe that's not such a good analogy...

You could "fix" it by explaining that no one should check to see whether
you have a ticket before you've had a chance to buy one. The timing just
doesn't make sense.

Developers sometimes make the mistake of checking $_COOKIE (a convenient
representation of the Cookie header from the previous request) before a
Set-Cookie header has been sent to the browser. The browser can't return
something it has never received.

Chris

--
Chris Shiflett
http://shiflett.org/

attached mail follows:


Tim wrote:
> Considering bruce wants to be able to display the data and then
> change location after a given time, and as stut said you can't
> do this with a header() as it redirects before output

Sure you can. Just use a Refresh header instead of Location.

Chris

--
Chris Shiflett
http://shiflett.org/

attached mail follows:


Richard Lynch wrote:
> The "old school" HTTP-EQUIV of a refresh with a time and URL
> would probably be suitable for this.
>
> YMMV
>
> And it's still not PHP. :-)

It is if you use header(). :-)

Chris

--
Chris Shiflett
http://shiflett.org/

attached mail follows:


Beauford wrote:
> Hi,
>
> I have a page with a form on it which posts to itself. The problem is when
> someone refreshes the page it enters the data into the DB again. How do I
> clear these variables so that doesn't happen. I tried the unset function,
> but no luck. I really don't want to use sessions or cookies as this is just
> a simple little page, but still, it has to work right.

sessions are no big deal - search the list archive for stuff like 'form token'
until you find one of the many explainations of how to tackle this issue using
a 'one time' token concept (find the posts by Richard Lynch - they are the most
complete/abundant/explicit AFAICR) - the solution does use sessions, but like I
said thats not a big deal at all. :-)

>
> Thanks
>

attached mail follows:


> -----Original Message-----
> From: Jochem Maas [mailto:jochemiamjochem.com]
> Sent: Monday, December 18, 2006 3:39 AM
> To: Beauford
> Cc: PHP
> Subject: Re: [PHP] Clearing POST variable on page refresh
>
> Beauford wrote:
> > Hi,
> >
> > I have a page with a form on it which posts to itself. The problem is
> when
> > someone refreshes the page it enters the data into the DB again. How do
> I
> > clear these variables so that doesn't happen. I tried the unset
> function,
> > but no luck. I really don't want to use sessions or cookies as this is
> just
> > a simple little page, but still, it has to work right.
>
> sessions are no big deal - search the list archive for stuff like 'form
> token'
> until you find one of the many explainations of how to tackle this issue
> using
> a 'one time' token concept (find the posts by Richard Lynch - they are the
> most
> complete/abundant/explicit AFAICR) - the solution does use sessions, but
> like I
> said thats not a big deal at all. :-)
>
> >
> > Thanks
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

My way of getting around this has been to put the data manipulation into a
"process" page, which redirects back to the content page when its finished
processing. That way, when the user hits refresh it doesn't ask to resubmit
the data. It just refreshes the display.

attached mail follows:


Brad Fuller wrote:
>> -----Original Message-----
>> From: Jochem Maas [mailto:jochemiamjochem.com]
>> Sent: Monday, December 18, 2006 3:39 AM
>> To: Beauford
>> Cc: PHP
>> Subject: Re: [PHP] Clearing POST variable on page refresh
>>
>> Beauford wrote:
>>> Hi,
>>>
>>> I have a page with a form on it which posts to itself. The problem is
>> when
>>> someone refreshes the page it enters the data into the DB again. How do
>> I
>>> clear these variables so that doesn't happen. I tried the unset
>> function,
>>> but no luck. I really don't want to use sessions or cookies as this is
>> just
>>> a simple little page, but still, it has to work right.
>> sessions are no big deal - search the list archive for stuff like 'form
>> token'
>> until you find one of the many explainations of how to tackle this issue
>> using
>> a 'one time' token concept (find the posts by Richard Lynch - they are the
>> most
>> complete/abundant/explicit AFAICR) - the solution does use sessions, but
>> like I
>> said thats not a big deal at all. :-)
>>
>>> Thanks
>>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> My way of getting around this has been to put the data manipulation into a
> "process" page, which redirects back to the content page when its finished
> processing. That way, when the user hits refresh it doesn't ask to resubmit
> the data. It just refreshes the display.

I can still hit the back button twice though can't I, and that would trigger another POST.

>

attached mail follows:


On Mon, 2006-12-18 at 09:34 -0500, Brad Fuller wrote:
> > -----Original Message-----
> > From: Jochem Maas [mailto:jochemiamjochem.com]
> > Sent: Monday, December 18, 2006 3:39 AM
> > To: Beauford
> > Cc: PHP
> > Subject: Re: [PHP] Clearing POST vari
>
> My way of getting around this has been to put the data manipulation into a
> "process" page, which redirects back to the content page when its finished
> processing. That way, when the user hits refresh it doesn't ask to resubmit
> the data. It just refreshes the display.

I've never seen a good implementation of that style. If there's an error
in the form submission then such implementations usually have a generic
error message saying, please go back, or they then need to stuff th
eentire post contents into a session var or favourite deity forbid, into
the URL. It's almost certainly always better to submit to the same page
and move along when the processing is done.

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

attached mail follows:


Apologies... forgot to CC to the list...

---------- Forwarded message ----------
From: Javier Ruiz <jruizmailgmail.com>
Date: Dec 18, 2006 11:25 AM
Subject: Re: [PHP] Problems with Zip+IE6
To: ceol-i-e.com

Hi,

Nah, the only thing I'm trying to do is to serve a regular zip file to the
user of the app I'm coding, I could just put the file in an accesible
folderand provide the link to the user (when I say accesible I mean inside
the docroot of apache), but I really want the files (those zip files) to be
available to the user ONLY if he's logged in and in a session with some
background stuff...

I did this a houndred times.... and really never realized about this problem
with IE, I'm a linux user (Gentoo :-D ) since years ago and always used
mozilla and/or firefox, but the users of the application I'm making now use
IE, so they reported the problem thinking that it is related to our code.

Ah! And it really doesn't matter what software you have to work with zip
files, the problem is "before that software": The concrete problem I found
is that when you click on a zip file link in IE, it asks you to choose: open
it or save it, the only difference between both operations is that if you
say "save it" it will download the zip file to a temp folder and then move
it to the directory you specify; if you say open, it SHOULD download it to
the temp folder and then "call" the application you have for zip files
(winzip, winrar, whatever....) with the location of the file in the temp
folder. I think all the browsers works more or less the same way. The
problem with IE is that saying "open" it just doesn't download the file, but
opens anyway the zip application with the temp file location, so the
application (and not IE) complains that the requested location is not
existing, in my case, WinRar...

Indeed it matters the content-type to use with files in webpages! and as I
mentioned before, I like your article because it's just pointing it, but I'm
just trying to find out if anybody, doing any trick (dirty trick even) got
the "temporally download" problem solved anyhow, and I'm trying whatever to
get it.

But unfortunatelly as much as I'm searching, I'm more realizing that this is
an unsolvable bug in IE and I'll have to ask my client to "please, you will
have to always download the zip files before opening them, or change your
habits and use another browser". It's a recognised IE bug, it's not a PHP's
mistake, not a coding mistake (by me I mean) but sincerelly, and I'll say it
like it is... it's a pain in the ass!

I appreciate Richard for your efforts, thanks a lot.
Regards,

Javi Ruiz.

On 12/16/06, Richard Lynch < ceol-i-e.com> wrote:
>
> On Tue, December 12, 2006 4:34 am, Javier Ruiz wrote:
> > damn! that's a pretty good article, thanks a lot.
> >
> > unfortunatelly, it's not mentioning about zip files concretely, I
> > didn't
> > find a solution for my problem with them.
> > I tried playing a bit with the Content-type, but it seems that
> > Internet
> > Explorer doesn't really care about "Content-type"... it uses the
> > extention
> > of the file to determine the type (microsoft's way...) so it doesn't
> > matter
> > if I use "application/octet-stream" or even
> > "application/force-download" or
> > "application/makethisdownload-or-ikillyou" :-D as long as I name the
> > file "
> > whatever.zip", IE6 shows the "open with" dialog and if I use "open"
> > with an
> > application, it fails :(
>
> It does matter on real browsers...
>
> Use the correct content type for a download: application/octet-stream
>
> > thanks again Richard for the answer and for the article :)
> >
> > anybody with a miracle for the ZIP+IE problem??
>
> You're going to HAVE to open the Zip file with some kind of unzip
> application such as WinZip, pkunzip, or, possibly, that goofball
> Windows unzip thingie that lets you pretend zip archives are
> directories, even though they aren't, but only up to a certain point,
> as you can't do some things with files in the zip archive that you can
> do with normal files, so it's just a very confusing Human Interface...
> Sort of like Windows in a microcosm.
>
> If you were hoping that somehow IE would magically unzip the item, and
> then let you open the contents within the zip file with a chosen
> application... Even MS Windows isn't THAT stupid. Yet.
>
> What if there are 2 things in the zip archive?
>
> For that matter, if there aren't 2 things, why is it even zipped?
>
> >> > 1 - To change the mimetype (when writting http headers) from
> >> > "application/zip" that I used before to
> >> "application/x-zip-compressed"
> >> > 2 - To not use MOD_DEFLATE in apache2 (I was not using it
> >> > really...)
>
> I now am beginning to wonder if you are trying to send your HTML as
> gzip'ed data for the browser to surf to your site, to save on
> bandwidth... If so, none of the above has any bearing on this at
> all...
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some starving artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
>
>

attached mail follows:


Hi

I'm trying to get PHP to build and keep on getting an error:

configure: error: mysql configure failed. Please check config.log for
more information.

FWIW, I'm trying to install on Mac OS Server 10.3.9 with the
following options:

./configure --prefix=/usr/local/php5 --with-apxs --with-config-file-
scan-dir=/sw --with-iconv --with-zlib=/usr --with-zlib-dir=/usr --
with-gd --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-
wddx --enable-soap --enable-sqlite-utf8 --enable-ftp --enable-sockets
--enable-dbx --enable-dbase --enable-mbstring --enable-memory-limit --
enable-calendar --enable-bcmath --with-bz2=/usr --with-mysql=shared,/
sw --with-mysqli=shared,/sw --with-pdo-mysql=shared,/sw --with-libxml-
dir=shared,/sw --with-xsl=shared,/sw --with-pdflib=shared,/sw --with-
jpeg-dir=/sw --with-png-dir=/sw --enable-gd-native-ttf --with-
json=shared --enable-memcache

I've installed various libraries (using fink, as you can see) but I'm
using the packaged version of MySQL available from mysql.com. The
tail end of the error log is included below the sig.

I've been mucking with this, on and off, for a couple of days now and
have pretty much exhausted efforts to install a pre-compiled version
of PHP (preferred route as I'm lazy). Also, I've tweaked the config
options which, at times, has added a new missing dependency but I
always come back to this MySQL issue.

If anyone's got any ideas, please let me know as I'm starting to run
out of things to try.

Many thanks

Simon Forster
_______________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
_______________________________________________________

int main() {
mysql_close()
; return 0; }
configure:58254: checking for mysql_error in -lmysqlclient
configure:58273: gcc -o conftest -I/usr/include -g -O2 -no-cpp-
precomp -L/usr/lib/mysql -L/usr/lib/mysql -liconv -L/usr/lib -L/sw/
lib -L/sw/lib -L/usr/local/lib -L/usr/local/lib conftest.c -
lmysqlclient -liconv -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -
liconv -lm -lxml2 -lz -liconv -lm 1>&5
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 53 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (54) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 55 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (56) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 57 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (58) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 59 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (60) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 61 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (62) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 63 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (64) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 65 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (66) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 67 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (68) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 69 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (70) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 71 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (72) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 73 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (74) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 75 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (76) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 77 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (78) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 79 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (80) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 81 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (82) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 83 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (84) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 85 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (86) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 87 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (88) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 89 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (90) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 91 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (92) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 93 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (94) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 95 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (96) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 97 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (98) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 99 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (100) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 101 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (102) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 103 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (104) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 105 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (106) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 107 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (108) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 338 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (339) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 340 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (341) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 342 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (343) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 344 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (345) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 346 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (347) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 348 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (349) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 350 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (351) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 352 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (353) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 354 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (355) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 754 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (755) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 756 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (757) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 758 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (759) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 760 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (761) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 762 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (763) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 764 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (765) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 766 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (767) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 768 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (769) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 770 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (771) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 772 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (773) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 774 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (775) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 776 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (777) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 778 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (779) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 780 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (781) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 782 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (783) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 784 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (785) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 786 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (787) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 788 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (789) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 790 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (791) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 792 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (793) in section (__TEXT,__text)
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
relocation entry 794 in section (__TEXT,__text) invalid
ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
PPC_RELOC_PAIR entry (795) in section (__TEXT,__text)
configure: failed program was:
#line 58262 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply. */
char mysql_error();

int main() {
mysql_error()
; return 0; }

attached mail follows:


Simon Forster wrote:
> Hi
>
> I'm trying to get PHP to build and keep on getting an error:
>
> configure: error: mysql configure failed. Please check config.log for
> more information.
>
> FWIW, I'm trying to install on Mac OS Server 10.3.9 with the following
> options:
>
> ./configure --prefix=/usr/local/php5 --with-apxs
> --with-config-file-scan-dir=/sw --with-iconv --with-zlib=/usr
> --with-zlib-dir=/usr --with-gd --with-iconv-dir=/usr --with-snmp=/usr
> --enable-exif --enable-wddx --enable-soap --enable-sqlite-utf8
> --enable-ftp --enable-sockets --enable-dbx --enable-dbase
> --enable-mbstring --enable-memory-limit --enable-calendar
> --enable-bcmath --with-bz2=/usr --with-mysql=shared,/sw
> --with-mysqli=shared,/sw --with-pdo-mysql=shared,/sw

do you need mysql and mysqli? have you tried the configure line wirth the following?:

--with-mysql --with-mysqli

what version of mysql do you have intalled? mysqli may not compile because
your mysql server is too old.

> --with-libxml-dir=shared,/sw --with-xsl=shared,/sw
> --with-pdflib=shared,/sw --with-jpeg-dir=/sw --with-png-dir=/sw
> --enable-gd-native-ttf --with-json=shared --enable-memcache

try compiling wqith only the mysql configure options to see what happens?

>
> I've installed various libraries (using fink, as you can see) but I'm
> using the packaged version of MySQL available from mysql.com. The tail
> end of the error log is included below the sig.
>
> I've been mucking with this, on and off, for a couple of days now and
> have pretty much exhausted efforts to install a pre-compiled version of
> PHP (preferred route as I'm lazy). Also, I've tweaked the config options
> which, at times, has added a new missing dependency but I always come
> back to this MySQL issue.
>
> If anyone's got any ideas, please let me know as I'm starting to run out
> of things to try.
>
> Many thanks
>
> Simon Forster
> _______________________________________________________
> LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
> Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
> _______________________________________________________
>
>
>
> int main() {
> mysql_close()
> ; return 0; }
> configure:58254: checking for mysql_error in -lmysqlclient
> configure:58273: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp
> -L/usr/lib/mysql -L/usr/lib/mysql -liconv -L/usr/lib -L/sw/lib
> -L/sw/lib -L/usr/local/lib -L/usr/local/lib conftest.c -lmysqlclient
> -liconv -lpng -lz -ljpeg -lbz2 -lz -lm -lxml2 -lz -liconv -lm -lxml2
> -lz -liconv -lm 1>&5
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 53 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (54) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 55 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (56) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 57 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (58) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 59 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (60) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 61 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (62) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 63 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (64) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 65 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (66) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 67 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (68) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 69 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (70) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 71 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (72) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 73 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (74) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 75 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (76) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 77 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (78) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 79 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (80) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 81 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (82) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 83 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (84) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 85 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (86) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 87 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (88) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 89 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (90) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 91 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (92) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 93 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (94) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 95 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (96) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 97 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (98) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 99 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (100) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 101 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (102) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 103 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (104) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 105 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (106) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 107 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (108) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 338 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (339) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 340 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (341) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 342 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (343) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 344 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (345) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 346 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (347) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 348 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (349) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 350 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (351) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 352 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (353) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 354 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (355) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 754 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (755) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 756 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (757) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 758 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (759) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 760 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (761) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 762 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (763) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 764 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (765) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 766 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (767) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 768 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (769) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 770 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (771) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 772 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (773) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 774 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (775) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 776 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (777) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 778 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (779) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 780 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (781) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 782 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (783) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 784 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (785) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 786 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (787) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 788 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (789) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 790 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (791) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 792 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (793) in section (__TEXT,__text)
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) r_type field of
> relocation entry 794 in section (__TEXT,__text) invalid
> ld: /usr/lib/mysql/libmysqlclient.a(libmysql.o) stray relocation
> PPC_RELOC_PAIR entry (795) in section (__TEXT,__text)
> configure: failed program was:
> #line 58262 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error. */
> /* We use char because int might match the return type of a gcc2
> builtin and then its argument prototype would still apply. */
> char mysql_error();
>
> int main() {
> mysql_error()
> ; return 0; }
>
> --PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

attached mail follows:


On 18 Dec 2006, at 11:05, Jochem Maas wrote:

> do you need mysql and mysqli? have you tried the configure line
> wirth the following?:
>
> --with-mysql --with-mysqli
>
> what version of mysql do you have intalled? mysqli may not compile
> because
> your mysql server is too old.

Thanks for the suggestions. Stripped back the configure options, made
a couple of other tweaks and got it to compile. Then it failed on make.

<sigh />

Happily, someone pointed me to <http://www.mamp.info/en/index.php>.
As this is meant to be a simple installer package, I hope this'll
work. Downloading as I type.

All the best

Simon

attached mail follows:


Simon Forster wrote:
>
> On 18 Dec 2006, at 11:05, Jochem Maas wrote:
>
>> do you need mysql and mysqli? have you tried the configure line wirth
>> the following?:
>>
>> --with-mysql --with-mysqli
>>
>> what version of mysql do you have intalled? mysqli may not compile
>> because
>> your mysql server is too old.
>
> Thanks for the suggestions. Stripped back the configure options, made a
> couple of other tweaks and got it to compile.

you mean you got it to configure, right?

> Then it failed on make.

what was the error?

>
> <sigh />
>
> Happily, someone pointed me to <http://www.mamp.info/en/index.php>. As
> this is meant to be a simple installer package, I hope this'll work.
> Downloading as I type.
>
> All the best
>
> Simon

attached mail follows:


On 18 Dec 2006, at 14:00, Jochem Maas wrote:

>> Thanks for the suggestions. Stripped back the configure options,
>> made a
>> couple of other tweaks and got it to compile.
>
> you mean you got it to configure, right?

Oops. Sloppy. You're right of course. Got it to configure.

>> Then it failed on make.
>
> what was the error?

Whole host of 'em. Hold on, I'll clean and run again to see what pops
up...

See below sig. Seems to be referencing a lot of XML stuff but I'm not
trying to include any XML / XSL bits:

ATB

Simon Forster
_______________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
_______________________________________________________

./configure --prefix=/usr/local/php5 --with-apxs --with-config-file-
scan-dir=/sw --with-iconv --with-zlib=/usr --with-zlib-dir=/usr --
with-gd --with-iconv-dir=/usr --enable-exif --enable-sqlite-utf8 --
enable-ftp --enable-sockets --enable-mbstring --enable-memory-limit --
enable-calendar --enable-bcmath --with-bz2=/usr --with-mysql=/usr/
local/mysql --with-pdflib=shared,/sw --with-jpeg-dir=/sw --with-png-
dir=/sw --enable-gd-native-ttf --enable-memcache

make
/bin/sh /Users/steve/Desktop/php-5.2.0/libtool --silent --preserve-
dup-deps --mode=compile gcc -Iext/libxml/ -I/Users/steve/Desktop/
php-5.2.0/ext/libxml/ -DPHP_ATOM_INC -I/Users/steve/Desktop/php-5.2.0/
include -I/Users/steve/Desktop/php-5.2.0/main -I/Users/steve/Desktop/
php-5.2.0 -I/usr/include/libxml2 -I/Users/steve/Desktop/php-5.2.0/ext/
date/lib -I/sw/include -I/usr/local/include -I/Users/steve/Desktop/
php-5.2.0/ext/mbstring/oniguruma -I/Users/steve/Desktop/php-5.2.0/ext/
mbstring/libmbfl -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/
libmbfl/mbfl -I/usr/local/mysql/include -I/Users/steve/Desktop/
php-5.2.0/TSRM -I/Users/steve/Desktop/php-5.2.0/Zend -no-cpp-
precomp -I/usr/include -g -O2 -c /Users/steve/Desktop/php-5.2.0/ext/
libxml/libxml.c -o ext/libxml/libxml.lo
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:43:28: libxml/
xmlsave.h: No such file or directory
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:428: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`_php_libxml_free_error':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: (Each
undeclared identifier is reported only once
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: for
each function it appears in.)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:434: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`_php_list_set_error_structure':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error:
`xmlError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error: parse
error before "error_copy"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:441: error:
`error_copy' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:443: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:448: error:
`XML_ERR_ERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:454: error: `msg'
undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:546: error: parse
error before "xmlErrorPtr"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`php_libxml_structured_error_handler':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:548: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zm_startup_libxml':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:603: error:
`XML_PARSE_NOENT' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:604: error:
`XML_PARSE_DTDLOAD' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:605: error:
`XML_PARSE_DTDATTR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:606: error:
`XML_PARSE_DTDVALID' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:607: error:
`XML_PARSE_NOERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:608: error:
`XML_PARSE_NOWARNING' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:609: error:
`XML_PARSE_NOBLANKS' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:610: error:
`XML_PARSE_XINCLUDE' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:611: error:
`XML_PARSE_NSCLEAN' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:612: error:
`XML_PARSE_NOCDATA' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:613: error:
`XML_PARSE_NONET' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:621: error:
`XML_ERR_NONE' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:622: error:
`XML_ERR_WARNING' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:623: error:
`XML_ERR_ERROR' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:624: error:
`XML_ERR_FATAL' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_use_internal_errors':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error:
`xmlStructuredErrorFunc' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error: parse
error before "current_handler"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
`current_handler' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
`xmlStructuredError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:736: error:
`xmlError' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_get_last_error':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error:
`xmlErrorPtr' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:749: error:
`error' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
`zif_libxml_get_errors':
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error:
`xmlErrorPtr' undeclared (first use in this function)
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error: parse
error before "error"
/Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:786: error:
`error' undeclared (first use in this function)
make: *** [ext/libxml/libxml.lo] Error 1

attached mail follows:


Simon Forster wrote:
>
> On 18 Dec 2006, at 14:00, Jochem Maas wrote:
>
>>> Thanks for the suggestions. Stripped back the configure options, made a
>>> couple of other tweaks and got it to compile.
>>
>> you mean you got it to configure, right?
>
> Oops. Sloppy. You're right of course. Got it to configure.
>
>>> Then it failed on make.
>>
>> what was the error?
>
> Whole host of 'em. Hold on, I'll clean and run again to see what pops up...
>
> See below sig. Seems to be referencing a lot of XML stuff but I'm not
> trying to include any XML / XSL bits:

that there by default, check these 2 configure options to see if that gets you past
this hurdle:

  --disable-libxml Disable new LIBXML support
  --with-libxml-dir[=DIR] libxml2 install prefix

>
> ATB
>
> Simon Forster
> _______________________________________________________
> LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
> Tel: +44 (0)20 8133 0528 Fax: +44 (0)70 9230 5247
> _______________________________________________________
>
> ./configure --prefix=/usr/local/php5 --with-apxs
> --with-config-file-scan-dir=/sw --with-iconv --with-zlib=/usr
> --with-zlib-dir=/usr --with-gd --with-iconv-dir=/usr --enable-exif
> --enable-sqlite-utf8 --enable-ftp --enable-sockets --enable-mbstring
> --enable-memory-limit --enable-calendar --enable-bcmath --with-bz2=/usr
> --with-mysql=/usr/local/mysql --with-pdflib=shared,/sw
> --with-jpeg-dir=/sw --with-png-dir=/sw --enable-gd-native-ttf
> --enable-memcache
>
>
> make
> /bin/sh /Users/steve/Desktop/php-5.2.0/libtool --silent
> --preserve-dup-deps --mode=compile gcc -Iext/libxml/
> -I/Users/steve/Desktop/php-5.2.0/ext/libxml/ -DPHP_ATOM_INC
> -I/Users/steve/Desktop/php-5.2.0/include
> -I/Users/steve/Desktop/php-5.2.0/main -I/Users/steve/Desktop/php-5.2.0
> -I/usr/include/libxml2 -I/Users/steve/Desktop/php-5.2.0/ext/date/lib
> -I/sw/include -I/usr/local/include
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/oniguruma
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/libmbfl
> -I/Users/steve/Desktop/php-5.2.0/ext/mbstring/libmbfl/mbfl
> -I/usr/local/mysql/include -I/Users/steve/Desktop/php-5.2.0/TSRM
> -I/Users/steve/Desktop/php-5.2.0/Zend -no-cpp-precomp -I/usr/include
> -g -O2 -c /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c -o
> ext/libxml/libxml.lo
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:43:28:
> libxml/xmlsave.h: No such file or directory
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:428: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `_php_libxml_free_error':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: (Each
> undeclared identifier is reported only once
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:430: error: for each
> function it appears in.)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:434: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `_php_list_set_error_structure':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error:
> `xmlError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:436: error: parse
> error before "error_copy"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:441: error:
> `error_copy' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:443: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:448: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:454: error: `msg'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: At top level:
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:546: error: parse
> error before "xmlErrorPtr"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `php_libxml_structured_error_handler':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:548: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zm_startup_libxml':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:603: error:
> `XML_PARSE_NOENT' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:604: error:
> `XML_PARSE_DTDLOAD' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:605: error:
> `XML_PARSE_DTDATTR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:606: error:
> `XML_PARSE_DTDVALID' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:607: error:
> `XML_PARSE_NOERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:608: error:
> `XML_PARSE_NOWARNING' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:609: error:
> `XML_PARSE_NOBLANKS' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:610: error:
> `XML_PARSE_XINCLUDE' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:611: error:
> `XML_PARSE_NSCLEAN' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:612: error:
> `XML_PARSE_NOCDATA' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:613: error:
> `XML_PARSE_NONET' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:621: error:
> `XML_ERR_NONE' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:622: error:
> `XML_ERR_WARNING' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:623: error:
> `XML_ERR_ERROR' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:624: error:
> `XML_ERR_FATAL' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_use_internal_errors':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error:
> `xmlStructuredErrorFunc' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:707: error: parse
> error before "current_handler"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
> `current_handler' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:714: error:
> `xmlStructuredError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:736: error:
> `xmlError' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_get_last_error':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:747: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:749: error: `error'
> undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c: In function
> `zif_libxml_get_errors':
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error:
> `xmlErrorPtr' undeclared (first use in this function)
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:778: error: parse
> error before "error"
> /Users/steve/Desktop/php-5.2.0/ext/libxml/libxml.c:786: error: `error'
> undeclared (first use in this function)
> make: *** [ext/libxml/libxml.lo] Error 1
>
>

attached mail follows:


On Fri, 15 Dec 2006 23:22:13 -0600 (CST), "Richard Lynch" wrote:

> $selected = $l == $limit ? 'selected="selected"' : '';
> echo "<option value=\"$l\" $selected>$l</option>\n";

[snip]

> The value="x" *is* optional, but you'll never convince the people who
> tell you it isn't, unless you force them to read the RFCs and W3C
> recommendations [*], so it's easier to include it than to argue with
> them. :-)

   It is indeed optional, and the HTML spec.[1] even says
that if the attribute is not set, the initial value is
set to the contents of the element. That's all good and
well.

   What's not all good and well are browser implementations.
If you try to retrieve the value from JavaScript (by way
of option.value or select.value) in IE 5.5 [2] and several
versions of Opera [3], you may find the value is simply
not there *unless* you spell it out in HTML.

   Of course, it could be argued that there is a conceptual
difference between the value attribute (as written in HTML
and seen through the JS DOM) and the element value (rendered
by the user agent and passed as part of a form submission).
But that is a different story for a different group (or list).
I fear that I have now strayed so far off topic that I should
volunteer myself for killfile membership. :-)

--nfe

[1]: I'm not going to bother checking the XHTML spec.
[2]: I don't know about other versions.
[3]: The bug dates back to at least Opera 7.23. I reported
     it in july 2004 against 7.52, as did others before me.
     It was finally fixed in 9.00 preview 1, some two years
     after I reported it.

attached mail follows:


Hi,

Is anyone know that errors generated by php (like Notice: Uninitialized string
offset: 0 in ...) may stored in a php variable and print out later ?

I want to put them some other location and show them in a debug window. I do
this for my error reporting and I could not manage how to do with php
messages.

Regards

Sancar

attached mail follows:


Use the set_error_handle function:
http://us2.php.net/manual/en/function.set-error-handler.php

saqib
http://www.full-disk-encryption.net

On 12/18/06, Sancar Saran <sancar.saranevodot.com> wrote:
> Hi,
>
> Is anyone know that errors generated by php (like Notice: Uninitialized string
> offset: 0 in ...) may stored in a php variable and print out later ?
>
> I want to put them some other location and show them in a debug window. I do
> this for my error reporting and I could not manage how to do with php
> messages.
>
> Regards
>
> Sancar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
Saqib Ali, CISSP, ISSAP
http://www.full-disk-encryption.net

attached mail follows:


Sancar Saran wrote:
> Hi,
>
> Is anyone know that errors generated by php (like Notice: Uninitialized string
> offset: 0 in ...) may stored in a php variable and print out later ?
>
> I want to put them some other location and show them in a debug window. I do
> this for my error reporting and I could not manage how to do with php
> messages.

congratulations, you are the 1,000,000th php user not to bother
so much as think of looking in the manual:

http://php.net/manual/en/ref.errorfunc.php
http://php.net/manual/en/language.operators.errorcontrol.php
http://php.net/manual/en/function.error-reporting.php
http://php.net/manual/en/function.set-error-handler.php
http://php.net/manual/en/function.error-get-last.php

>
> Regards
>
> Sancar
>

attached mail follows:


Hello friends,

 

I have a little problem with the error_reporting in my php.ini

 

Every time I get errors like this:

 

Notice: Undefined index: userData in
/var/www/devzone/megacam/inc/functions.php on line

 

And here is my php.ini:

 

error_reporting = E_ALL & ~E_NOTICE

 

display_errors = On

 

 

how can I do to shut up these fucking notices? :$

 

 

 

----------------------------------------------------------
Gonzalo Gorosito

 

Sistemas | By-Cycle
Humboldt 2495, Piso 10
C1425FUG - Bs.As. Argentina
Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
www.by-cycle.com <http://www.by-cycle.com/>
gonzalo.gorositoby-cycle.com

 

attached mail follows:


Gonzalo Gorosito wrote:
> Hello friends,
>
>
>
> I have a little problem with the error_reporting in my php.ini
>
>
>
> Every time I get errors like this:
>
>
>
> Notice: Undefined index: userData in
> /var/www/devzone/megacam/inc/functions.php on line
>
>
>
> And here is my php.ini:
>
>
>
> error_reporting = E_ALL & ~E_NOTICE
>
>
>
> display_errors = On
>
>
I guess http://fr.php.net/error-reporting should answer all that ...
Here's a clue though :

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = On

You might want to play around with E_STRICT if you're running PHP 5 though.

HTH

>
>
>
> how can I do to shut up these fucking notices? :$
>
>
>
>
>
>
>
> ----------------------------------------------------------
> Gonzalo Gorosito
>
>
>
> Sistemas | By-Cycle
> Humboldt 2495, Piso 10
> C1425FUG - Bs.As. Argentina
> Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
> www.by-cycle.com <http://www.by-cycle.com/>
> gonzalo.gorositoby-cycle.com
>
>
>
>

--
Cordialement,

Youri LACAN-BARTLEY

PCAM
Espace HERVANN
641 Chemin des terriers
06600 ANTIBES
Tel: 04.93.33.26.25
Fax: 04.93.33.73.45

attached mail follows:


I tried to do this:

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR

and this:

error_reporting = E_ERROR

and the php still display notices :(

-----Mensaje original-----
De: Youri LACAN-BARTLEY [mailto:ylacanteicam.com]
Enviado el: Lunes, 18 de Diciembre de 2006 12:06 p.m.
CC: php-generallists.php.net
Asunto: Re: [PHP] cannot quiet notice error

Gonzalo Gorosito wrote:
> Hello friends,
>
>
>
> I have a little problem with the error_reporting in my php.ini
>
>
>
> Every time I get errors like this:
>
>
>
> Notice: Undefined index: userData in
> /var/www/devzone/megacam/inc/functions.php on line
>
>
>
> And here is my php.ini:
>
>
>
> error_reporting = E_ALL & ~E_NOTICE
>
>
>
> display_errors = On
>
>
I guess http://fr.php.net/error-reporting should answer all that ...
Here's a clue though :

error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = On

You might want to play around with E_STRICT if you're running PHP 5 though.

HTH

>
>
>
> how can I do to shut up these fucking notices? :$
>
>
>
>
>
>
>
> ----------------------------------------------------------
> Gonzalo Gorosito
>
>
>
> Sistemas | By-Cycle
> Humboldt 2495, Piso 10
> C1425FUG - Bs.As. Argentina
> Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
> www.by-cycle.com <http://www.by-cycle.com/>
> gonzalo.gorositoby-cycle.com
>
>
>
>

--
Cordialement,

Youri LACAN-BARTLEY

PCAM
Espace HERVANN
641 Chemin des terriers
06600 ANTIBES
Tel: 04.93.33.26.25
Fax: 04.93.33.73.45

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

__________ Información de NOD32, revisión 1925 (20061218) __________

Este mensaje ha sido analizado con NOD32 antivirus system
http://www.nod32.com

attached mail follows:


Gonzalo Gorosito wrote:
> I tried to do this:
>
> error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
>
> and this:
>
> error_reporting = E_ERROR
>
> and the php still display notices :(

phpinfo() will probably show that either you
are editing the wrong php.ini, that you forgot to restart your webserver
or that the code is calling error_reporting() with values other than
what you want somewhere.

>
> -----Mensaje original-----
> De: Youri LACAN-BARTLEY [mailto:ylacanteicam.com]
> Enviado el: Lunes, 18 de Diciembre de 2006 12:06 p.m.
> CC: php-generallists.php.net
> Asunto: Re: [PHP] cannot quiet notice error
>
>
>
> Gonzalo Gorosito wrote:
>> Hello friends,
>>
>>
>>
>> I have a little problem with the error_reporting in my php.ini
>>
>>
>>
>> Every time I get errors like this:
>>
>>
>>
>> Notice: Undefined index: userData in
>> /var/www/devzone/megacam/inc/functions.php on line
>>
>>
>>
>> And here is my php.ini:
>>
>>
>>
>> error_reporting = E_ALL & ~E_NOTICE
>>
>>
>>
>> display_errors = On
>>
>>
> I guess http://fr.php.net/error-reporting should answer all that ...
> Here's a clue though :
>
> error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
> display_errors = On
>
> You might want to play around with E_STRICT if you're running PHP 5 though.
>
> HTH
>
>>
>>
>> how can I do to shut up these fucking notices? :$
>>
>>
>>
>>
>>
>>
>>
>> ----------------------------------------------------------
>> Gonzalo Gorosito
>>
>>
>>
>> Sistemas | By-Cycle
>> Humboldt 2495, Piso 10
>> C1425FUG - Bs.As. Argentina
>> Tel.: + 54 (11) 4774 6006 | Fax: + 54 (11) 4774 7117
>> www.by-cycle.com <http://www.by-cycle.com/>
>> gonzalo.gorositoby-cycle.com
>>
>>
>>
>>
>

attached mail follows:


Hello.
I'm looking for a host to put my website.
I was looking godaddy.com, but i read in phplist forum that godaddy have
limitations in the number of mail to send per day.

Someone can recomend me a good host provider, with good stability, good
support, good features, and no limitation in the use of a list of
members...?

Thanks