Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FE169C7F for ; Mon, 5 Mar 2012 14:33:44 +0000 (UTC) Received: (qmail 29009 invoked by uid 500); 5 Mar 2012 14:33:41 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28979 invoked by uid 500); 5 Mar 2012 14:33:41 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 28971 invoked by uid 99); 5 Mar 2012 14:33:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 14:33:41 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=SPF_PASS,SUBJ_OBFU_PUNCT_FEW X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of henrik.strand@axis.com designates 195.60.68.13 as permitted sender) Received: from [195.60.68.13] (HELO ra.se.axis.com) (195.60.68.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2012 14:33:36 +0000 Received: from localhost (localhost [127.0.0.1]) by ra.se.axis.com (Postfix) with ESMTP id C099C1672EB for ; Mon, 5 Mar 2012 15:33:13 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ra.se.axis.com Received: from ra.se.axis.com ([127.0.0.1]) by localhost (ra.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BUuZFzA7qGri for ; Mon, 5 Mar 2012 15:33:12 +0100 (CET) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by ra.se.axis.com (Postfix) with ESMTP id 8FF5F1672ED for ; Mon, 5 Mar 2012 15:33:12 +0100 (CET) Received: from xmail2.se.axis.com (xmail2.se.axis.com [10.0.5.74]) by thoth.se.axis.com (Postfix) with ESMTP id 891CF3406B for ; Mon, 5 Mar 2012 15:33:12 +0100 (CET) Received: from [10.93.81.1] (10.93.81.1) by xmail2.se.axis.com (10.0.5.74) with Microsoft SMTP Server (TLS) id 8.2.176.0; Mon, 5 Mar 2012 15:33:12 +0100 From: Henrik Strand To: Content-Type: text/plain; charset="UTF-8" Date: Mon, 5 Mar 2012 15:30:35 +0100 Message-ID: <1330957835.8995.18.camel@lnxhenrikst.se.axis.com> MIME-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] gen_test_char: cannot execute binary file Hi! When porting/cross-compiling the Apache HTTP Server the build fails with the following error message: "/bin/sh: ./gen_test_char: cannot execute binary file". This is due to that the gen_test_char is compiled with the cross-compiler but executed on the build system. This error has been around for 10 years or so, but I could not find an error report on this issue so I created one (in May, 2011): https://issues.apache.org/bugzilla/show_bug.cgi?id=51257 There exists an old (2003-08-13) patch (http://marc.info/?l=apache-httpd-dev&m=106150997309208&w=2) for this error but I do not think that it was integrated. Another patch (http://svn.apache.org/viewvc/httpd/httpd/trunk/server/gen_test_char.c?r1=758929&r2=795438&pathrev=1001398&diff_format=h) has recently been integrated to simplify cross-compilation. However, this patch does not solve the gen_test_char cross-compiling issue. A known workaround is to: 1. Cross-compile and wait for the build to fail. 2. Compile for build system and copy the gen_test_char binary to the cross-compiled build folder 3. Run make a second time for the cross-compiled system However, since I'm about to automate the build process this workaround is not sufficient for me. It seems strange that this error has been around for so long time so I'm wondering if the Httpd build system does include some way to generate a correct gen_test_char file when cross-compiling? Thanks in advance. Kind Regards, Henrik --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org