<div><div>Ok, I understand, but the error it spits out is deceiving.</div><div><br></div><div>It&#39;s in fact complaining the complied classes are for java &gt;= 1.6 and this goes against the spec file which only requires 1.5 or later.</div>
<div><br></div><div>Work around it by:</div><div><br></div><div>1. using 1.5 to compile mapscript</div><div>2. or add the &#39;--target 1.5&#39; option to javac and continue compiling with 1.6</div><div>3. change the spec file to require java &gt;= 1.6</div>
<div><br></div><div>Cheers,</div><div>Umberto </div><div><br></div><div><br></div><br><div class="gmail_quote">On Fri, Feb 24, 2012 at 10:10 AM, Stephan Holl <span dir="ltr">&lt;<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Umberto,<br>
<br>
Umberto Nicoletti &lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt;, <a href="tel:%5B20120224%20-%2009" value="+12012022409">[20120224 - 09</a>:25:29]<br>
<div class="im"><br>
&gt; I think it&#39;s a package problem and specifically it&#39;s<br>
&gt;<br>
&gt; /usr/lib/rpm/brp-check-bytecode-version<br>
&gt;<br>
&gt; which is triggering the fail. Is there a java-specific param in the<br>
&gt; spec file?<br>
<br>
</div>Not that I know of.<br>
<div class="im"><br>
&gt; I can take a look at the spec file if you want.<br>
<br>
</div>You can find it here:<br>
<a href="https://build.opensuse.org/package/view_file?file=mapserver.spec&amp;package=mapserver&amp;project=Application%3AGeo&amp;rev=a6a132713f06dd4c534c92cacefbd59a" target="_blank">https://build.opensuse.org/package/view_file?file=mapserver.spec&amp;package=mapserver&amp;project=Application%3AGeo&amp;rev=a6a132713f06dd4c534c92cacefbd59a</a><br>

<br>
Thanks for looking into this.<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888"><br>
        Stephan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
&gt; On Fri, Feb 24, 2012 at 8:46 AM, Stephan Holl<br>
&gt; &lt;<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Hello Umberto,<br>
&gt; &gt;<br>
&gt; &gt; Umberto Nicoletti &lt;<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>&gt;, [20120223 -<br>
&gt; &gt; 21:24:46]<br>
&gt; &gt;<br>
&gt; &gt; &gt; Did check and I was able to successfully build svn trunk with jdk<br>
&gt; &gt; &gt; 1.6.29. Can you give more details or logs?<br>
&gt; &gt;<br>
&gt; &gt; Good to know.<br>
&gt; &gt;<br>
&gt; &gt; I placed the logs here:<br>
&gt; &gt; <a href="ftp://ftp.intevation.de/users/stephan/mapserver/javac-1.6-errors.txt" target="_blank">ftp://ftp.intevation.de/users/stephan/mapserver/javac-1.6-errors.txt</a><br>
&gt; &gt;<br>
&gt; &gt; It uses openjdk 1.6.x for building. The build-process seems fine,<br>
&gt; &gt; what I am unsure about is the error-message. Is this a<br>
&gt; &gt; mapserver-specific error-message or a packaging-problem.<br>
&gt; &gt;<br>
&gt; &gt; Best regards<br>
&gt; &gt;<br>
&gt; &gt;        Stephan<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; Hello devs,<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; using OpenSuse-Buildservice for building MapServer 6.0.1 on<br>
&gt; &gt; &gt; &gt;&gt; SLES_11-SP1, the build process outputs the following:<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;  ERROR: the files below contain java bytecode for something<br>
&gt; &gt; &gt; &gt;&gt; later than java 1.5,<br>
&gt; &gt; &gt; &gt;&gt;  ERROR: please set the javac target to 1.5 or lower.<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Does that mean, that java 1.5 or lower is required for java<br>
&gt; &gt; &gt; &gt;&gt; mapscript?<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; Not that I know. I will try to build svn trunk with 1.6 today<br>
&gt; &gt; &gt; &gt;&gt; and let you<br>
&gt; &gt; &gt; &gt; know.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Umberto<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;&gt; TIA<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt;        Stephan<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;&gt; --<br>
&gt; &gt; &gt; &gt;&gt; Stephan Holl &lt;<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>&gt; | Tel.: <a href="tel:%2B49%20%280%29541-33" value="+4954133">+49 (0)541-33</a><br>
&gt; &gt; &gt; &gt;&gt; 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG<br>
&gt; &gt; &gt; &gt;&gt; Osnabrück - HR B 18998 Geschäftsführer:  Frank Koormann,<br>
&gt; &gt; &gt; &gt;&gt; Bernhard Reiter, Dr. Jan-Oliver Wagner<br>
&gt; &gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Stephan Holl &lt;<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>&gt; | Tel.: <a href="tel:%2B49%20%280%29541-33%20508" value="+4954133508">+49 (0)541-33 508</a><br>
&gt; &gt; 3663 Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück -<br>
&gt; &gt; HR B 18998 Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr.<br>
&gt; &gt; Jan-Oliver Wagner<br>
&gt; &gt;<br>
<br>
<br>
<br>
--<br>
Stephan Holl &lt;<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>&gt; | Tel.: <a href="tel:%2B49%20%280%29541-33%20508%203663" value="+49541335083663">+49 (0)541-33 508 3663</a><br>
Intevation GmbH, Neuer Graben 17, 49074 OS  |  AG Osnabrück - HR B 18998<br>
Geschäftsführer:  Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner<br>
</div></div></blockquote></div><br></div>