Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 39973 invoked from network); 20 Jan 2010 01:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jan 2010 01:02:37 -0000 Received: (qmail 70767 invoked by uid 500); 20 Jan 2010 01:02:36 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 70670 invoked by uid 500); 20 Jan 2010 01:02:36 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 70662 invoked by uid 99); 20 Jan 2010 01:02:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 01:02:36 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of RYAN_NEAL@appsig.com designates 63.124.185.41 as permitted sender) Received: from [63.124.185.41] (HELO alicenbob.appsig.com) (63.124.185.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Jan 2010 01:02:31 +0000 Received: from appsig-oavgw.appsig.com (localhost [127.0.0.1]) by alicenbob.appsig.com (8.12.11/8.12.11) with SMTP id o0K127kO007250 for ; Tue, 19 Jan 2010 17:02:10 -0800 (PST) (envelope-from RYAN_NEAL@appsig.com) Received: from EXCHANGEVS01.appsig.com ([172.16.13.152]) by appsig-oavgw.appsig.com (SAVSMTP 3.1.7.47) with SMTP id M2010011917020903425 for ; Tue, 19 Jan 2010 17:02:09 -0800 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA996C.3127C692" Subject: Cross compiling the APR suite Date: Tue, 19 Jan 2010 17:02:09 -0800 Message-ID: <4B2CB099CF3D4F40B1B1442281CA94FFD99BCA@EXCHANGEVS01.appsig.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cross compiling the APR suite Thread-Index: AcqZbDD47l31hbVhQr+IPmhf3o3hKg== From: "NEAL, RYAN" To: This is a multi-part message in MIME format. ------_=_NextPart_001_01CA996C.3127C692 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello, =20 I am trying to compile OpenAMQ and Log4CXX for powerpc - both of which need APR and APU. I am having some struggles with the compilation process, could you help? =20 First I start by compiling APR: =20 ./configure CC=3Dpowerpc-linux-gcc --host=3Dpowerpc-linux --prefix=3D/tmp/target_filesystem/apr ac_cv_file__dev_zero=3Dyes ac_cv_func_setpgrp_void=3Dyes apr_cv_tcp_nodelay_with_cork=3Dyes ac_cv_sizeof_struct_iovec=3D8 --enable-threads CXX=3Dpowerpc-linux-g++ make make install =20 ->This goes fine. Puts it in the right place and everything. =20 Then I go to APR-iconv - will be needed by Log4CXX (doesn't like the one in /usr/include?). ./configure CC=3Dpowerpc-linux-gcc CXX=3Dpowerpc-linux-g++ --host=3Dpowerpc-linux --prefix=3D/tmp/target_filesystem/apr-iconv --with-apr=3D/tmp/target_filesystem/apr make ->This fails: /bin/sh /tmp/target_filesystem/apr/build-1/libtool --silent = --mode=3Dlink powerpc-linux-gcc -g -O2 -DHAVE_CONFIG_H -DLINUX=3D2 -D_REENTRANT -D_GNU_SOURCE -I/tmp/apr-iconv-1.2.1/lib -I/tmp/apr-iconv-1.2.1/include -I/tmp/target_filesystem/apr/include/apr-1 -o apriconv -o apriconv iconv.lo iconv_stream.lo ../lib/libapriconv-1.la /tmp/target_filesystem/apr/lib/libapr-1.la -lcrypt -ldl /tmp/target_filesystem/apr/lib/libapr-1.so: warning: the use of LEGACY `utimes' is discouraged, use `utime' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_create' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_getspecific' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_detach' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_once' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_key_create' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_attr_setstacksize' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_sigmask' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_join' /tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_setspecific' collect2: ld returned 1 exit status =20 I tried adding in the LIBS=3D-lpthread to APR, but that causes APR to = fail the build. Any ideas? The "final" step will to be getting APR-util to compile, utilizing the above components. Something like this: =20 ./configure CC=3Dpowerpc-linux-gcc = CXX=3Dpowerpc-linux-g++ --host=3Dpowerpc-linux -prefix=3D/tmp/target_filesystem/apr-util -with-iconv=3D/tmp/target_filesystem/apr-iconv -with-apr=3D/tmp/target_filesystem/apr =20 Any ideas would be REALLY helpful. I am stumped! =20 :: Ryan Neal ------_=_NextPart_001_01CA996C.3127C692 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am trying to compile OpenAMQ and Log4CXX for = powerpc – both of which need APR and APU.  I am having some struggles with = the compilation process, could you help?

 

First I start by compiling APR:

 

./configure = CC=3Dpowerpc-linux-gcc --host=3Dpowerpc-linux --prefix=3D/tmp/target_filesystem/apr ac_cv_file__dev_zero=3Dyes ac_cv_func_setpgrp_void=3Dyes apr_cv_tcp_nodelay_with_cork=3Dyes ac_cv_sizeof_struct_iovec=3D8 = --enable-threads CXX=3Dpowerpc-linux-g++

make

make install

 

->This goes fine.  Puts it in the = right place and everything.

 

Then I go to APR-iconv – will be needed by = Log4CXX (doesn’t like the one in /usr/include?).

./configure = CC=3Dpowerpc-linux-gcc CXX=3Dpowerpc-linux-g++ --host=3Dpowerpc-linux --prefix=3D/tmp/target_filesystem/apr-iconv = --with-apr=3D/tmp/target_filesystem/apr

make

         &= nbsp;      ->This fails:

/bin/sh /tmp/target_filesystem/apr/build-1/libtool --silent --mode=3Dlink  powerpc-linux-gcc -g -O2   -DHAVE_CONFIG_H -DLINUX=3D2 = -D_REENTRANT -D_GNU_SOURCE   -I/tmp/apr-iconv-1.2.1/lib -I/tmp/apr-iconv-1.2.1/include  -I/tmp/target_filesystem/apr/include/apr-1     &= nbsp; -o apriconv -o apriconv iconv.lo iconv_stream.lo = ../lib/libapriconv-1.la  /tmp/target_filesystem/apr/lib/libapr-1.la -lcrypt  = -ldl

/tmp/target_filesystem/apr/lib/libapr-1.so: warning: the use of LEGACY `utimes' is discouraged, use = `utime'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_create'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_getspecific'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_detach'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_once'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_key_create'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_attr_setstacksize'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_sigmask'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_join'

/tmp/target_filesystem/apr/lib/libapr-1.so: undefined reference to `pthread_setspecific'

collect2: ld returned 1 = exit status

 

I tried adding in the LIBS=3D-lpthread to APR, but = that causes APR to fail the build.  Any ideas?  The “final” = step will to be getting APR-util to compile, utilizing the above components.  Something like this:

 

         &= nbsp;      ./configure CC=3Dpowerpc-linux-gcc CXX=3Dpowerpc-linux-g++ --host=3Dpowerpc-linux = –prefix=3D/tmp/target_filesystem/apr-util –with-iconv=3D/tmp/target_filesystem/apr-iconv = –with-apr=3D/tmp/target_filesystem/apr

 

Any ideas would be REALLY helpful.   I am = stumped!

 

:: Ryan Neal

------_=_NextPart_001_01CA996C.3127C692--