Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 83327 invoked from network); 10 Oct 2008 20:41:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Oct 2008 20:41:28 -0000 Received: (qmail 71154 invoked by uid 500); 10 Oct 2008 20:41:26 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 71138 invoked by uid 500); 10 Oct 2008 20:41:26 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 71127 invoked by uid 99); 10 Oct 2008 20:41:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 13:41:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 74.125.92.149 as permitted sender) Received: from [74.125.92.149] (HELO qw-out-1920.google.com) (74.125.92.149) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Oct 2008 20:40:22 +0000 Received: by qw-out-1920.google.com with SMTP id 9so220289qwj.26 for ; Fri, 10 Oct 2008 13:40:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=bJsqVe9lJTO5XUQkgJFVo/TACuSatFI9/pgxieaB7yk=; b=S0aC9WnFeleDimDfEHG0Hwh1kNzVA/Om8OEw+3lxHbLKyBBEKd0RWGoadSUTM2Uxrr X9nqjnwO+oIJVbFxgdYMCJ0ig4QsXhyFtSgRG5VjhatAI373TTQwFQAxx22b/wMJo7om OGo2kkptkIVyvvdLIYFtut/ShVlB6eNlH3OZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=KsFx83ymCpynTIVW1XoJFMkQttGkj4O9aQw1MmhBh4lp0Ld3E2mL20ZS7BYOoaikNj P4He/d91NiAWZXpkXK/H/IakvhgM4AbMFzKXy3CwUmk+ARByzppctHcdBTmwG2ax36vK B6KqRY5mIvyZ/Q37rTGuqjsVxREM/4Kl83YeM= Received: by 10.214.46.9 with SMTP id t9mr2681550qat.27.1223671241282; Fri, 10 Oct 2008 13:40:41 -0700 (PDT) Received: from ?192.168.2.150? ([68.49.143.174]) by mx.google.com with ESMTPS id 6sm5102563yxg.6.2008.10.10.13.40.39 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Oct 2008 13:40:40 -0700 (PDT) Subject: Re: Problem building activemq-cpp on cygwin From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <19925235.post@talk.nabble.com> References: <19925235.post@talk.nabble.com> Content-Type: text/plain Date: Fri, 10 Oct 2008 16:40:38 -0400 Message-Id: <1223671238.11757.2.camel@office> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org We don't really support builds under Cygwin. While its theoretically possible to do, I've never seen anyone do it and end up with a functional / reliable result, Cygwin is just to much of a hack. You could try with MinGW but again its not simple. The only real supported way to build on windows is to use Visual Studio 2005 or 2008. Regards Tim. On Fri, 2008-10-10 at 13:08 -0700, daveatnuwave wrote: > Hi. I'm trying to build activemq-cpp under cygwin (without MinGW). > Autogen/configure works fine but the make fails almost immediately trying to > compile LoggingInputStream.cpp. It looks like error is caused by the fact > the the APR that comes with Cygwin does not have thread support so the > apr_thread_* types are not declared. I tried to build my own copy of the APR > with thread support but apparently that's a project in itself. So the > question is: can activemq-cpp really be build under cygwin as described here > [1]? If so, how do I get by the APR issues. I'm able to build it fine under > Ubuntu but I'd like to have it under Cygwin as well. > > Thanks, > Dave > > [1] http://activemq.apache.org/cms/building.html > > Make error: > > g++ -DHAVE_CONFIG_H -I. -I../.. -Wno-uninitialized -DCYGWIN > -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include -W -Wall -fPI > -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long -g -O2 -MT > activemq/io/libactivemq_cpp_la-LoggingInputStream.lo -MD -MP -MF a > tivemq/io/.deps/libactivemq_cpp_la-LoggingInputStream.Tpo -c > activemq/io/LoggingInputStream.cpp -DDLL_EXPORT -DPIC -o activemq/io/ > libs/libactivemq_cpp_la-LoggingInputStream.o > activemq/io/LoggingInputStream.cpp:1: warning: -fPIC ignored for target (all > code is position independent) > In file included from ./decaf/io/FilterInputStream.h:23, > from activemq/io/LoggingInputStream.h:22, > from activemq/io/LoggingInputStream.cpp:18: > ./decaf/util/concurrent/Mutex.h:50: error: ISO C++ forbids declaration of > `apr_thread_mutex_t' with no type > ./decaf/util/concurrent/Mutex.h:50: error: expected `;' before '*' token > ./decaf/util/concurrent/Mutex.h:53: error: `apr_thread_cond_t' was not > declared in this scope > ./decaf/util/concurrent/Mutex.h:53: error: template argument 1 is invalid > ./decaf/util/concurrent/Mutex.h:53: error: template argument 2 is invalid > ./decaf/util/concurrent/Mutex.h:53: error: ISO C++ forbids declaration of > `eventQ' with no type > make[2]: *** [activemq/io/libactivemq_cpp_la-LoggingInputStream.lo] Error 1