From owner-freebsd-database Thu Oct 26 5: 2:48 2000 Delivered-To: freebsd-database@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 6E43F37B479 for ; Thu, 26 Oct 2000 05:02:46 -0700 (PDT) Received: from hamlet.nectar.com (hamlet.nectar.com [10.0.1.102]) by gw.nectar.com (Postfix) with ESMTP id CA092193E4; Thu, 26 Oct 2000 07:02:44 -0500 (CDT) Received: (from nectar@localhost) by hamlet.nectar.com (8.11.1/8.9.3) id e9QC2is17294; Thu, 26 Oct 2000 07:02:44 -0500 (CDT) (envelope-from nectar@spawn.nectar.com) Date: Thu, 26 Oct 2000 07:02:44 -0500 From: "Jacques A. Vidrine" To: Dimitar Peikov Cc: Artem Koutchine , freebsd-database@FreeBSD.ORG Subject: Re: Compiling MySQL 2.23.27 with linuxthreads on FreeBSD 4.1.1-STABLE Message-ID: <20001026070244.A17219@hamlet.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , Dimitar Peikov , Artem Koutchine , freebsd-database@FreeBSD.ORG References: <200010260709.e9Q79j609547@earth.rila.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200010260709.e9Q79j609547@earth.rila.bg>; from mitko@earth.rila.bg on Thu, Oct 26, 2000 at 10:09:45AM +0300 X-Url: http://www.nectar.com/ Sender: owner-freebsd-database@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 26, 2000 at 10:09:45AM +0300, Dimitar Peikov wrote: > The same is when I've try to compile simple program with -lpthread in FreeBSD > 4.1.1-Stable. > > $ cc -pthread -lc -o threads threads.c ^^^ Don't do that... you are trying to link against libc_r _and_ libc. % cc -pthread -o threads threads.c threads.c: In function `main': threads.c:22: warning: passing arg 3 of `pthread_create' from incompatible pointer type threads.c:24: warning: passing arg 3 of `pthread_create' from incompatible pointer type threads.c:27: warning: passing arg 3 of `pthread_create' from incompatible pointer type The warnings are because the start_routine parameter expects a pointer to a function that returns a pointer to void. -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message