free open-source SQL full-text search engine

Need a hand?
+1-888-333-1345


Sphinx

Community

Services

Misc

 Subscribe in a reader

Tracked by ClickAider

Forums :: Register :: Login :: Forgot your password? :: Search

anonymous user


Bug in sphinxclient.c?

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread

Bromso

Name: Olle Bröms
Posts: 3

2009-12-04 16:20:03 | reply!


Hi!

I tried to install the newest stable 0.9.9 version but got some errors when I tried to
install the libsphinxclient.

Here are the commands I used to install libsphinxclient and before this I successful
installed sphinx:
cd /path/to/sphinx/src/api/libsphinxclient/
sudo sh /path/to/sphinx/src/api/libsphinxclient/.buildconf.sh
sudo ./configure
sudo make
sudo make install

But when I used "sudo make" I got this error:
sphinxclient.c:1216: error: static declaration of ‘sock_close’ follows non-static
declaration
sphinxclient.c:280: note: previous declaration of ‘sock_close’ was here

So I checked the file.

On line: 280
void sock_close ( int sock );

On line: 1216
static void sock_close ( int sock )
{
#if _WIN32
        closesocket ( sock );
#else
        close ( sock );
#endif
}

I changed the line 280 to:
static void sock_close ( int sock );

Then I could compile it without any errors.

Is this a bug?

maracuja

Name: David Hamilton
Posts: 1

to: Bromso, 2009-12-07 17:29:03 | reply!


this happened to me too and the fix worked. good skills.

Bromso

Name: Olle Bröms
Posts: 3

to: Bromso, 2009-12-11 16:00:41 | reply!


Bump

jani

Name: Jani Taskinen
Posts: 19

to: Bromso, 2009-12-15 12:32:56 | reply!


> Bump

http://www.sphinxsearch.com/bugs/view.php?id=453

MichaelB

Name: Michael Brenden
Posts: 8

to: Bromso, 2009-12-20 09:30:07 | reply!


same fix just worked for me

Common forum | 1 | 2 | 3 | 4 | 5 | ... | 263 | 264 | 265 | 266 | next »» | Create new thread


Copyright © Sphinx Technologies Inc, 2009