<div dir="ltr"><div class="gmail_default" style="font-size:small">Thanks, Ralph for "gentle-ing" me through this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When I follow the instructions I get a fatal error in make. Can you recommend what to do next? I'm stumped/</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default" style="font-size:small">tevs@tevs-SEi:~/HETP/sane_install_220525a/backends-master$ <font color="#ff9900">make</font><br>echo UNKNOWN > .version-t && mv .version-t .version<br>make all-recursive<br>make[1]: Entering directory '/home/tevs/HETP/sane_install_220525a/backends-master'<br>Making all in include<br>make[2]: Entering directory '/home/tevs/HETP/sane_install_220525a/backends-master/include'<br>make[2]: Nothing to be done for 'all'.<br>make[2]: Leaving directory '/home/tevs/HETP/sane_install_220525a/backends-master/include'<br>Making all in lib<br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default" style="font-size:small"><i>[...a whole lot of stuff eleded here...]</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_default" style="font-size:small">/bin/bash ../libtool --silent --tag=CC --mode=link gcc -Wall -Wextra -pedantic -g -O2 -Wl,-z,defs -rpath '/usr/local/lib/sane' -version-number UNKNOWN:: -module -o <a href="http://libsane-abaton.la">libsane-abaton.la</a> libsane_abaton_la-abaton-s.lo ../lib/<a href="http://liblib.la">liblib.la</a> <a href="http://libabaton.la">libabaton.la</a> ../sanei/sanei_init_debug.lo ../sanei/sanei_constrain_value.lo ../sanei/sanei_config.lo ../sanei/sanei_config2.lo sane_strstatus.lo ../sanei/sanei_scsi.lo <br><font color="#ff0000">../libtool: line 1152: UNKNOWN + : syntax error: operand expected (error token is "+ ")</font><br>Makefile:4452: recipe for target '<a href="http://libsane-abaton.la">libsane-abaton.la</a>' failed<br>make[3]: *** [<a href="http://libsane-abaton.la">libsane-abaton.la</a>] Error 1<br>make[3]: Leaving directory '/home/tevs/HETP/sane_install_220525a/backends-master/backend'<br>Makefile:3994: recipe for target 'all' failed<br>make[2]: *** [all] Error 2<br>make[2]: Leaving directory '/home/tevs/HETP/sane_install_220525a/backends-master/backend'<br>Makefile:607: recipe for target 'all-recursive' failed<br>make[1]: *** [all-recursive] Error 1<br>make[1]: Leaving directory '/home/tevs/HETP/sane_install_220525a/backends-master'<br>Makefile:497: recipe for target 'all' failed<br>make: *** [all] Error 2<br></div></blockquote></div><div class="gmail_default" style="font-size:small"><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="verdana, sans-serif">-- Wes</font></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 24, 2022 at 11:29 PM Ralph Little <<a href="mailto:skelband@gmail.com">skelband@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi,<br>
<br>
<div>On 2022-05-24 22:14, Wes Rishel wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">I have a new
Ubuntu 18.04 system and I need to add a one-line patch to
fujitsu.h that Allan Noah has previously given us. And then I
presumably need to configure and make the package (?)</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Ubuntu seems
to have 1.0..31 installed but I am thinking it might be safer
to get a fresh copy particular since I have gotten part way
through a couple of procedures without luck.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">There are
instructions from several sources all of which sound
authoritative and give different sources, methods of
downloading, etc. I have tried following a couple of them and
hit various issues which might be obvious to a more
experienced Linuxian.</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">I think these
are the questions I need answered and my tentative answer.
(Please advise me if I'm asking the wrong questions.)</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><b>Q1: What
is the best way of downloading and building Sane 1.0.31
including the source files?</b></div>
<div class="gmail_default" style="font-size:small">I want to be
sure to get the stable version rather than a snapshot.</div>
<div class="gmail_default" style="font-size:small">(Currently, I
am thinking that cloning <a href="https://gitlab.com/sane-project/backends" target="_blank">https://gitlab.com/sane-project/backends</a>
would be the appropriate approach.)</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><b>Q2: Do I
need to remove the existing SANE that came with Ubuntu
before i start this process?</b></div>
<div class="gmail_default" style="font-size:small"><b><br>
</b></div>
<div class="gmail_default" style="font-size:small"><b>Q3: Where
should I put it or where does the installer put it?</b></div>
<div class="gmail_default" style="font-size:small">Depending on
the download source I either pick a destination or it
automatically just puts it somewhere. In the first case is
there a preferred directory in the Ubuntu file structure? If
the recommended approach turns out to be apt, apt-get, or some
other package installer, how can I find that? (I am assuming
something like "sudo find / -iname libsane-dll* will find all
versions but how do I know I am looking at the version I just
installed rather than the preinstalled version?</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><b>Q4: What
is the procedure after downloading the system?</b></div>
<div class="gmail_default" style="font-size:small">I am assuming
that <a href="https://gitlab.com/sane-project/backends/-/blob/master/INSTALL.linux" target="_blank">https://gitlab.com/sane-project/backends/-/blob/master/INSTALL.linux</a>
is tje definitive source. Can it really be as easy as </div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default">
<blockquote style="font-size:small;margin:0px 0px 0px 40px;border:none;padding:0px">
<div class="gmail_default" style="font-size:small">$
./autogen.sh # only if you just cloned the git
repository<br>
$ ./configure<br>
$ make<br>
$ make install<br>
</div>
</blockquote>
<div class="gmail_default"><br>
</div>
Or as a practical matter, do I really need to follow one of
the more complex procedures in that document?</div>
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><b>Q5: Editing in my patch.</b></div>
<div class="gmail_default" style="font-size:small">I assume that
I can do the build, see that it works okay, and then edit in
my patch and rebuild. I assume that I skip the autogen.sh when
rebuilding?</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small"><b>Q5: Do I
need to do this as root?</b></div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">Thanks in
advance for your attention and advice!</div>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div>
<div dir="ltr">
<div dir="ltr"><font face="verdana, sans-serif">-- Wes</font></div>
</div>
</div>
</div>
</blockquote>
<br>
My advice for you really depends on what you want to do with this
header file change.<br>
<br>
If you just need to try the change out to see if it works, then I
would build SANE with the change, installing it to a temporary area
where you can test the newly generated fujitsu backend.<br>
<br>
1. Clone the repo from
<a href="https://gitlab.com/sane-project/backends/-/tree/master" target="_blank">https://gitlab.com/sane-project/backends/-/tree/master</a><br>
2. Make the change to the header file.<br>
3. Get the build dependencies using "sudo apt build-dep
sane-backends" (I think you have to have the source repos enabled).<br>
4. Do the build steps that you mention above but when you do the
./configure, specify a temporary location: "./configure --prefix
$HOME/sane-install" or whereever you would like the install to go
to. The backend files will go to $HOME/sane-install/lib/sane in this
case.<br>
5. In a terminal, set LD_LIBRARY_PATH to load libraries from the
temporary area: "export LD_LIBRARY_PATH=$HOME/sane-install/lib/sane"<br>
6. Run your favourite frontend from the terminal, e.g. xsane<br>
7. Test the change.<br>
<br>
If the change is good, then we can add it to the backend repo and
you can use the SANE git PPA here:
<a href="https://launchpad.net/~sane-project/+archive/ubuntu/sane-git" target="_blank">https://launchpad.net/~sane-project/+archive/ubuntu/sane-git</a><br>
We are still generating builds for Bionic since it is a LTS release.<br>
<br>
Cheers,<br>
Ralph<br>
<br>
<br>
</div>
</blockquote></div>