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: *** [libmysql.lo] Error 1
> make: Leaving directory `/mysql-3.22.24/client'
> make: *** [all-recursive] Error 1
> make: 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
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.