From owner-freebsd-ports@FreeBSD.ORG Mon Jun 8 14:40:34 2009 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68656106564A for ; Mon, 8 Jun 2009 14:40:34 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id E9FCE8FC1A for ; Mon, 8 Jun 2009 14:40:33 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2E3AC.dip.t-dialin.net [217.226.227.172]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 519BA844024; Mon, 8 Jun 2009 16:40:18 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 369BE29B175; Mon, 8 Jun 2009 16:40:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1244472015; bh=wh/xDBEYZD3h9BgIWcQ56XTHOB9cjyf/fqzlytK1DlU=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=02S/EKOlitorJUJ0ixad1Bw0hqeUP4R1TIpMj+GWnyd3wYWC0ArWwUgGdbLaq6Ztu ZhnffbmexVP4GO/hhvlUnKVmIFWYUkT2qCSHKCkOcZ5a6Y5VNAC2hFgqe5jYjy+jxs WaW4glAk59IBh5hGhg5/pKfIIH1C62tcpiMgdxpQoiVD43iSuOGhD8x0vA46Jvv5eV yv4wE5O1iImwMNkkqyxX7/2E1ld5MNPFqVjhv//BXgr9MIOVRdcozzj6LmywRQRkxl n/wgQg/6ZcdWH1Lkg440jop/SlAR+Ael9KMJAKJ7v0jvtPQFOMiGYbSzyFkxEE0tG5 6aA7T3BJIVLSQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id n58EeEjY072934; Mon, 8 Jun 2009 16:40:14 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 08 Jun 2009 16:40:14 +0200 Message-ID: <20090608164014.131052xgwiww9bks@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 08 Jun 2009 16:40:14 +0200 From: Alexander Leidinger To: Robert Huff References: <18988.39724.572280.687111@jerusalem.litteratus.org> <20090608082930.GD9529@server.vk2pj.dyndns.org> <18988.65260.635443.439491@jerusalem.litteratus.org> <20090608143519.1866665ogux2b8g0@webmail.leidinger.net> <18989.6105.484074.889552@jerusalem.litteratus.org> In-Reply-To: <18989.6105.484074.889552@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.3.3 / FreeBSD-8.0 X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 519BA844024.7ABF4 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=3.589, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, J_CHICKENPOX_92 0.60, URIBL_BLACK 1.96, URIBL_SBL 2.47) X-EBL-MailScanner-SpamScore: sss X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1245076819.0198@03pMgOUSgqComH+EVHQy9g X-EBL-Spam-Status: No Cc: ports@freebsd.org, Peter Jeremy Subject: Re: porting: Linux to Freebsd X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jun 2009 14:40:34 -0000 Quoting Robert Huff (from Mon, 8 Jun 2009 09:53:29 -0400): > > Alexander Leidinger writes: > >> > First problem: >> >> Looks like bash-isms in configure. > > for (i = 0; i < 10; i++) hit_forehead_with_desk(); > > I had already figured out replacing "make" with "gmake"; this > should have been obvious. > >> >> > When following the instructions here >> > "http://ctp2.darkdust.net/anonsvn/branches/linux/doc/README.linux" I >> > get to step 2 ("configure") and get this: >> > >> > test: x/usr/bin/byacc: unexpected operator >> >> Some possibilities: >> - In the test for byacc they maybe forgot quotes to protect an >> empty value. >> - wrong operator used in test >> - unknown bashism > > Right: I re-ran under bash, and got the same problems. > Looking at configure.ac, I see: > > AC_PATH_PROG(YACC,byacc,no) > if test "x$YACC" == "xno" This should be a "=", not a "==". >> Looks like bashism. Someone tries to substitute something in CFLAGS, >> but this kind of advanced substitution is not supported in a posix >> compliant sh. You can test this assumption by installing bash and >> runnging "bash ./configure" instead. If it is true, you need to fix >> configure.in or configure.ac. > > Relevant bit is: > > for ac_remove_CFLAG in "-O1" "-O2" "-O3" ; do > CFLAGS=${CFLAGS//${ac_remove_CFLAG}/} > CPPFLAGS=${CPPFLAGS//${ac_remove_CFLAG}/} > CXXFLAGS=${CXXFLAGS//${ac_remove_CFLAG}/} > done Quick try: CFLAGS=`echo $CFLAGS | sed -e 's:-O[123]::g'` Bye, Alexander. -- MANAGER: A man known for giving great meeting. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137