From owner-freebsd-ports@FreeBSD.ORG Thu Aug 10 15:40:48 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4932016A4DA; Thu, 10 Aug 2006 15:40:48 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id B101A43D46; Thu, 10 Aug 2006 15:40:46 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:2ACeoXlSLSD0ztIrQhlorndOwJAarovIln6FmsgNwek+k5ngq97o1Co2apIeXcD8@kasuga-iwi.mahoroba.org [IPv6:2001:2f0:104:8010:212:f0ff:fe52:6ac]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.6/8.13.6) with ESMTP/inet6 id k7AFeDX7047488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Aug 2006 00:40:17 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Fri, 11 Aug 2006 00:40:13 +0900 Message-ID: From: Hajimu UMEMOTO To: Eric Schuele , tegge@freebsd.org In-Reply-To: <44D93C41.8000604@computer.org> References: <44D93C41.8000604@computer.org> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.1-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0a1 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Fri, 11 Aug 2006 00:40:17 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.4 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on ameno.mahoroba.org Cc: freebsd-ports Subject: Re: problem building linuxthreads on RELENG_6 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Aug 2006 15:40:48 -0000 Hi, >>>>> On Tue, 08 Aug 2006 20:37:05 -0500 >>>>> Eric Schuele said: e.schuele> I am trying to build MySQL with linuxthread support. The build is e.schuele> failing within linuxthreads with the following error(s): e.schuele> cc -O -pipe -march=pentium4 -g -O2 -Wall -DCOMPILING_LINUXTHREADS e.schuele> -I/usr/ports/devel/linuxthreads/work/linuxthreads-2.2.3_21 e.schuele> -I/usr/ports/devel/linuxthreads/work/linuxthreads-2.2.3_21/sysdeps/i386 e.schuele> -I/usr/ports/devel/linuxthreads/work/linuxthreads-2.2.3_21/sysdeps/pthread e.schuele> -I/usr/ports/devel/linuxthreads/work/linuxthreads-2.2.3_21/sysdeps/unix/sysv/linux e.schuele> -I/usr/src/lib/libc/stdtime -DLIBC_RCS -DLINUXTHREADS -D__USE_UNIX98 e.schuele> -D__USE_XOPEN2K -D_STACK_GROWS_DOWN -DNEWLIBC -D_THREAD_SAFE e.schuele> -I/usr/src/lib/libc/i386 e.schuele> -I/usr/ports/devel/linuxthreads/work/linuxthreads-2.2.3_21/sysdeps/i386 e.schuele> -c getnetby_r.c e.schuele> getnetby_r.c:57: error: conflicting types for 'getnetbyaddr_r' e.schuele> /usr/include/netdb.h:239: error: previous declaration of e.schuele> 'getnetbyaddr_r' was here Please apply following patch to devel/linuxthreads: Index: files/getnetby_r.c diff -u -p files/getnetby_r.c.orig files/getnetby_r.c --- files/getnetby_r.c.orig Fri Jul 7 11:23:43 2006 +++ files/getnetby_r.c Fri Aug 11 00:26:18 2006 @@ -3,7 +3,7 @@ #include #include -#if __FreeBSD_version < 700016 +#if __FreeBSD_version < 601103 static pthread_mutex_t getnetby_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -107,4 +107,4 @@ getnetent_r (struct netent *result, char return result; } -#endif /* #if __FreeBSD_version < 700016 */ +#endif /* #if __FreeBSD_version < 601103 */ Index: files/getprotoby_r.c diff -u -p files/getprotoby_r.c.orig files/getprotoby_r.c --- files/getprotoby_r.c.orig Fri Jul 7 11:23:43 2006 +++ files/getprotoby_r.c Fri Aug 11 00:25:44 2006 @@ -3,7 +3,7 @@ #include #include -#if __FreeBSD_version < 700016 +#if __FreeBSD_version < 601103 static pthread_mutex_t getprotoby_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -107,4 +107,4 @@ getprotoent_r (struct protoent *result, return result; } -#endif /* #if __FreeBSD_version < 700016 */ +#endif /* #if __FreeBSD_version < 601103 */ Index: files/getservby_r.c diff -u -p files/getservby_r.c.orig files/getservby_r.c --- files/getservby_r.c.orig Fri Jul 7 11:23:43 2006 +++ files/getservby_r.c Fri Aug 11 00:26:56 2006 @@ -3,7 +3,7 @@ #include #include -#if __FreeBSD_version < 700016 +#if __FreeBSD_version < 601103 static pthread_mutex_t getservby_mutex = PTHREAD_MUTEX_INITIALIZER; @@ -115,4 +115,4 @@ getservent_r (struct servent *result, ch return result; } -#endif /* #if __FreeBSD_version < 700016 */ +#endif /* #if __FreeBSD_version < 601103 */ Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/