[sane-devel] Problem building sane-backends-1.0.7 under Solaris 8, gcc 2.95.2

Craig Dewick cdewick@sunshack.org
Fri, 5 Apr 2002 01:29:51 +1000 (EST)


Hello everyone,

Recently I have obtained a used Microtek Scanmaker-III SCSI scanner and
I'm in the process of building and installing all the software needed to
do useful work with it. 8-)

Anyway, I've built and installed version 1.2.10 of both glib and gtk+, so
that part is taken care of. The JPEG and TIFF libs already exist as
they've been built for use with a few other apps already.

After configuring sane-backends-1.0.7 without a problem, I am now getting
this when I try to build the package:

make: Fatal error in reader: Makefile, line 340: Unexpected end of line seen
Current working directory /azwan/sane-backends-1.0.7/backend
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'

and if I look at the Makefile in question, it shows this around line 340:

libsane-umax1220u.la: ../sanei/sanei_constrain_value.lo
libsane-umax1220u.la: ../sanei/sanei_usb.lo
libsane-umax1220u.la: ../sanei/sanei_pv8630.lo

ifneq ($(DLL_PRELOAD),)
# need to make dll dependent on all sanei files:         <-- line 340 here
libsane-dll.la libsane.la: ../sanei/sanei_config.lo
libsane-dll.la libsane.la: ../sanei/sanei_config2.lo
libsane-dll.la libsane.la: ../sanei/sanei_codec_bin.lo

I am guessing this is a simple Makefile syntax issue, but it could mean
that the configure script has a problem that's resulting in the Makefile
being created as shown, which is causing the error message shown above.

What needs to be done to fix up the Makefile? Is the 'ifneq' statement
actually valid in a makefile? What's wrong with it? I'm guessing the
comma might be spurious, but I could be wrong.

Regards,

Craig.

-- 
               Craig Dewick. Send email to "cdewick@sunshack.org"
 Point your web client at "www.sunshack.org" or "www.sunshack.net" to access my
 archive of Sun technical information and links to other places. For info about
     Sun Ripened Kernels, go to "www.sunrk.com.au" or "www.sun-surplus.com"