From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 05:56:10 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 702F516A415; Mon, 18 Dec 2006 05:56:10 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D30CF43CA2; Mon, 18 Dec 2006 05:56:09 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.8/8.13.8/NETPLEX) with ESMTP id kBI4uAEW025354; Sun, 17 Dec 2006 23:56:10 -0500 (EST) Date: Sun, 17 Dec 2006 23:56:10 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Peter Edwards In-Reply-To: <200612160900.54707.davidxu@freebsd.org> Message-ID: References: <34cb7c840612151000s4a3e1f2dvd71a60d66cf7c4be@mail.gmail.com> <200612160900.54707.davidxu@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Sun, 17 Dec 2006 23:56:10 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: David Xu , freebsd-threads@freebsd.org Subject: Re: libpthread problem + possible solution X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 05:56:10 -0000 On Sat, 16 Dec 2006, David Xu wrote: > On Saturday 16 December 2006 04:11, Daniel Eischen wrote: >> On Fri, 15 Dec 2006, Peter Edwards wrote: >>> Hi, >>> >>> I've a problem when a process uses: >>> libpthread >>> detached threads >>> mixed bound/unbound threads >>> suspended threads (a la pthread_resume_np()) >>> >>> whereby some newly created suspended threads don't get scheduled. >>> I think I've tracked it down, so if someone could review the >>> reasoning, I'd be grateful. >> >> I'm away for a few days, so I'd appreciate you waiting until >> early next week -- unless David Xu looks at it and gives it >> the ok. > I will review it. I looked at the patch and it looks OK to me. Go ahead and commit unless David had some comments to it that I haven't seen. -- DE From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 07:25:27 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 56E8C16A403; Mon, 18 Dec 2006 07:25:25 +0000 (UTC) (envelope-from davidxu@freebsd.org) Message-ID: <45864268.7070706@freebsd.org> Date: Mon, 18 Dec 2006 15:25:28 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061204 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: <34cb7c840612151000s4a3e1f2dvd71a60d66cf7c4be@mail.gmail.com> <200612160900.54707.davidxu@freebsd.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Edwards , freebsd-threads@freebsd.org Subject: Re: libpthread problem + possible solution X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 07:25:28 -0000 Daniel Eischen wrote: > On Sat, 16 Dec 2006, David Xu wrote: > >> On Saturday 16 December 2006 04:11, Daniel Eischen wrote: >> >>> On Fri, 15 Dec 2006, Peter Edwards wrote: >>> >>>> Hi, >>>> >>>> I've a problem when a process uses: >>>> libpthread >>>> detached threads >>>> mixed bound/unbound threads >>>> suspended threads (a la pthread_resume_np()) >>>> >>>> whereby some newly created suspended threads don't get scheduled. >>>> I think I've tracked it down, so if someone could review the >>>> reasoning, I'd be grateful. >>> >>> >>> I'm away for a few days, so I'd appreciate you waiting until >>> early next week -- unless David Xu looks at it and gives it >>> the ok. >> >> I will review it. > > > I looked at the patch and it looks OK to me. Go ahead and > commit unless David had some comments to it that I haven't > seen. > patch looks OK, commit it. From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 11:09:03 2006 Return-Path: X-Original-To: freebsd-threads@FreeBSD.org Delivered-To: freebsd-threads@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 552FA16A548 for ; Mon, 18 Dec 2006 11:09:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id A40D743C9F for ; Mon, 18 Dec 2006 11:08:57 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBIB8jKD090081 for ; Mon, 18 Dec 2006 11:08:45 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBIB8ivd090077 for freebsd-threads@FreeBSD.org; Mon, 18 Dec 2006 11:08:44 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Dec 2006 11:08:44 GMT Message-Id: <200612181108.kBIB8ivd090077@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 11:09:03 -0000 Current FreeBSD problem reports Critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s threa/76690 threads fork hang in child for -lc_r 1 problem total. Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/20016 threads pthreads: Cannot set scheduling timer/Cannot set virtu s threa/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVTIMEO socket o s threa/24632 threads libc_r delicate deviation from libc in handling SIGCHL s bin/32295 threads pthread dont dequeue signals s threa/34536 threads accept() blocks other threads o kern/38549 threads the procces compiled whith pthread stopped in pthread_ s threa/39922 threads [threads] [patch] Threaded applications executed with s threa/48856 threads Setting SIGCHLD to SIG_IGN still leaves zombies under s threa/49087 threads Signals lost in programs linked with libc_r s kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOC o threa/70975 threads unexpected and unreliable behaviour when using SYSV se o threa/72353 threads Assertion fails in /usr/src/lib/libpthread/sys/lock.c, o threa/72429 threads threads blocked in stdio (fgets, etc) are not cancella o threa/72953 threads fork() unblocks blocked signals w/o PTHREAD_SCOPE_SYST o threa/75273 threads FBSD 5.3 libpthread (KSE) bug o threa/75374 threads pthread_kill() ignores SA_SIGINFO flag s threa/76694 threads fork cause hang in dup()/close() function in child (-l o threa/79683 threads svctcp_create() fails if multiple threads call at the o threa/80435 threads panic on high loads o threa/83914 threads [libc] popen() doesn't work in static threaded program s threa/84483 threads problems with devel/nspr and -lc_r on 4.x o threa/85160 threads [libthr] [patch] libobjc + libpthread/libthr crash pro o threa/90278 threads libthr, ULE and -current produces >100% WCPU with apac o kern/91266 threads [threads] Trying sleep, but thread marked as sleeping s threa/94467 threads send(), sendto() and sendmsg() are not correct in libc f threa/98256 threads gnome-system-monitor core dumps from pthread_testcance s threa/100815 threads FBSD 5.5 broke nanosleep in libc_r o threa/101323 threads fork(2) in threaded programs broken. o threa/103975 threads Implicit loading/unloading of libpthread.so may crash 29 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- s kern/19247 threads uthread_sigaction.c does not do anything wrt SA_NOCLDW s kern/22190 threads A threaded read(2) from a socketpair(2) fd can sometim s threa/30464 threads pthread mutex attributes -- pshared s threa/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwrite() need wra s threa/40671 threads pthread_cancel doesn't remove thread from condition qu s threa/69020 threads pthreads library leaks _gc_mutex o threa/74180 threads KSE problem. Applications those riched maximum possibl o threa/79887 threads [patch] freopen() isn't thread-safe o threa/80992 threads abort() sometimes not caught by gdb depending on threa o threa/81534 threads [libc_r] [patch] libc_r close() will fail on any fd ty 10 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 18:40:22 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4397C16A40F for ; Mon, 18 Dec 2006 18:40:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07AA743C9F for ; Mon, 18 Dec 2006 18:40:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBIIeLOb044846 for ; Mon, 18 Dec 2006 18:40:21 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBIIeL5s044845; Mon, 18 Dec 2006 18:40:21 GMT (envelope-from gnats) Date: Mon, 18 Dec 2006 18:40:21 GMT Message-Id: <200612181840.kBIIeL5s044845@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Peter Edwards Cc: Subject: Re: threads/74180: KSE problem. Applications those riched maximum possible threads at a time, would hang on threads join. look at detailed description ! X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Peter Edwards List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 18:40:22 -0000 The following reply was made to PR threads/74180; it has been noted by GNATS. From: Peter Edwards To: bug-followup@FreeBSD.org, acs@swamp.homeunix.org Cc: Subject: Re: threads/74180: KSE problem. Applications those riched maximum possible threads at a time, would hang on threads join. look at detailed description ! Date: Mon, 18 Dec 2006 18:03:34 +0000 There's some bugs in the posted sample that will indeed cause it to hang unpredictably. For condition variables, you need to test some condition before sleeping, and the condition needs to be protected by the mutex you release as you go to sleep (this is where they get their name from) For example, in the case posted, after you start, say, 2000 threads, the main thread may reach the pthread_cond_broadcast() before some subset of those 2000 reach pthread_cond_wait() The broadcast only wakes up those threads that are _currently_ waiting on the condvar, so threads that reach the pthread_cond_wait() after that will hang indefinitely. So, before going asleep, you need to test if the main thread has already hit the pthread_cond_broadcast(): eg, > > static bool done = false; > ... > pthread_mutex_lock(&lock); > while (!done) > pthread_cond_wait(&WakeThemUp, &lock); > pthread_mutex_unlock(&lock); > > ... > > done = true; > pthread_cond_signal(&WakeThemUp); Note the "while (cond)" rather than the "if (cond)" around the cond_wait, it's allowed for pthread_cond_wait to return spuriously. This still leaves a race condition between the assignment of the "done" sentinel with the waking of the condition (ie, between the waiter thread testing "done" and going asleep, "done" is assigned by the waker thread): Generally, you need to hold the mutex while you change the condition that the other threads are waiting on, and signal/broadcast the condvar, so you really need > > pthread_mutex_lock(&lock); > done = true; > pthread_cond_signal(&WakeThemUp); > pthread_mutex_unlock(&lock); Essentially, condition variables - in conjunction with a mutex - give you the ability to have two threads communicate via some external condition (in this case, just the value of "done": the CV just gives you the ability for a consumer to atomically test that condition and go to sleep if its false, and for a producer to atomically change the value of the condition and wake up the consumer. I'm not entirely sure why the program only works the first time its invoked, but its likely that the main thread does a lot of work in the kernel on the first iteration, while the resources allocated are available more readilly (as they are recycled) for successive invocations of the test. This would cause the main thread to lag behind those threads it created for the first invocation, but race ahead afterwards. Note: I'm not saying this _is_ the case, but it's plausible, and serves to indicate why things might not always happen the same way. From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 21:48:54 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62C1C16A403 for ; Mon, 18 Dec 2006 21:48:54 +0000 (UTC) (envelope-from jean.daigle@SolaceSystems.com) Received: from mail.allstreamits.com (mail.allstreamits.com [66.46.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAEF043C9F for ; Mon, 18 Dec 2006 21:48:53 +0000 (GMT) (envelope-from jean.daigle@SolaceSystems.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 18 Dec 2006 16:29:49 -0500 Message-ID: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: freebsd/ace: Errors when compiling ACE application Thread-Index: Acci66XrcnCvebYkQgCp9/+FmmFNcw== From: "Jean-Philippe Daigle" To: Subject: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 21:48:54 -0000 Hello, I'm trying to compile an application using the FreeBSD port of ACE 5.5. We've been successfully supporting the application under Linux, and are currently trying to port to FreeBSD 6.1. The problem I'm having now is that including ace/OS_NS_netdb.h results in errors; from what I've read, gethost*_r functions are not defined on FreeBSD? My compiler output looks like the following, and since this is FreeBSD, I believe "ACE_LACKS_NETDB_REENTRANT_FUNCTIONS" is defined. Help from any other ACE-on-FreeBSD users would be greatly appreciated! g++ -Wall -Wpointer-arith -g -pipe -O0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I/usr/local/include -Werror -I- -I/usr/home/solaceuser/dev/cppcsmp/.. -I/usr/home/solaceuser/dev/cppcsmp/solace -I/usr/local/include/ -c /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp -o CSMPFactory.o In file included from /usr/local/include/ace/OS_NS_netdb.h:142, from /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp:19: /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* ACE_OS::gethostbyaddr_r(const char*, int, int, hostent*, char*, int*)': /usr/local/include/ace/OS_NS_netdb.inl:108: error: `::gethostbyaddr_r' has not been declared /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* ACE_OS::gethostbyname_r(const char*, hostent*, char*, int*)': /usr/local/include/ace/OS_NS_netdb.inl:218: error: `::gethostbyname_r' has not been declared /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* ACE_OS::getprotobyname_r(const char*, protoent*, char*)': /usr/local/include/ace/OS_NS_netdb.inl:365: error: `::getprotobyname_r' has not been declared /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* ACE_OS::getprotobynumber_r(int, protoent*, char*)': /usr/local/include/ace/OS_NS_netdb.inl:432: error: `::getprotobynumber_r' has not been declared /usr/local/include/ace/OS_NS_netdb.inl: In function `servent* ACE_OS::getservbyname_r(const char*, const char*, servent*, char*)': /usr/local/include/ace/OS_NS_netdb.inl:506: error: `::getservbyname_r' has not been declared -- Jean-Philippe Daigle From owner-freebsd-threads@FreeBSD.ORG Mon Dec 18 22:41:08 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD9BC16A415 for ; Mon, 18 Dec 2006 22:41:08 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (grnl-static-02-0046.dsl.iowatelecom.net [69.66.56.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44FAC43CA3 for ; Mon, 18 Dec 2006 22:41:06 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kBIM2YHI089167; Mon, 18 Dec 2006 16:02:34 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kBIM2YYM089166; Mon, 18 Dec 2006 16:02:34 -0600 (CST) (envelope-from brooks) Date: Mon, 18 Dec 2006 16:02:34 -0600 From: Brooks Davis To: Jean-Philippe Daigle Message-ID: <20061218220234.GC88878@lor.one-eyed-alien.net> References: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R+My9LyyhiUvIEro" Content-Disposition: inline In-Reply-To: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> User-Agent: Mutt/1.5.11 Cc: freebsd-threads@freebsd.org Subject: Re: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 22:41:08 -0000 --R+My9LyyhiUvIEro Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2006 at 04:29:49PM -0500, Jean-Philippe Daigle wrote: > Hello, >=20 > I'm trying to compile an application using the FreeBSD port of ACE 5.5. > We've been successfully supporting the application under Linux, and are > currently trying to port to FreeBSD 6.1. >=20 > The problem I'm having now is that including ace/OS_NS_netdb.h results > in errors; from what I've read, gethost*_r functions are not defined on > FreeBSD? >=20 > My compiler output looks like the following, and since this is FreeBSD, > I believe "ACE_LACKS_NETDB_REENTRANT_FUNCTIONS" is defined. Help from > any other ACE-on-FreeBSD users would be greatly appreciated! >=20 > g++ -Wall -Wpointer-arith -g -pipe -O0 -DACE_HAS_EXCEPTIONS > -D__ACE_INLINE__ -I/usr/local/include -Werror -I- > -I/usr/home/solaceuser/dev/cppcsmp/.. > -I/usr/home/solaceuser/dev/cppcsmp/solace -I/usr/local/include/ -c > /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp -o CSMPFactory.o > In file included from /usr/local/include/ace/OS_NS_netdb.h:142, > from > /usr/home/solaceuser/dev/cppcsmp/CSMPFactory.cpp:19: > /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* > ACE_OS::gethostbyaddr_r(const char*, int, int, hostent*, char*, int*)': > /usr/local/include/ace/OS_NS_netdb.inl:108: error: `::gethostbyaddr_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `hostent* > ACE_OS::gethostbyname_r(const char*, hostent*, char*, int*)': > /usr/local/include/ace/OS_NS_netdb.inl:218: error: `::gethostbyname_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* > ACE_OS::getprotobyname_r(const char*, protoent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:365: error: `::getprotobyname_r' > has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `protoent* > ACE_OS::getprotobynumber_r(int, protoent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:432: error: > `::getprotobynumber_r' has not been declared > /usr/local/include/ace/OS_NS_netdb.inl: In function `servent* > ACE_OS::getservbyname_r(const char*, const char*, servent*, char*)': > /usr/local/include/ace/OS_NS_netdb.inl:506: error: `::getservbyname_r' > has not been declared Any reason you aren't using /usr/ports/devel/ace to build it? Even if there is, you might want to check the patches they apply and see what changes need to be made. -- Brooks --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFhw/6XY6L6fI4GtQRAodcAKDaiEzL1ujolfDuRijVmH5dOkQKXQCeLMSG YsxCt/JUbY471sLA/nmMaPM= =qQg7 -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro-- From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 00:23:36 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4326916A407 for ; Tue, 19 Dec 2006 00:23:36 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id C80EE43CA0 for ; Tue, 19 Dec 2006 00:23:35 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.8/8.13.8/NETPLEX) with ESMTP id kBJ0NI1Y029073; Mon, 18 Dec 2006 19:23:18 -0500 (EST) Date: Mon, 18 Dec 2006 19:23:18 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Brooks Davis In-Reply-To: <20061218220234.GC88878@lor.one-eyed-alien.net> Message-ID: References: <6B865826E860EF42B3A387A03F395396147E73D6@EX0004.AllstreamITS.local> <20061218220234.GC88878@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Mon, 18 Dec 2006 19:23:19 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org, Jean-Philippe Daigle Subject: Re: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 00:23:36 -0000 On Mon, 18 Dec 2006, Brooks Davis wrote: > On Mon, Dec 18, 2006 at 04:29:49PM -0500, Jean-Philippe Daigle wrote: >> Hello, >> >> I'm trying to compile an application using the FreeBSD port of ACE 5.5. >> We've been successfully supporting the application under Linux, and are >> currently trying to port to FreeBSD 6.1. >> >> The problem I'm having now is that including ace/OS_NS_netdb.h results >> in errors; from what I've read, gethost*_r functions are not defined on >> FreeBSD? >> >> My compiler output looks like the following, and since this is FreeBSD, >> I believe "ACE_LACKS_NETDB_REENTRANT_FUNCTIONS" is defined. Help from >> any other ACE-on-FreeBSD users would be greatly appreciated! > > Any reason you aren't using /usr/ports/devel/ace to build it? Even if > there is, you might want to check the patches they apply and see what > changes need to be made. I'd also like to reiterate what Brooks said above. If you aren't using the FreeBSD ports system, you will just be referred back to it if you have problems like this. -- Dan From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 12:03:57 2006 Return-Path: X-Original-To: freebsd-threads@hub.freebsd.org Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CBF3016A503; Tue, 19 Dec 2006 12:03:57 +0000 (UTC) (envelope-from peadar@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id E649C43CCC; Tue, 19 Dec 2006 12:03:42 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from freefall.freebsd.org (peadar@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBJC3RkX048428; Tue, 19 Dec 2006 12:03:27 GMT (envelope-from peadar@freefall.freebsd.org) Received: (from peadar@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBJC3RaN048424; Tue, 19 Dec 2006 12:03:27 GMT (envelope-from peadar) Date: Tue, 19 Dec 2006 12:03:27 GMT From: Peter Edwards Message-Id: <200612191203.kBJC3RaN048424@freefall.freebsd.org> To: acs@swamp.homeunix.org, peadar@FreeBSD.org, freebsd-threads@FreeBSD.org Cc: Subject: Re: threads/74180: KSE problem. Applications those riched maximum possible threads at a time, would hang on threads join. look at detailed description ! X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 12:03:57 -0000 Synopsis: KSE problem. Applications those riched maximum possible threads at a time, would hang on threads join. look at detailed description ! State-Changed-From-To: open->closed State-Changed-By: peadar State-Changed-When: Tue Dec 19 12:01:54 UTC 2006 State-Changed-Why: Not a bug: race condition in posted sample. Explanation provided in emailed follow-up http://www.freebsd.org/cgi/query-pr.cgi?pr=74180 From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 14:36:59 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FCD916A416 for ; Tue, 19 Dec 2006 14:36:59 +0000 (UTC) (envelope-from jean.daigle@SolaceSystems.com) Received: from mail.allstreamits.com (mail.allstreamits.com [66.46.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13B3A43CA0 for ; Tue, 19 Dec 2006 14:36:58 +0000 (GMT) (envelope-from jean.daigle@SolaceSystems.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Dec 2006 09:34:54 -0500 Message-ID: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: freebsd/ace: Errors when compiling ACE application Thread-Index: Acci8JpW8tjOMw5BQvmewJ7AP2lR4gAiQ9XQ From: "Jean-Philippe Daigle" To: Subject: RE: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 14:36:59 -0000 > -----Original Message----- > From: Brooks Davis [mailto:brooks@one-eyed-alien.net] > Sent: Monday, December 18, 2006 5:03 PM > To: Jean-Philippe Daigle > Cc: freebsd-threads@freebsd.org > Subject: Re: freebsd/ace: Errors when compiling ACE application >=20 > Any reason you aren't using /usr/ports/devel/ace to build it? Even if > there is, you might want to check the patches they apply and see what > changes need to be made. >=20 > -- Brooks Hello Brooks, I might be misunderstanding your comment, but if I'm not, I need to clarify the following: I am not attempting to build the ACE libraries themselves; I'm using the ACE package from the ports system. Problem is, when you include /usr/local/include/ace/OS_NS_netdb.h (installed when you install ACE from ports) in an application, it fails to build because the functions "::gethostbyaddr_r", "::gethostbyname_r", "::getprotobyname_r", "::getprotobynumber_r", "::getservbyname_r" don't appear to be defined anywhere. I was wondering if anyone with experience using ACE on FreeBSD had encountered this issue themselves. Thanks, JP From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 14:47:20 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF14916A40F for ; Tue, 19 Dec 2006 14:47:20 +0000 (UTC) (envelope-from bsddiy@126.com) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F3C543CA2; Tue, 19 Dec 2006 14:47:20 +0000 (GMT) (envelope-from bsddiy@126.com) Received: from [127.0.0.1] (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kBJEkifm064928; Tue, 19 Dec 2006 14:46:54 GMT (envelope-from bsddiy@126.com) Message-ID: <4587FB56.6010306@126.com> Date: Tue, 19 Dec 2006 22:46:46 +0800 From: David Xu User-Agent: Thunderbird 1.5.0.8 (X11/20061202) MIME-Version: 1.0 To: Jean-Philippe Daigle References: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> In-Reply-To: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-threads@freebsd.org Subject: Re: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 14:47:21 -0000 Jean-Philippe Daigle wrote: >> -----Original Message----- >> From: Brooks Davis [mailto:brooks@one-eyed-alien.net] >> Sent: Monday, December 18, 2006 5:03 PM >> To: Jean-Philippe Daigle >> Cc: freebsd-threads@freebsd.org >> Subject: Re: freebsd/ace: Errors when compiling ACE application >> >> Any reason you aren't using /usr/ports/devel/ace to build it? Even if >> there is, you might want to check the patches they apply and see what >> changes need to be made. >> >> -- Brooks > > Hello Brooks, > I might be misunderstanding your comment, but if I'm not, I need to > clarify the following: I am not attempting to build the ACE libraries > themselves; I'm using the ACE package from the ports system. > > Problem is, when you include /usr/local/include/ace/OS_NS_netdb.h > (installed when you install ACE from ports) in an application, it fails > to build because the functions "::gethostbyaddr_r", "::gethostbyname_r", > "::getprotobyname_r", "::getprotobynumber_r", "::getservbyname_r" don't > appear to be defined anywhere. I was wondering if anyone with experience > using ACE on FreeBSD had encountered this issue themselves. > > Thanks, > JP > I heard the resolver in libc uses thread local storage, it is not needed to have _r versions. Regards, David Xu From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 15:24:35 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 112B116A416 for ; Tue, 19 Dec 2006 15:24:35 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 065D343CA4 for ; Tue, 19 Dec 2006 15:24:31 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.8/8.13.8/NETPLEX) with ESMTP id kBJFONEg023844; Tue, 19 Dec 2006 10:24:23 -0500 (EST) Date: Tue, 19 Dec 2006 10:24:23 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Jean-Philippe Daigle In-Reply-To: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> Message-ID: References: <6B865826E860EF42B3A387A03F395396147E79FE@EX0004.AllstreamITS.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Tue, 19 Dec 2006 10:24:23 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-threads@freebsd.org Subject: RE: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 15:24:35 -0000 On Tue, 19 Dec 2006, Jean-Philippe Daigle wrote: >> -----Original Message----- >> From: Brooks Davis [mailto:brooks@one-eyed-alien.net] >> Sent: Monday, December 18, 2006 5:03 PM >> To: Jean-Philippe Daigle >> Cc: freebsd-threads@freebsd.org >> Subject: Re: freebsd/ace: Errors when compiling ACE application >> >> Any reason you aren't using /usr/ports/devel/ace to build it? Even if >> there is, you might want to check the patches they apply and see what >> changes need to be made. >> >> -- Brooks > > Hello Brooks, > I might be misunderstanding your comment, but if I'm not, I need to > clarify the following: I am not attempting to build the ACE libraries > themselves; I'm using the ACE package from the ports system. > > Problem is, when you include /usr/local/include/ace/OS_NS_netdb.h > (installed when you install ACE from ports) in an application, it fails > to build because the functions "::gethostbyaddr_r", "::gethostbyname_r", > "::getprotobyname_r", "::getprotobynumber_r", "::getservbyname_r" don't > appear to be defined anywhere. I was wondering if anyone with experience > using ACE on FreeBSD had encountered this issue themselves. This is a problem for the ports maintainer then. We do have these functions in /usr/include/netdb.h and in libc. I'm not sure when they appeared in FreeBSD, but I see them in -current. It looks like they appeared in 6-stable July 17th, 2006, so if you are using FreeBSD < 6.2 or something from before July 17th, they will not be found. The ace port checks for this and should only apply the _r patch if your version of FreeBSD supports it. What version of FreeBSD are you using (uname -a) and are you sure you properly rebuilt and installed your system so everything is in sync (buildworld, buildkernel, installkernel, installworld)? Did you rebuild ports/devel/ace so it is in sync with the version of FreeBSD that you are using? It almost looks like you installed a port or package of ace that was built for a newer version of FreeBSD than you are using (did you downgrade without rebuild devel/ace?). -- DE From owner-freebsd-threads@FreeBSD.ORG Tue Dec 19 16:25:00 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 22F6416A416 for ; Tue, 19 Dec 2006 16:25:00 +0000 (UTC) (envelope-from imriz@co.zahav.net.il) Received: from mx.co.zahav.net.il (mx.co.zahav.net.il [192.114.85.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C10343CA5 for ; Tue, 19 Dec 2006 16:24:59 +0000 (GMT) (envelope-from imriz@co.zahav.net.il) Received: from igfe.InetGold (unknown [172.33.1.137]) by mx.co.zahav.net.il (Postfix) with ESMTP id 235252C3447 for ; Tue, 19 Dec 2006 17:41:37 +0200 (IST) Received: from IGMAIL.InetGold ([172.31.100.164]) by igfe.InetGold with Microsoft SMTPSVC(6.0.3790.1830); Tue, 19 Dec 2006 17:41:36 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 19 Dec 2006 17:41:38 +0200 Message-ID: <6F2DB4B43B9EAD4FA4659FA701F45ADB05285B40@IGMAIL.InetGold> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: _umtx_op -1 errno 60 Operation timed out Thread-Index: AccjhCw49EvDdr8yTk+rU6bf3g1HmA== From: "Imri Zvik" To: X-OriginalArrivalTime: 19 Dec 2006 15:41:36.0970 (UTC) FILETIME=[2B22BAA0:01C72384] Subject: _umtx_op -1 errno 60 Operation timed out X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 16:25:00 -0000 Hi, I've tried using libthr with bind 9.3, but after a while, bind stops working (that is, responding to queries - the process is still alive) and I can see the following with ktrace: 1667 named CALL _umtx_op(0x81a6304,0x2,0x17,0,0xbf5fae20) 1667 named RET _umtx_op -1 errno 60 Operation timed out With libpthread everything works fine... Version: 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #7: Tue Dec 19 14:47:17 IST 2006 Can anyone please enlighten me? :) From owner-freebsd-threads@FreeBSD.ORG Wed Dec 20 11:02:22 2006 Return-Path: X-Original-To: threads@freebsd.org Delivered-To: freebsd-threads@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE58F16A407 for ; Wed, 20 Dec 2006 11:02:22 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 539EA43CA4 for ; Wed, 20 Dec 2006 11:02:20 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1890395uge for ; Wed, 20 Dec 2006 03:02:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=Udrslr3acN5Lnrd2Nr1gZZJoSxNoRVqiS7HdY0lhQ4Qvs4R4HQXqdqGURkYhMLsmfviIffB4WzUhcFh4wQFiWql+74OFU31XyGCtn7UaM8SPBuxxyhb0d3wiX4wsVSlZRmaxwlaaMoQnLBl0C37/Fp0+eZIyS0oN/QHQvXwL0CY= Received: by 10.78.81.20 with SMTP id e20mr4154619hub.1166610896822; Wed, 20 Dec 2006 02:34:56 -0800 (PST) Received: by 10.78.167.16 with HTTP; Wed, 20 Dec 2006 02:34:56 -0800 (PST) Message-ID: Date: Wed, 20 Dec 2006 13:34:56 +0300 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: threads@freebsd.org, "Eugeny N Dzhurinsky" In-Reply-To: <20061220093904.GD960@office.redwerk.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061110203714.GA89006@ace.b020.ceid.upatras.gr> <200612191141.12890.achill@matrix.gatewaynet.com> <20061219094541.GF1006@office.redwerk.com> <200612191151.37416.achill@matrix.gatewaynet.com> <20061219104300.GG1006@office.redwerk.com> <20061220075801.GA960@office.redwerk.com> <20061220093904.GD960@office.redwerk.com> X-Google-Sender-Auth: 37fc42634779e317 Cc: Subject: Re: Performance of Java on FBSD vs. others... X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 11:02:22 -0000 On 12/20/06, Eugeny N Dzhurinsky wrote: > On Wed, Dec 20, 2006 at 12:05:31PM +0300, Andrew Pantyukhin wrote: > > On 12/20/06, Eugeny N Dzhurinsky wrote: > > >On Tue, Dec 19, 2006 at 09:15:12PM +0100, Ivan Voras wrote: > > >> Eugeny N Dzhurinsky wrote: > > >> > looks like I need to map libpthread.so.1 - not libpthread.so.2? > > >> If you're using 5.x, stay away from libthr - it was much slower back > > >then. > > > > > >And it doesn't work well ;) > > Didn't! :) > > I was unable to test it with 6.1 at home, so I'm not sure. Btw, is it possible > to enable libthr for any application in FreeBSD 6.1 somehow, or it is probably > not a good idea? You should test and decide for yourself. It's not a bad idea a priori. From owner-freebsd-threads@FreeBSD.ORG Wed Dec 20 14:28:10 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4147216A407 for ; Wed, 20 Dec 2006 14:28:10 +0000 (UTC) (envelope-from jean.daigle@SolaceSystems.com) Received: from mail.allstreamits.com (mail.allstreamits.com [66.46.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C3B243C9F for ; Wed, 20 Dec 2006 14:28:08 +0000 (GMT) (envelope-from jean.daigle@SolaceSystems.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Dec 2006 09:26:12 -0500 Message-ID: <6B865826E860EF42B3A387A03F39539614869541@EX0004.AllstreamITS.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: freebsd/ace: Errors when compiling ACE application Thread-Index: AccjghV6uRWb3FxyRSK1pdXZ+9zEmgAAECVQ From: "Jean-Philippe Daigle" To: Subject: RE: freebsd/ace: Errors when compiling ACE application X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2006 14:28:10 -0000 > -----Original Message----- > From: Daniel Eischen [mailto:deischen@freebsd.org] > Sent: Tuesday, December 19, 2006 10:24 AM > To: Jean-Philippe Daigle > Cc: freebsd-threads@freebsd.org > Subject: RE: freebsd/ace: Errors when compiling ACE application >=20 > [...] >=20 > What version of FreeBSD are you using (uname -a) and are you > sure you properly rebuilt and installed your system so everything > is in sync (buildworld, buildkernel, installkernel, installworld)? > Did you rebuild ports/devel/ace so it is in sync with the version > of FreeBSD that you are using? It almost looks like you installed > a port or package of ace that was built for a newer version of > FreeBSD than you are using (did you downgrade without rebuild > devel/ace?). >=20 > -- > DE Daniel, thanks! That's exactly what happened (I'm new to FreeBSD). A look at the version I had installed revealed that I was using the ACE package from FreeBSD 6.2 on 6.1. Downgrading ACE back to the v5.4 package from the correct version of FreeBSD fixed my compilation problems. JP