[sane-devel] New build system: make dist fails

Chris Bagwell chris at cnpbagwell.com
Sun Mar 1 02:24:17 UTC 2009


Technically, there is no failure listed below.  It looks as if it 
created the tar.gz file just fine.  Those are just warning messages from 
the java compiler.

But I see now that the way I did the makefiles that 
"backend/dll-preload.h" gets needlessly created during "make dist" and 
that the java class files get compiled; also needlessly.

The first item is probably not worth fixing but the second item is a 
must fix since not everyone that may wish to run "make dist" will have 
java compiler installed. I'll fix that asap.

On the topic of totally dropping japi,  I can only provide one cent...  
The pre-automake makefiles weren't able to compile on my box originally 
so probably not many (anyone?) was really using it for a while.  I had 
to make a few trivial changes to specify classpath paths to get them to 
work. 

I also wasn't able to really test that the java apps were even working.  
I could run them and see it was correctly initializing sane backend but 
then it would error out and quit.  Ultimately I couldn't figure out how 
to make it use the "test" backend and I didn't have a real scanner set 
up at the time.

Chris

m. allan noah wrote:
> is it time to dump japi? comments anyone?
>
> allan
>
> On Sat, Feb 28, 2009 at 11:55 AM, Louis Lagendijk
> <louis at lagendijk.xs4all.nl> wrote:
>   
>> hi
>> Running a make dist on a freshly configured CVS tree bugs out with the
>> following:
>> bash-3.2$ make dist
>> { test ! -d sane-backends-1.1.0-cvs || { find sane-backends-1.1.0-cvs
>> -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr
>> sane-backends-1.1.0-cvs; }; }
>> test -d sane-backends-1.1.0-cvs || mkdir sane-backends-1.1.0-cvs
>> list='include lib sanei backend frontend tools doc po japi testsuite';
>> for subdir in $list; do \
>>          if test "$subdir" = .; then :; else \
>>            test -d "sane-backends-1.1.0-cvs/$subdir" \
>>            || /bin/mkdir -p "sane-backends-1.1.0-cvs/$subdir" \
>>            || exit 1; \
>>            distdir=`CDPATH="${ZSH_VERSION+.}:" && cd sane-backends-1.1.0-cvs
>> && pwd`; \
>>            top_distdir=`CDPATH="${ZSH_VERSION+.}:" && cd
>> sane-backends-1.1.0-cvs && pwd`; \
>>            (cd $subdir && \
>>              make  \
>>                top_distdir="$top_distdir" \
>>                distdir="$distdir/$subdir" \
>>                am__remove_distdir=: \
>>                am__skip_length_check=: \
>>                distdir) \
>>              || exit 1; \
>>          fi; \
>>        done
>> make[1]: Entering directory
>> `/home/home1/louis/bjnp/sane-backends/include'
>> make[1]: Leaving directory
>> `/home/home1/louis/bjnp/sane-backends/include'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/lib'
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/lib'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/sanei'
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/sanei'
>> make[1]: Entering directory
>> `/home/home1/louis/bjnp/sane-backends/backend'
>> make[1]: Leaving directory
>> `/home/home1/louis/bjnp/sane-backends/backend'
>> make[1]: Entering directory
>> `/home/home1/louis/bjnp/sane-backends/frontend'
>> make[1]: Leaving directory
>> `/home/home1/louis/bjnp/sane-backends/frontend'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/tools'
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/tools'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/doc'
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/doc'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/po'
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/po'
>> make[1]: Entering directory `/home/home1/louis/bjnp/sane-backends/japi'
>> . javac -d .    SaneDevice.java SaneOption.java SaneRange.java Sane.java
>> SaneParameters.java ScanIt.java ImageCanvas.java ImageCanvasClient.java
>> Test.java Jscanimage.java
>> ----------
>> 1. WARNING in ImageCanvas.java (at line 57)
>>        public class ImageCanvas extends Canvas
>>                     ^^^^^^^^^^^
>> The serializable class ImageCanvas does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> ----------
>> 2. WARNING in Jscanimage.java (at line 50)
>>        import java.awt.image.ImageConsumer;
>>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>> The import java.awt.image.ImageConsumer is never used
>> ----------
>> 3. WARNING in Jscanimage.java (at line 51)
>>        import java.awt.image.ColorModel;
>>               ^^^^^^^^^^^^^^^^^^^^^^^^^
>> The import java.awt.image.ColorModel is never used
>> ----------
>> 4. WARNING in Jscanimage.java (at line 63)
>>        public class Jscanimage extends Frame implements WindowListener,
>>                     ^^^^^^^^^^
>> The serializable class Jscanimage does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 5. WARNING in Jscanimage.java (at line 103)
>>        prog.show();
>>        ^^^^^^^^^^^
>> The method show() from the type Window is deprecated
>> ----------
>> 6. WARNING in Jscanimage.java (at line 591)
>>        dlg.show();             // Wait for result.
>>        ^^^^^^^^^^
>> The method show() from the type Dialog is deprecated
>> ----------
>> 7. WARNING in Jscanimage.java (at line 712)
>>        class SaneCheckBox extends JCheckBox implements ActionListener,
>>              ^^^^^^^^^^^^
>> The serializable class SaneCheckBox does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 8. WARNING in Jscanimage.java (at line 759)
>>        class SaneSlider extends JPanel implements SaneComponent,
>> ChangeListener
>>              ^^^^^^^^^^
>> The serializable class SaneSlider does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 9. WARNING in Jscanimage.java (at line 824)
>>        class FixedSaneSlider extends SaneSlider
>>              ^^^^^^^^^^^^^^^
>> The serializable class FixedSaneSlider does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 10. WARNING in Jscanimage.java (at line 887)
>>        class SaneButton extends JButton implements ActionListener
>>              ^^^^^^^^^^
>> The serializable class SaneButton does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 11. WARNING in Jscanimage.java (at line 919)
>>        abstract class SaneComboBox extends JComboBox
>>                       ^^^^^^^^^^^^
>> The serializable class SaneComboBox does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 12. WARNING in Jscanimage.java (at line 959)
>>        class SaneStringBox extends SaneComboBox
>>              ^^^^^^^^^^^^^
>> The serializable class SaneStringBox does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 13. WARNING in Jscanimage.java (at line 1007)
>>        class SaneIntBox extends SaneComboBox
>>              ^^^^^^^^^^
>> The serializable class SaneIntBox does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 14. WARNING in Jscanimage.java (at line 1061)
>>        class SaneFixedBox extends SaneComboBox
>>              ^^^^^^^^^^^^
>> The serializable class SaneFixedBox does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 15. WARNING in Jscanimage.java (at line 1117)
>>        class SaneTextField extends JTextField implements SaneComponent
>>              ^^^^^^^^^^^^^
>> The serializable class SaneTextField does not declare a static final
>> serialVersionUID field of type long
>> ----------
>> 15 problems (15 warnings)echo timestamp > classdist_noinst.stamp
>> javah -jni -cp . Sane
>> make[1]: Leaving directory `/home/home1/louis/bjnp/sane-backends/japi'
>> make[1]: Entering directory
>> `/home/home1/louis/bjnp/sane-backends/testsuite'
>> make[1]: Leaving directory
>> `/home/home1/louis/bjnp/sane-backends/testsuite'
>> find sane-backends-1.1.0-cvs -type d ! -perm -777 -exec chmod a+rwx {}
>> \; -o \
>>          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
>>          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
>>          ! -type d ! -perm -444
>> -exec /bin/sh /home/home1/louis/bjnp/sane-backends/install-sh -c -m a+r
>> {} {} \; \
>>        || chmod -R a+r sane-backends-1.1.0-cvs
>> tardir=sane-backends-1.1.0-cvs
>> && /bin/sh /home/home1/louis/bjnp/sane-backends/missing --run tar chof -
>> "$tardir" | GZIP=--best gzip -c >sane-backends-1.1.0-cvs.tar.gz
>> { test ! -d sane-backends-1.1.0-cvs || { find sane-backends-1.1.0-cvs
>> -type d ! -perm -200 -exec chmod u+w {} ';' && rm -fr
>> sane-backends-1.1.0-cvs; }; }
>> bash-3.2$
>>
>>
>> best regards, Louis
>>
>>
>> --
>> sane-devel mailing list: sane-devel at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
>> Unsubscribe: Send mail with subject "unsubscribe your_password"
>>             to sane-devel-request at lists.alioth.debian.org
>>
>>     
>
>
>
>   




More information about the sane-devel mailing list