Sasha Pachev wrote:
> 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
I just did this Sunday with a brand-spanking new Slackware 4.0
downloaded from metalab and burnt to CD. My 1st task was dnloading and
installing MySQL 3.22.24. I install the full-meal deal, so, perhaps you
were more selective and the installpkg'es or selective set up missed
something. Let me know if you varied from the default install (full).
> 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
> http://www.sashanet.com/ (home)
> http://www.direct1.com/ (work)
Linux rocks!!! http://www.dedserius.com