List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:July 8 1999 9:59pm
Subject:Re: Mysql 3.22.24/Slackware v4.0 Compile Error
View as plain text  
Bob Kruger wrote:
> I have a number of slackware 4.0 systems that all refuse to compile MySQL
> v3.22.24.  Error message follows:
> gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -O6
> -DDBUG_OFF -c  -fPIC -D
> PIC libmysql.c -o .libs/libmysql.lo
> libmysql.c: In function `mysql_real_connect':
> libmysql.c:1067: `SOCK_STREAM' undeclared (first use this function)
> libmysql.c:1067: (Each undeclared identifier is reported only once
> libmysql.c:1067: for each function it appears in.)
> make[2]: *** [libmysql.lo] Error 1
> make[2]: Leaving directory `/mysql-3.22.24/client'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mysql-3.22.24'
> make: *** [all-recursive-am] Error 2
> Threads are installed (if that means anything).
> I can find nothing about it in the MySQL reference manual.
> v3.22.24 compiles just fine with Redhat v6.0.
> Any hints or suggestions?
> Thanks for any assistance.
> Regards - Bob Kruger


go to the top of libmysql.c and add the following:

#define SOCK_STREAM 1

Real solution:

Somehow configure missed some aspect of your compiler configuration,
although I am not exactly sure what went wrong. Wait unlil Monty or
somebodyelse with enough knowledge replies.

Sasha Pachev (home) (work)
Mysql 3.22.24/Slackware v4.0 Compile ErrorBob Kruger9 Jul
  • Re: Mysql 3.22.24/Slackware v4.0 Compile ErrorSasha Pachev9 Jul
  • Re: Mysql 3.22.24/Slackware v4.0 Compile ErrorVan9 Jul