porting: Linux to Freebsd

Alexander Leidinger Alexander at Leidinger.net
Mon Jun 8 12:35:31 UTC 2009


Quoting Robert Huff <roberthuff at rcn.com> (from Mon, 8 Jun 2009  
08:07:08 -0400):

> 	First problem:

Looks like bash-isms in configure.

> 	When following the instructions here
> "http://ctp2.darkdust.net/anonsvn/branches/linux/doc/README.linux" I
> get to step 2 ("configure") and get this:
>
> appending configuration tag "F77" to libtool
> checking for flex... flex
> checking lex output file root... lex.yy
> checking lex library... none needed
> checking whether yytext is a pointer... no
> checking for byacc... /usr/bin/byacc
> 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

> checking for unzip... /usr/local/bin/unzip
> test: x/usr/local/bin/unzip: unexpected operator

The same as above.

[...]
> checking for acroread... /usr/local/bin/acroread
> ./configure: ${CFLAGS/...}: Bad substitution

Looks liek 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.

Bye,
Alexander.

-- 
This unit... must... survive.

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-ports mailing list