Tuesday, October 15, 2013

 

Compile error in libwhat.o : "syntax error near unexpected token `(' "

Q: I've got a brand-new Linux host set up and trying to build OSE for the first time. The build fails immediately with this error:

--- Compiling ../../modules/src/libwhat.c for obj/sfk-linux/debug/libwhat.o
/bin/sh: -c: line 0: syntax error near unexpected token `('


A: Some OS hosts install without a hostname or host specified. This is especially true for VMWare hosts that are done using "quick install" for the guest OS (this particular problem was seen on a SUSE Linux Enterprise 11 guest). Instead of a hostname at the prompt, you'll see user@(none) or something similar. There is an OSE build flag for -DHOSTNAME that the shell doesn't handle very well when its "(none)" hence the error. Resolve it temporarily by exporting the HOSTNAME to something, and give the machine a permanent hostname in /etc for later.

Labels: , ,


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter