# Re: Compile problems (and fixes) for 1.0.4

From: Derrell Lipman (Derrell.Lipman@UnwiredUniverse.com)
Date: Thu Dec 28 2000 - 06:11:11 PST

- Next message: Eugene Kanter: "Re: new configure script for xsane-0.6[678]"
  - Previous message: Dave Hill: "Re: new configure script for xsane-0.6[678]"
  - Next in thread: oliver.rauch@Wolfsburg.DE: "Re: Compile problems (and fixes) for 1.0.4"
  - Reply: oliver.rauch@Wolfsburg.DE: "Re: Compile problems (and fixes) for 1.0.4"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  oliver.rauch@Wolfsburg.DE writes:

  > How did you compile it (configure options, anything special)?

  I did not use any special options. I checked to ensure that
  exec-prefix was "/usr/local" (which it was).

  > > src/Makefile and doc/Makefile both require changing:
  > >
  > > INSTALL = ../'/usr/bin/install -c'
  > >
  > > to
  > >
  > > INSTALL = /usr/bin/install -c
  >
  > The Makefile is created from Makefile.in by the configure script.
  > The variable INSTALL that is used for this is set up by a standard
  > function of autoconf and I do not think that there is a problem with
  > this. Is it possible that your system is not set up correct?

  Hmmmm... It's a nearly fresh install of Redhat 7.0, and I haven't had
  problems with other from-source installations. However, I suspect
  there was some oddity going on when I first installed this pertaining
  to the Redhat-provided sane 1.0.0 package that was already installed.
  If I now do a "make distclean" and "configure" in the frontends
  directory, it builds a correct Makefile in those two directories.
  Therefore, I'm unable to provide any debugging output at this time.
  Sigh.

  Here's the order of what I *think* I did last night...

  - retrieve and untar into separate directories, sane-1.0.3.tar.gz,
  sane-backends-1.0.4.tar.gz, sane-frontends-1.0.4.tar.gz, and
  xsane-0.68.tar.gz from ftp://ftp.mostang.com/pub/sane.

  - cd sane-1.0.3; configure; make; make install

  - cd sane-backends-1.0.4; configure; make; make install

  - cd sane-frontends-1.0.4; configure; make

  This is where I encountered my first error, tracked to the
  missing -ldl in /usr/local/bin/sane-config.

  - When frontends failed, I tried generating xsane but it failed
  as well.

  - fixed /usr/local/bin/sane-config to include -ldl

  - make install (still in frontends directory)

  I encountered the second error here, tracked to INSTALL being set
  incorrectly in src/Makefile and doc/Makefile.

  I just tried "make distclean" and "configure" in sane-1.0.3 and found
  that it generated a correct sane-config file (with -ldl). I then did
  "make distclean" and "configure" in sane-backends-1.0.4 and it
  generated an incorrect sane-config file (without -ldl).

  I'm beginning to wonder if backends-1.0.4 and frontends-1.0.4 are
  INSTEAD of the ENTIRE sane-1.0.3, rather than additions to it as I had
  thought. Maybe I misunderstood what I needed to generate.

  Anyway, here's the output of configure from the backends-1.0.4
  directory...

  creating cache ./config.cache
  checking for gcc... gcc
  checking whether the C compiler (gcc ) works... yes
  checking whether the C compiler (gcc ) is a cross-compiler... no
  checking whether we are using GNU C... yes
  checking whether gcc accepts -g... yes
  checking host system type... i686-pc-linux-gnu
  checking build system type... i686-pc-linux-gnu
  checking for ld used by GCC... /usr/bin/ld
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking for a BSD compatible install... /usr/bin/install -c
  checking whether make sets ${MAKE}... yes
  checking how to run the C preprocessor... gcc -E
  checking whether gcc needs -traditional... no
  checking for AIX... no
  checking for minix/config.h... no
  checking for POSIXized ISC... no
  checking for gcc option to accept ANSI C... none needed
  checking for ANSI C header files... yes
  checking for fcntl.h... yes
  checking for unistd.h... yes
  checking for libc.h... no
  checking for sys/dsreq.h... no
  checking for sys/select.h... yes
  checking for sys/time.h... yes
  checking for sys/scanio.h... no
  checking for scsi.h... no
  checking for sys/scsi.h... no
  checking for sys/scsicmd.h... no
  checking for sys/scsiio.h... no
  checking for bsd/dev/scsireg.h... no
  checking for scsi/sg.h... yes
  checking for /usr/src/linux/include/scsi/sg.h... yes
  checking for io/cam/cam.h... no
  checking for camlib.h... no
  checking for os2.h... no
  checking for sys/socket.h... yes
  checking for sys/io.h... yes
  checking for asm/io.h... yes
  checking for gscdds.h... no
  checking for sys/hw.h... no
  checking for sys/types.h... yes
  checking for sys/scsi/sgdefs.h... no
  checking for sys/scsi/targets/scgio.h... no
  checking for apollo/scsi.h... no
  checking for sys/sdi_comm.h... no
  checking for sys/passthrudef.h... no
  checking for working const... yes
  checking for inline... inline
  checking return type of signal handlers... void
  checking for size_t... yes
  checking for pid_t... yes
  checking for ssize_t... yes
  checking for u_char... yes
  checking for u_int... yes
  checking for u_long... yes
  checking for u_int8_t... yes
  checking for u_int16_t... yes
  checking for u_int32_t... yes
  checking for linux/videodev.h... yes
  checking Video4Linux version 1 or 2... v4l
  checking for dlfcn.h... yes
  checking for dlopen in -ldl... yes
  checking for dlopen... yes
  checking for dl.h... no
  checking for sqrt in -lm... yes
  checking for scsireq_enter in -lscsi... no
  checking for cam_open_device in -lcam... no
  checking for syslog in -lsyslog... no
  checking for jpeg_start_decompress in -ljpeg... yes
  checking for jconfig.h... yes
  checking for jpeglib - version >= 61 (6a)... yes
  checking for gethostbyaddr in -lnsl... yes
  checking for socket in -lsocket... no
  checking for ptal.h... no
  checking for working alloca.h... yes
  checking for alloca... yes
  checking for unistd.h... (cached) yes
  checking for getpagesize... yes
  checking for working mmap... yes
  checking for atexit... yes
  checking for ioperm... yes
  checking for mkdir... yes
  checking for scsireq_enter... no
  checking for sigprocmask... yes
  checking for strdup... yes
  checking for strndup... yes
  checking for strftime... yes
  checking for strstr... yes
  checking for strsep... yes
  checking for strtod... yes
  checking for snprintf... yes
  checking for cfmakeraw... yes
  checking for tcsendbreak... yes
  checking for usleep... yes
  checking for strcasecmp... yes
  checking for strncasecmp... yes
  checking for _portaccess... no
  checking for getenv... yes
  checking for isfdtype... yes
  checking for vsyslog... yes
  checking for ranlib... ranlib
  checking for BSD-compatible nm... /usr/bin/nm -B
  checking whether ln -s works... yes
  updating cache ./config.cache
  loading cache ./config.cache within ltconfig
  checking for object suffix... o
  checking for executable suffix... no
  checking for gcc option to produce PIC... -fPIC
  checking if gcc PIC flag -fPIC works... yes
  checking if gcc supports -c -o file.o... yes
  checking if gcc supports -c -o file.lo... yes
  checking if gcc supports -fno-rtti -fno-exceptions ... yes
  checking if gcc static flag -static works... -static
  checking if the linker (/usr/bin/ld) is GNU ld... yes
  checking whether the linker (/usr/bin/ld) supports shared libraries... yes
  checking command to parse /usr/bin/nm -B output... ok
  checking how to hardcode library paths into programs... immediate
  checking for /usr/bin/ld option to reload object files... -r
  checking dynamic linker characteristics... Linux ld.so
  checking if libtool supports shared libraries... yes
  checking whether to build shared libraries... yes
  checking whether to build static libraries... yes
  checking for objdir... .libs
  creating libtool
  updating cache ./config.cache
  loading cache ./config.cache
  enabling DC210 backend
  disabling PINT backend
  enabling QuickCam backend
  enabling Video4Linux backend
  enabling NET backend
  scsi buffersize: 131072
  creating ./config.status
  creating Makefile
  creating lib/Makefile
  creating sanei/Makefile
  creating frontend/Makefile
  creating japi/Makefile
  creating backend/Makefile
  creating include/Makefile
  creating doc/Makefile
  creating tools/Makefile
  creating tools/sane-config
  creating include/sane/config.h
  ****************************************************************
  * Please be sure to read file PROBLEMS in this directory *
  * BEFORE running any of the SANE applications. Some devices *
  * may be damaged by inproper operation, so please do heed this *
  * advice. *
  ****************************************************************

      --
      Source code, list archive, and docs: http://www.mostang.com/sane/
      To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com

  - Next message: Eugene Kanter: "Re: new configure script for xsane-0.6[678]"
  - Previous message: Dave Hill: "Re: new configure script for xsane-0.6[678]"
  - Next in thread: oliver.rauch@Wolfsburg.DE: "Re: Compile problems (and fixes) for 1.0.4"
  - Reply: oliver.rauch@Wolfsburg.DE: "Re: Compile problems (and fixes) for 1.0.4"
  - Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

  This archive was generated by hypermail 2b29 : Thu Dec 28 2000 - 05:59:26 PST