Date: Thu, 10 Aug 2006 20:57:04 -0500 From: Eric Schuele <e.schuele@computer.org> To: Eric Schuele <e.schuele@computer.org> Cc: tegge@freebsd.org, freebsd-ports <freebsd-ports@freebsd.org> Subject: Re: problem building linuxthreads on RELENG_6 Message-ID: <44DBE3F0.8050207@computer.org> In-Reply-To: <44DBE153.1070504@computer.org> References: <44D93C41.8000604@computer.org> <ygeslk47g6a.wl%ume@mahoroba.org> <44DBE153.1070504@computer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/10/2006 20:45, Eric Schuele wrote: > On 08/10/2006 10:40, Hajimu UMEMOTO wrote: >> Hi, >> >>>>>>> On Tue, 08 Aug 2006 20:37:05 -0500 >>>>>>> Eric Schuele <e.schuele@computer.org> 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: > > The patch applied without complaint. > > However I seem to get the same results. FWIW, when I change: > #if __FreeBSD_version < 700016 > to > #if __FreeBSD_version > 700016 > It compiled. > > Now... on *my* machine (/usr/include/sys/param.h) > __FreeBSD_version=601104. So my diff and yours should have the same > effect no? Yet even when I got it to compile... Things did not seem to > work for me. > > Any thoughts? Anything I can provide to help? Ha! Disregard my last post. I must've done something wrong. It compiles now. Thanks. > >> >> 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 <string.h> >> #include <sys/param.h> >> >> -#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 <string.h> >> #include <sys/param.h> >> >> -#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 <string.h> >> #include <sys/param.h> >> >> -#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/ >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >> > > -- Regards, Eric
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44DBE3F0.8050207>