Re: [PHP-INSTALL] Error when compiling for Mac OS X 10.9

[email protected] (David Parker) Mon, 13 Oct 2014 11:59:48 -0400
Newsgroups php.install
Message-ID <CAHoJ95Xqn=LvXMrfZ=Pt=fYS52Y6-NaHE5S+=+DEL-yDa-wBxQ@mail.gmail.com>
Hello,

The solution in the other case was to use only "--with-mysql" or
"--with-mysqli" without specifying the path to an existing installation of
MySQL on the host.  When you don't specify the path to MySQL, PHP compiles
with it's native driver instead and generally this is sufficient.

That said, in this specific case I wonder if perhaps you are trying to
compile 64-bit PHP against 32-bit MySQL, or vice-versa.  When compiling PHP
with MySQL support, the architecture (32-bit vs. 64-bit) of PHP and MySQL
should match.

    - Dave

On Fri, Oct 10, 2014 at 5:34 PM, Richard <
[email protected]> wrote:

>
>
> ------------ Original Message ------------
> > Date: Friday, October 10, 2014 23:11:10 +0200
> > From: Nejc Vukovic <[email protected]>
> >
> > On 10 Oct 2014, at 22:59, Richard wrote:
> >
> >>
> >> ------------ Original Message ------------
> >>> Date: Friday, October 10, 2014 10:37:20 -0400
> >>> From: Jorge Hernandez <[email protected]>
> >>> To: [email protected]
> >>> Subject: [PHP-INSTALL] Error when compiling for Mac OS X 10.9
> >>>
> >>> Hey guys,
> >>>
> >>> What can cause this error:
> >>>
> >>> "_uncompress", referenced from:
> >>>
> >>>      _php_mysqlnd_net_decode_pub in mysqlnd_net.o
> >>>
> >>> ld: symbol(s) not found for architecture x86_64
> >>>
> >>> clang: error: linker command failed with exit code 1 (use -v to
> >>> see invocation)
> >>>
> >>> make: *** [libs/libphp5.bundle] Error 1
> >>>
> >>> And how can I fix it?
> >>
> >>
> >> I don't do things mac OS, but a [google] search for the:
> >>
> >>    ld: symbol(s) ...
> >>
> >> line from your error message (with and without adding reference to
> >> php) turns up a range of discussion references, some seemingly
> >> with solutions.
> >>
> >>
> >>    - Richard
> >>
>
> > Richard no offence but what kind of help is that?
> >
> > It's like you give a product away and when a user hits some
> > bumps you say go ask google?
> >
> > And trust me I had the almost the same problem 2 weeks ago and
> > none of those google discussions helped.
> >
> > The only one to give me advice and take his time was David Parker.
> >
> > Jorge try to ./configure your php with: "--with-mysql" omit any
> > other variants, because it only successfully compiles with the
> > native php driver.
> >
> > Regards,
> >
> > N.V.
>
>
> Sorry, but neither you nor Jorge gave any indication as to the level
> of debugging or searching you had done so at least making certain
> that you had done some basic research didn't seem unreasonable. Had
> you posted previously that you had followed the various google
> discussion threads to no effect, that would have been useful
> information for the (mac OS/php) community.
>
> Additionally, while David Parker may have helped you, none of that
> discussion (or even a final summary) made it to the list, from what
> I've seen, so it didn't add to the publicly available knowledge set.
> Had it, Jorge might not have had to ask his question.
>
> By the way, even though the list's headers set the Reply-to to the
> sender's address, please reply to the list address (unless you
> really want an off-list discussion).
>
>
>     - Richard
>
>
>
>


-- 
Dave Parker
Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177