List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:March 26 1999 9:01pm
Subject:Compilation problems
View as plain text  
>>>>> "root" == root  <root@stripped> writes:

>> Description:
root> 	MYsql fails to compile on a linix machine. This script has
root> already gathered the details of the system so I won't repeat them here.

root> FIRST ERROR
root> ~~~~~~~~~~~

root> c++ -I. -Iinclude -I/usr/local/src/mysql-3.22.20a/mit-pthreads/include
> -DPTHREAD_KERNEL -g -O2 -I. -Iinclude -I/usr/local/src/mysql-3.22.20a/mit-pthreads/include
> -DPTHREAD_KERNEL -g -O2 -Werror -c
> /usr/local/src/mysql-3.22.20a/mit-pthreads/pthreads/init.cc -o obj/init.o
root> cc1plus: warnings being treated as errors
root> include/pthread/sleep.h: In function `int machdep_gettimeofday(struct timespec
> *)':
root> In file included from include/pthread.h:54,
root>                  from
> /usr/local/src/mysql-3.22.20a/mit-pthreads/pthreads/init.cc:7:
root> include/pthread/sleep.h:52: warning: ANSI C++ forbids implicit conversion from
> `void *' in argument passing
root> make[2]: *** [obj/init.o] Error 1
root> make[2]: Leaving directory `/usr/local/src/mysql-3.22.20a/mit-pthreads'
root> make[1]: *** [all-recursive] Error 1
root> make[1]: Leaving directory `/usr/local/src/mysql-3.22.20a'
root> make: *** [all-recursive-am] Error 2

Hi!

Please read the MySQL manual about how to install MySQL on Linux!

You must install LinuxThreads first !

root> MySql doesn't build with newer kernels. For example 2.2.3. This kernel
root> introduces a new type sa_family_t which is used in preference to
root> unsigned short in some of the network related header files. I will try to
root> build a version which works with this kernel and I suspect this is
root> related to the second error mentioned above.

The above is not true:  I rebuild MySQL daily :) and my system is:

(/my/monty/sql-3.22) uname -a
Linux monty.pp.sci.fi 2.2.3 #21 SMP Fri Mar 19 16:08:56 EET 1999 i686 unknown

Fix:

Install Linuxthreads and try again!

Regards,
Monty

Thread
Compilation problemsroot26 Mar
  • Compilation problemsMichael Widenius28 Mar