Quoting Robert Huff <roberth...@rcn.com> (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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"