Help with FreeBSD 4.2 Native Threads (was: Compile broken: mysql-3.23.38/mit-pthreads)

Help with FreeBSD 4.2 Native Threads (was: Compile broken: mysql-3.23.38/mit-pthreads)

Post by Sander Pilo » Thu, 17 May 2001 23:57:19



Freebsd does not have a libpthreads file.

Just compile with -pthread(s) and it'll work. Well, it does for me.

> -----Original Message-----

> Sent: 16 May 2001 16:18
> To: Sinisa Milivojevic

> Subject: Re: Help with FreeBSD 4.2 Native Threads (was:
> Compile broken: mysql-3.23.38/mit-pthreads)

> The problem is the Web hosting service I use does not have
> this package installed. In other words, there is no
> libpthreads.* in any of the library directories.

> _______


> > David Favor writes:

> > > The Web hosting service I am using does not have Native Threads
> > > installed. When I requested they install the package, they seemed
> > > clueless about how to do this.

> > > What is the exact command I need to tell them to issue to install
> > > the Native Threads package?

> > > Also, if they refuse, is there a way I can get the package,
> > > uncompress it and manually install -lpthreads and
> pthreads.h in my
> > > user directories?

> > > Thanks.

> > They come with a system. Just run configure without any options for
> > threads and configure will find a library.

> > Regards,

> > Sinisa

> >       ____  __     _____   _____  ___     ==  MySQL AB
> >      /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic

> >    /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaca, Cyprus
> >   /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____
> >   ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^
> >              /*/             \*\                Developers Team

> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)


> To unsubscribe, e-mail

> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Help with FreeBSD 4.2 Native Threads (was: Compile broken: mysql-3.23.38/mit-pthreads)

Post by Vivek Khe » Fri, 18 May 2001 00:40:05


DF> The problem is the Web hosting service I use does not have this
DF> package installed. In other words, there is no libpthreads.* in
DF> any of the library directories.

But FreeBSD native threads do not need any libpthreads.* files.  Your
best bet on FreeBSD is to "cd /usr/ports/database/mysql323-server;
make install" and be done with it.  The port is extremely nicely done.

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

Help with FreeBSD 4.2 Native Threads (was: Compile broken: mysql-3.23.38/mit-pthreads)

Post by Sander Pilo » Fri, 18 May 2001 01:13:14


Compiled with -D_REENTRANT -D_PTHREADS -fPIC -DPIC -Wall

Linked with -pthread

but its not mysql. For mysql I just did ./configure; make; make install

> -----Original Message-----

> Sent: 16 May 2001 17:11
> To: Sander Pilon

> Subject: Re: Help with FreeBSD 4.2 Native Threads (was:
> Compile broken: mysql-3.23.38/mit-pthreads)


> > Freebsd does not have a libpthreads file.

> > Just compile with -pthread(s) and it'll work. Well, it does for me.

> Thanks. I'll give it a try. Did you use -D_THREAD_SAFE also?

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

 
 
 

1. Compile broken: mysql-3.23.38/mit-pthreads

No mention of this on the lists. Suggestions?

_______

empire>uname -a

gcc -I. -Iinclude -I/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/include -DPTHREAD_KERNEL -O3 -DDBUG_OFF  -pipe -O3  -Werror -c
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c -o obj/sig.o
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c:408: invalid initializer
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c:415: invalid initializer
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c: In function `sigaddset':
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c:430: invalid operands to binary |
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c: In function `sigdelset':
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c:440: invalid operands to binary &
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c: In function `sigismember':
/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads/pthreads/sig.c:450: invalid operands to binary &
make[2]: *** [obj/sig.o] Error 1
make[2]: Leaving directory `/usr/home/dfavor/rpm/BUILD/mysql-3.23.38/mit-pthreads'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/home/dfavor/rpm/BUILD/mysql-3.23.38'
make: *** [all-recursive-am] Error 2

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)



Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

2. Window washer versus Micosoft Clean disk clean up

3. Help with FreeBSD 4.2 Native Threads (was: Compile broken:

4. Fw: Mysql v3.23.30 make test failed ('select * from foo')

5. ./configure goes into infinite loop on mit-pthreads

6. DOS driver program help/examples - file access/copy

7. <synopsis of the problem (one line)> no mit-pthreads directory

8. Will Xbox work through a hub?

9. MIT-Pthreads

10. How to configure MySQL 3.23.30-gamma for FreeBSD 4.2 w/o crash?

11. FreeBSD 4.2-stable + MySQL 3.23.32 sig 11 problem

12. Problem getting INNOBASE (3.23.37) working on FreeBSD (4.2)

13. Bug Report: mysql-3.23.38-win