<div dir="ltr"><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">I'm working on an AddIn to use on Calc ( source:<a href="https://github.com/beothorn/ClojureCalc" style="color:rgb(27,121,189);text-decoration:none">https://github.com/beothorn/ClojureCalc</a> ) and I'm having a problem when compilind an idl using idlc. This addin used to compile without problems on an older libreoffice sdk (4.3 I think) but it upgraded to 5.0.2.2 together with my ubuntu and now it doesn't compile anymore. The error message isn't too helpful either because it points to a line that doesn't exist, or I am interpreting the error message wrong.</p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">Here's how I'm running idlc</p><pre class="" style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12px;padding:0px;color:inherit;border-radius:3px;border:0px;clear:both;background-color:transparent"><span class="" style="color:rgb(0,136,0)">/usr/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">bin</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idlc </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">C </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">O </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">home</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lucas</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">dev</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">build</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idl</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">urd </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">I </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">home</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lucas</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">dev</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">src </span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">I </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">usr</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idl </span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">home</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lucas</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">dev</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">src</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">com</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">github</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">beothorn</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">idl</span></code></pre><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">and the output</p><pre class="" style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12.025px;margin-top:0px;margin-bottom:18px;padding:2px;color:rgb(51,51,51);border-radius:4px;line-height:18px;border:1px solid rgb(136,136,136);white-space:pre-wrap;word-wrap:break-word;clear:both;background-color:rgb(245,245,245)"><code style="font-family:Menlo,Monaco,'Courier New',monospace;font-size:12px;padding:0px;color:inherit;border-radius:3px;border:0px;clear:both;background-color:transparent"><span class="" style="color:rgb(102,0,102)">Compiling</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(0,136,0)">/home/</span><span class="" style="color:rgb(0,0,0)">lucas</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">dev</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">src</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">com</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">github</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">beothorn</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">clojurecalc</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">ClojureCalc</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">idl
</span><span class="" style="color:rgb(102,102,0)"><</span><span class="" style="color:rgb(0,0,0)">command</span><span class="" style="color:rgb(102,102,0)">-</span><span class="" style="color:rgb(0,0,0)">line</span><span class="" style="color:rgb(102,102,0)">>:</span><span class="" style="color:rgb(0,102,102)">1</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">[</span><span class="" style="color:rgb(0,102,102)">62</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">62</span><span class="" style="color:rgb(102,102,0)">]</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,0,102)">Statement</span><span class="" style="color:rgb(0,0,0)"> can </span><span class="" style="color:rgb(0,0,136)">not</span><span class="" style="color:rgb(0,0,0)"> be parsed</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> syntax error</span><span class="" style="color:rgb(102,102,0)">,</span><span class="" style="color:rgb(0,0,0)"> unexpected $undefined  
</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">usr</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idl</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">com</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sun</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">star</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">uno</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">XInterface</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">idl</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">80</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">[</span><span class="" style="color:rgb(0,102,102)">42</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">42</span><span class="" style="color:rgb(102,102,0)">]</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,0,102)">Statement</span><span class="" style="color:rgb(0,0,0)"> can </span><span class="" style="color:rgb(0,0,136)">not</span><span class="" style="color:rgb(0,0,0)"> be parsed</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> definitions  
</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">usr</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idl</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">com</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sun</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">star</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">uno</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(102,0,102)">XInterface</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">idl</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">94</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">[</span><span class="" style="color:rgb(0,102,102)">5</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,102,102)">8</span><span class="" style="color:rgb(102,102,0)">]</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(102,0,102)">Statement</span><span class="" style="color:rgb(0,0,0)"> can </span><span class="" style="color:rgb(0,0,136)">not</span><span class="" style="color:rgb(0,0,0)"> be parsed</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> syntax error</span><span class="" style="color:rgb(102,102,0)">,</span><span class="" style="color:rgb(0,0,0)"> unexpected IDL_VOID  
</span><span class="" style="color:rgb(102,102,0)">(...</span><span class="" style="color:rgb(0,0,0)"> more </span><span class="" style="color:rgb(0,102,102)">14</span><span class="" style="color:rgb(0,0,0)"> errors </span><span class="" style="color:rgb(102,102,0)">...)</span><span class="" style="color:rgb(0,0,0)">  
</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">usr</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">bin</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idlc</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">bin</span><span class="" style="color:rgb(102,102,0)">:</span><span class="" style="color:rgb(0,0,0)"> detected </span><span class="" style="color:rgb(0,102,102)">16</span><span class="" style="color:rgb(0,0,0)"> errors</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">usr</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">lib</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">libreoffice</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">sdk</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">bin</span><span class="" style="color:rgb(102,102,0)">/</span><span class="" style="color:rgb(0,0,0)">idlc</span><span class="" style="color:rgb(102,102,0)">.</span><span class="" style="color:rgb(0,0,0)">bin </span><span class="" style="color:rgb(102,0,102)">Version</span><span class="" style="color:rgb(0,0,0)"> </span><span class="" style="color:rgb(0,102,102)">1.1</span></code></pre><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">but line 80 on /usr/lib/libreoffice/sdk/idl/com/sun/star/uno/XInterface.idl is a comment, so I don't know what is happening.</p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">The idl in questtion is this <a href="https://github.com/beothorn/ClojureCalc/blob/master/src/com/github/beothorn/clojurecalc/ClojureCalc.idl">https://github.com/beothorn/ClojureCalc/blob/master/src/com/github/beothorn/clojurecalc/ClojureCalc.idl</a><br></p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">I also have the same errors on this idl</p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)"><a href="https://github.com/beothorn/ClojureCalc/blob/master/src/com/github/beothorn/clojurecalc/XClojureCalc.idl">https://github.com/beothorn/ClojureCalc/blob/master/src/com/github/beothorn/clojurecalc/XClojureCalc.idl</a><br></p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">I don't know how to further investigate this error, or maybe the problem is obvious and I'm not seeing it. I would like some pointer to how to keep looking on what's happening, if possible.</p><p style="margin:0px 0px 14px;padding:0px 5px 5px 0px;border:none;font-size:14px;line-height:1.4;font-family:sans-serif;color:rgb(75,75,75)">Thanks</p></div>