From owner-freebsd-ports@FreeBSD.ORG Mon Jun 8 13:53:31 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 CD0BB106566B for ; Mon, 8 Jun 2009 13:53:31 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 89AA88FC17 for ; Mon, 8 Jun 2009 13:53:31 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 08 Jun 2009 09:53:31 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.10.5-GA) with ESMTP id PYL02678; Mon, 8 Jun 2009 09:53:30 -0400 (EDT) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 08 Jun 2009 09:53:31 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18989.6105.484074.889552@jerusalem.litteratus.org> Date: Mon, 8 Jun 2009 09:53:29 -0400 To: Alexander Leidinger In-Reply-To: <20090608143519.1866665ogux2b8g0@webmail.leidinger.net> 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> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr02.lnh.mail.rcn.net) Cc: ports@freebsd.org, Peter Jeremy , Robert Huff 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 13:53:32 -0000 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" then AC_MSG_ERROR([ byacc could not be found! Make sure byacc is in your path. ]) else YACC="${YACC}" YFLAGS="-d -v" AC_SUBST(YACC) AC_SUBST(YFLAGS) AC_DEFINE(AUTOMAKE_INVOKES_YACC,1,[Defined when automake runs yacc and renames the output files]) fi > > checking for acroread... /usr/local/bin/acroread > > ./configure: ${CFLAGS/...}: Bad substitution > > 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 Robert Huff