Install PHP Sphinx Extension sphinx-1.1.0/sphinx.c:105:2: Error:too few arguments error

Source: Internet
Author: User
Tags install php

Performance:

/home/sphinx-1.1.0/sphinx.c:in function ' Php_sphinx_client_read_property ':
/home/sphinx-1.1.0/sphinx.c:105:2: Error:too few arguments to function ' Std_hnd->read_property '
/home/sphinx-1.1.0/sphinx.c:in function ' zim_sphinxclient_updateattributes ':
/home/sphinx-1.1.0/sphinx.c:1040:6: warning:passing argument 2 of ' memset ' makes integer from pointer without a cast [ENA Bled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:77:1: note:expected ' int ' but argument is of type ' void * '
/home/sphinx-1.1.0/sphinx.c:in function ' Zm_startup_sphinx ':
/home/sphinx-1.1.0/sphinx.c:1888:43:warning:assignment from incompatible pointer type [enabled by default]

Sphinx-1.1.0/sphinx.c:105:2: Error:too Few arguments

Solve

The previous installation of Pecl extended sphinx-1.1.0 in PHP 5.2.16 and 5.3.17 environments was successful. But today in PHP 5.4.10 environment

An error was encountered while installing sphinx-1.1.0.

The error encountered in the PHP official web site as a bug is reflected by other users, see

https://bugs.php.net/bug.php?id=61241

How to resolve:

1. The reply from PHP developer [email protected] was fixed in the PHP update source code released by SVN.

Reply Time is: 2012-06-12 19:17 UTC

Because the PHP used is installed on a server system, this method is not appropriate.

2. Refer to the reply of Andrew at cbtech Dot co dot uk , to sphinx-1.1.0 the source code modification, and then compile and install.

Here's what they reply to:

If you are sphinx.c from:
retval = Std_hnd->read_property (object, member, type TSRMLS_CC);
To
retval = Std_hnd->read_property (object, member, type TSRMLS_CC, NULL);
It compiles and seems to work.

Simple description of the edit installation method:

      1. # TAR-XZF sphinx-1.1. 0.tgz
      2. # CD sphinx-1.1. 0
      3. # VI SPHINX.C
      4. #./configure
      5. # Make && make install
Good text to the top concern me to collect the article

Install PHP Sphinx extension sphinx-1.1.0/sphinx.c:105:2: Error:too few arguments error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.