Return-Path: X-Original-To: apmail-apr-dev-archive@www.apache.org Delivered-To: apmail-apr-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B9FA3CFAF for ; Sat, 12 May 2012 12:18:16 +0000 (UTC) Received: (qmail 16959 invoked by uid 500); 12 May 2012 12:18:15 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 16675 invoked by uid 500); 12 May 2012 12:18:11 -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 16655 invoked by uid 99); 12 May 2012 12:18:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 12:18:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jonathanmelissant@gmail.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yw0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 May 2012 12:18:04 +0000 Received: by yhjj63 with SMTP id j63so4229176yhj.37 for ; Sat, 12 May 2012 05:17:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=oCG/3BZbqmcKQ2aasboQ1TLWpbYJdfgtgolOkMJQ1x8=; b=u3EA5bMtGwVkB95i0whWMe2adOo8zeDXFFRI8dbZqaKwoEIkpiQQCGLHsaRbgexFki SahXFyf2fDeih1g2lXcp4s55XQRkpNAn1Ck2LIuA8/znt3UqMcUAk/dv3fSIrfayM/Yg nHv255f9lHb1sSilWtSn0posaiV8M27otTqCJU2asn0hQ8f/ZsNxIhDsp4nBrlfSpV3e Q7rEo/Qp1BCTj9pFUFVbb9nfR+NA5K4kTtMGXZpjBntKq78omfKyXEojDvpIsRVU04C9 PCZ8W3puPjlWLjH2q1jad9ZPjehcRLJVJjz4+GGPOS/Cx8PM0ewfmjbSRG43Um2xhhWW slIQ== MIME-Version: 1.0 Received: by 10.236.192.198 with SMTP id i46mr1609197yhn.22.1336825063831; Sat, 12 May 2012 05:17:43 -0700 (PDT) Received: by 10.101.125.20 with HTTP; Sat, 12 May 2012 05:17:43 -0700 (PDT) In-Reply-To: References: <87y5p1gi5y.fsf@stat.home.lan> Date: Sat, 12 May 2012 14:17:43 +0200 Message-ID: Subject: APR for Texas Instruments C6x From: Jonathan Melissant To: Philip Martin , dev@apr.apache.org Content-Type: multipart/alternative; boundary=20cf305b11c00e76ba04bfd5d744 X-Virus-Checked: Checked by ClamAV on apache.org --20cf305b11c00e76ba04bfd5d744 Content-Type: text/plain; charset=ISO-8859-1 Hello I finally managed to compile the ARP shared library for the c6x architecture. However, I have done it with a very dirty workaround. First of all I call the configure with: ac_cv_file__dev_zero=yes ac_cv_func_setpgrp_void=yes apr_cv_process_shared_works=yes apr_cv_mutex_robust_shared=yes apr_cv_tcp_nodelay_with_cork=yes ac_cv_sizeof_struct_iovec=8 apr_cv_mutex_recursive=yes ac_enable_shared=yes ac_enable_static=no ./configure --enable-static --host=c6x --prefix=$(pwd)/output CC=c6x-uclinux-gcc AR=c6x-uclinux-ar IDL_CPP=cpp ARFLAGS=rv --disable-ipv6 OBJDUMP=c6x-uclinux-objdump build_libtool_libs=yes AS=c6x-uclinux-as NM=c6x-uclinux-nm deplibs_check_method="pass_all" STRIP=c6x-uclinux-strip RANLIB=c6x-uclinux-ranlib CFLAGS=" -pipe -Os " Once configuration is done I need to go into libtool file and edit the following: (old ---> new) build_libtool_libs=no --- > build_libtool_libs=yes deplibs_check_method="unknown" ---> deplibs_check_method="pass_all" library_names_spec="" --- > library_names_spec="\${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${shared_ext}\$major \$libname\${shared_ext}" then i run make && make install And voila! :) The problem here is that the host system (the c6x architecture) is not known to the configure script. In libtool, the host system is specified as follows: # The host system. host_alias=c6x host=tic6x-unknown-coff host_os=coff Maybe it's a good idea to add this to future builds? Jonathan --20cf305b11c00e76ba04bfd5d744 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello

I finally managed to compile the ARP shared library for the c6= x architecture.

However, I have done it with a very dirty workaround= .
First of all I call the configure with:

ac_cv_file__dev_zero=3D= yes ac_cv_func_setpgrp_void=3Dyes apr_cv_process_shared_works=3Dyes apr_cv_= mutex_robust_shared=3Dyes apr_cv_tcp_nodelay_with_cork=3Dyes ac_cv_sizeof_s= truct_iovec=3D8 apr_cv_mutex_recursive=3Dyes ac_enable_shared=3Dyes ac_enab= le_static=3Dno ./configure --enable-static --host=3Dc6x --prefix=3D$(pwd)/o= utput CC=3Dc6x-uclinux-gcc AR=3Dc6x-uclinux-ar IDL_CPP=3Dcpp ARFLAGS=3Drv -= -disable-ipv6 OBJDUMP=3Dc6x-uclinux-objdump build_libtool_libs=3Dyes AS=3Dc= 6x-uclinux-as NM=3Dc6x-uclinux-nm deplibs_check_method=3D"pass_all&quo= t; STRIP=3Dc6x-uclinux-strip RANLIB=3Dc6x-uclinux-ranlib CFLAGS=3D" -p= ipe -Os "

Once configuration is done I need to go into libtool file and edit the = following:

(old=A0 ---> new)

build_libtool_libs=3Dno --- &= gt; build_libtool_libs=3Dyes

deplibs_check_method=3D"unknown&qu= ot; ---> deplibs_check_method=3D"pass_all"

library_names_spec=3D"" --- > library_names_spec=3D"\= ${libname}\${release}\${shared_ext}\$versuffix \${libname}\${release}\${sha= red_ext}\$major \$libname\${shared_ext}"

then i run make &&= amp; make install

And voila! :)

The problem here is that the host system (the c6x = architecture) is not known to the configure script.
In libtool, the hos= t system is specified as follows:

# The host system.
host_alias= =3Dc6x
host=3Dtic6x-unknown-coff
host_os=3Dcoff
=A0
Maybe it's a good= idea to add this to future builds?

Jonathan
--20cf305b11c00e76ba04bfd5d744--