Well, it&#39;s been two weeks and no responses, so I had to find out myself by learning a lot of cmake. Here I attach some code that will fix the issue:<br><br>Index: Plugins.cmake<br>===================================================================<br>

--- Plugins.cmake    (revisión: 2149)<br>+++ Plugins.cmake    (copia de trabajo)<br>@@ -3,13 +3,29 @@<br> # Last edited: 2009-09-17 09:34:24 by piumarta on <a href="http://ubuntu.piumarta.com">ubuntu.piumarta.com</a><br>
 <br>
 FILE (STRINGS ${src}/<a href="http://plugins.int">plugins.int</a> plugins_int)<br>-STRING (REGEX REPLACE &quot;.*= (.*)&quot; &quot;\\1&quot; plugins_int ${plugins_int})<br>-STRING (REPLACE &quot; &quot; &quot;;&quot; plugins_int ${plugins_int})<br>

+STRING (REGEX REPLACE &quot;.*=(.*)&quot; &quot;\\1&quot; plugins_int ${plugins_int})<br> <br>+SET (plugins_int_str None)<br>+SET (plugins_ext_str None)<br>+<br>+IF (plugins_int)<br>+  STRING (STRIP plugin_int ${plugins_int})<br>

+  SET (plugins_int_str ${plugins_int})<br>+  STRING (REPLACE &quot; &quot; &quot;;&quot; plugins_int ${plugins_int})<br>+ENDIF ()<br>+<br> FILE (STRINGS ${src}/plugins.ext plugins_ext)<br>-STRING (REGEX REPLACE &quot;.*= (.*)&quot; &quot;\\1&quot; plugins_ext ${plugins_ext})<br>

-STRING (REPLACE &quot; &quot; &quot;;&quot; plugins_ext ${plugins_ext})<br>+STRING (REGEX REPLACE &quot;.*=(.*)&quot; &quot;\\1&quot; plugins_ext ${plugins_ext})<br> <br>+IF (plugins_ext)<br>+  STRING (STRIP plugin_ext ${plugins_ext})<br>

+  SET (plugins_ext_str ${plugins_ext})<br>+  STRING (REPLACE &quot; &quot; &quot;;&quot; plugins_ext ${plugins_ext})<br>+ENDIF ()<br>+<br>+MESSAGE(STATUS internal plugins: &quot;${plugins_int_str}&quot;)<br>+MESSAGE(STATUS external plugins: &quot;${plugins_ext_str}&quot;)<br>

+<br> FILE (GLOB plugins_vm RELATIVE ${unix} ${unix}/vm-*)<br> <br> FILE_COPY (${bld}/disabledPlugins.c ${config}/disabledPlugins.c)<br><br>Regards,<br>            Javier.<br><br><div class="gmail_quote">On Thu, Feb 4, 2010 at 2:09 AM, melkyades <span dir="ltr">&lt;<a href="mailto:elpochodelagente@gmail.com">elpochodelagente@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Hi, I&#39;m trying to compile my own vm on linux (ubuntu 9.10, gcc 4.4.1, cmake<br>
2.8.0) and found that, after generating the C sources, configure script will<br>
fail in cmake if you don&#39;t use at least one internal and one external<br>
plugin. This seems get fixed if I use at least one internal plugin (anyone)<br>
and at least one external. Did anybody have this problem too??<br>
<br>
Here is a small part of the error message (the entire one is longer):<br>
<br>
...<br>
<br>
-- vm-sound-pulse: /usr/lib/libpulse-simple.so<br>
-- vm-sound-ALSA: /usr/include/alsa/asoundlib.h<br>
-- vm-sound-ALSA: /usr/lib/libasound.so<br>
-- vm-sound-Sun: sys/audioio.h not found<br>
-- vm-sound-Sun: sun/audioio.h not found<br>
-- vm-sound-Sun: /usr/include/stropts.h<br>
!! vm-sound-Sun disabled<br>
-- vm-sound-OSS: /usr/include/alsa/asoundlib.h<br>
-- vm-sound-OSS: /usr/lib/libasound.so<br>
!! vm-sound-MacOSX disabled<br>
CMake Error: Error in cmake code at<br>
/home/javier/st/squeak-svn/bld/#/CMakeLists.txt:16:<br>
Parse error.  Function missing ending &quot;)&quot;.  End of file reached.<br>
You have called ADD_LIBRARY for library Automatically without any source<br>
files. This typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library generated without any source files.<br>
This typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library makefile without any source files.<br>
This typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library include without any source files.<br>
This typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library for without any source files. This<br>
typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library internal without any source files.<br>
This typically indicates a problem with your CMakeLists.txt file<br>
You have called ADD_LIBRARY for library pluginsINTERNAL_PLUGINS without any<br>
source files. This typically indicates a problem with your CMakeLists.txt<br>
file<br>
CMake Warning (dev) at /home/javier/st/squeak-svn/bld/=/CMakeLists.txt:1<br>
(ADD_DEFINITIONS):<br>
  Syntax error in cmake code at<br>
<br>
    /home/javier/st/squeak-svn/bld/=/CMakeLists.txt:1<br>
<br>
  when parsing string<br>
<br>
    ${=_definitions}<br>
<br>
  syntax error, unexpected cal_SYMBOL, expecting } (16)<br>
<br>
  Policy CMP0010 is not set: Bad variable reference syntax is an error.  Run<br>
  &quot;cmake --help-policy CMP0010&quot; for policy details.  Use the cmake_policy<br>
  command to set the policy and suppress this warning.<br>
This warning is for project developers.  Use -Wno-dev to suppress it.<br>
<br>
CMake Warning (dev) at /home/javier/st/squeak-svn/bld/=/CMakeLists.txt:2<br>
(LINK_DIRECTORIES):<br>
  Syntax error in cmake code at<br>
<br>
    /home/javier/st/squeak-svn/bld/=/CMakeLists.txt:2<br>
<br>
  when parsing string<br>
<br>
    ${=_link_directories}<br>
<br>
  syntax error, unexpected cal_SYMBOL, expecting } (21)<br>
<br>
...<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://n4.nabble.com/unix-CMake-compilation-error-tp1462169p1462169.html" target="_blank">http://n4.nabble.com/unix-CMake-compilation-error-tp1462169p1462169.html</a><br>
Sent from the Squeak - VM mailing list archive at Nabble.com.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Javier Pimás<br>Ciudad de Buenos Aires<br>