<div><div>Ok, I understand, but the error it spits out is deceiving.</div><div><br></div><div>It's in fact complaining the complied classes are for java >= 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 '--target 1.5' option to javac and continue compiling with 1.6</div><div>3. change the spec file to require java >= 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"><<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>></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 <<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>>, <a href="tel:%5B20120224%20-%2009" value="+12012022409">[20120224 - 09</a>:25:29]<br>
<div class="im"><br>
> I think it's a package problem and specifically it's<br>
><br>
> /usr/lib/rpm/brp-check-bytecode-version<br>
><br>
> which is triggering the fail. Is there a java-specific param in the<br>
> spec file?<br>
<br>
</div>Not that I know of.<br>
<div class="im"><br>
> 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&package=mapserver&project=Application%3AGeo&rev=a6a132713f06dd4c534c92cacefbd59a" target="_blank">https://build.opensuse.org/package/view_file?file=mapserver.spec&package=mapserver&project=Application%3AGeo&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>
> On Fri, Feb 24, 2012 at 8:46 AM, Stephan Holl<br>
> <<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>>wrote:<br>
><br>
> > Hello Umberto,<br>
> ><br>
> > Umberto Nicoletti <<a href="mailto:umberto.nicoletti@gmail.com">umberto.nicoletti@gmail.com</a>>, [20120223 -<br>
> > 21:24:46]<br>
> ><br>
> > > Did check and I was able to successfully build svn trunk with jdk<br>
> > > 1.6.29. Can you give more details or logs?<br>
> ><br>
> > Good to know.<br>
> ><br>
> > I placed the logs here:<br>
> > <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>
> ><br>
> > It uses openjdk 1.6.x for building. The build-process seems fine,<br>
> > what I am unsure about is the error-message. Is this a<br>
> > mapserver-specific error-message or a packaging-problem.<br>
> ><br>
> > Best regards<br>
> ><br>
> > Stephan<br>
> ><br>
> ><br>
> > > ><br>
> > > >> Hello devs,<br>
> > > >><br>
> > > >> using OpenSuse-Buildservice for building MapServer 6.0.1 on<br>
> > > >> SLES_11-SP1, the build process outputs the following:<br>
> > > >><br>
> > > >> ERROR: the files below contain java bytecode for something<br>
> > > >> later than java 1.5,<br>
> > > >> ERROR: please set the javac target to 1.5 or lower.<br>
> > > >><br>
> > > >> Does that mean, that java 1.5 or lower is required for java<br>
> > > >> mapscript?<br>
> > > >><br>
> > > >><br>
> > > >> Not that I know. I will try to build svn trunk with 1.6 today<br>
> > > >> and let you<br>
> > > > know.<br>
> > > ><br>
> > > > Umberto<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > >> TIA<br>
> > > >><br>
> > > >> Stephan<br>
> > > >><br>
> > > >> --<br>
> > > >> Stephan Holl <<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>> | Tel.: <a href="tel:%2B49%20%280%29541-33" value="+4954133">+49 (0)541-33</a><br>
> > > >> 508 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG<br>
> > > >> Osnabrück - HR B 18998 Geschäftsführer: Frank Koormann,<br>
> > > >> Bernhard Reiter, Dr. Jan-Oliver Wagner<br>
> > > >><br>
> > > ><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Stephan Holl <<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>> | Tel.: <a href="tel:%2B49%20%280%29541-33%20508" value="+4954133508">+49 (0)541-33 508</a><br>
> > 3663 Intevation GmbH, Neuer Graben 17, 49074 OS | AG Osnabrück -<br>
> > HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr.<br>
> > Jan-Oliver Wagner<br>
> ><br>
<br>
<br>
<br>
--<br>
Stephan Holl <<a href="mailto:stephan.holl@intevation.de">stephan.holl@intevation.de</a>> | 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>