List:General Discussion« Previous MessageNext Message »
From:<sinisa Date:March 20 1999 12:51am
Subject:Compile Error
View as plain text  
Bob Kruger writes:
 > 
 > I keep turning up the same error in trying to compile MySQL v3.22.20a:
 > 
 > make[2]: Leaving directory `/mysql-3.22.20a/client'
 > Making all in mit-pthreads
 > make[2]: Entering directory `/mysql-3.22.20a/mit-pthreads'
 > if [ -d obj ]; then true; else mkdir obj; fi
 > cp /dev/null obj/x
 > gcc -I. -Iinclude -I/mysql-3.22.20a/mit-pthreads/include -DPTHREAD_KERNEL
 > -g -O2 -Werror -c
 >  /mysql-3.22.20a/mit-pthreads/net/gethostbyaddr.c -o obj/gethostbyaddr.o
 > In file included from include/netdb.h:42,
 >                  from /mysql-3.22.20a/mit-pthreads/net/gethostbyaddr.c:44:
 > /usr/include/netinet/in.h:110: parse error before `sa_family_t'
 > cc1: warnings being treated as errors
 > /usr/include/netinet/in.h:110: warning: no semicolon at end of struct or union
 > /usr/include/netinet/in.h:117: parse error before `}'
 > In file included from /mysql-3.22.20a/mit-pthreads/net/gethostbyaddr.c:46:
 > include/resolv.h:88: field `nsaddr_list' has incomplete type
 > make[2]: *** [obj/gethostbyaddr.o] Error 1
 > make[2]: Leaving directory `/mysql-3.22.20a/mit-pthreads'
 > make[1]: *** [all-recursive] Error 1
 > make[1]: Leaving directory `/mysql-3.22.20a'
 > make: *** [all-recursive-am] Error 2
 > 
 > Machines are running Slakware v3.6, kernel 2.2.3.
 > 
 > Any hints or suggestions?
 > 
 > Bob

Hi!

Please, do not compile nor use mit-pthreads on Linux.

First install LinuxThreads, which make part of glibc 2.x and configure 
with --with-pthreads.

Sinisa

+---------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___        ==  mysql@stripped        |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|        Sinisa Milivojevic      |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|        mailto:sinisa@stripped |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|        Belgrade                |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|_____   Serbia                  |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                           |
|             /*/             \*\                   Developers Team   |
+---------------------------------------------------------------------+
Thread
Compile ErrorBob Kruger19 Mar
  • Compile Errorsinisa20 Mar
  • Re: open64 errorThimble Smith10 Mar