[KinoSearch] Compile 0.30_07 on FreeBSD 7
Peter Karman
peter at peknet.com
Fri Nov 13 22:49:04 PST 2009
Marvin Humphrey wrote on 11/13/09 2:43 PM:
>
> There should be a source file, _charm_try.c in your distro directory. It
> should contain the following source code:
>
> int main() { return 0; }
>
> For some reason, that's not compiling. Instead, we get this message:
>
> Syntax error: "(" unexpected
>
> Confirm that that file is there, and that it contains the source code it
> should.
I have a freebsd 7.2 install available and was able to reproduce. The problem
seems to be that the include path generated for compiling the _charm_try.c file
is a single '( ' and so bash croaks when trying to execute the cc command. If
you try and compile with just a simple:
cc _charm_try.c
it works with no problem.
I threw some fprintf to stderr in the (generated?)
charmonizer/gen/Charmonizer/Core/Compiler.c
file around lines 110-122 and got this output:
Creating os object...
Trying to find a bit-bucket a la /dev/null...
Trying to find a supported compiler...
Creating compiler object...
Trying to compile a small test file...
inc_dir: (
exe: cc _charm_try.c -o _charm_try -I (
-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK
-DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include
Syntax error: "(" unexpected
I assume the inc_dir values come from Perl Config, but I gave up trying to dig
backwards from here.
Hope that helps you some Marvin.
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the kinosearch
mailing list