[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gphoto-devel
Subject:    Re: [gphoto-devel] something for the build gurus...
From:       Dan Fandrich <dan () coneharvesters ! com>
Date:       2001-11-27 16:36:43
[Download RAW message or body]

On Tue, Nov 27, 2001 at 07:44:20AM +0100, fredrik@krixor.xy.org wrote:
> Something changed after 2001-11-19 that broke building with libtool
> version 1.2 :
> 
> ...
> Making all in libgphoto2_port
> make[2]: Entering directory
> `/usr/local/src/gphoto2/cvs/gphoto2/libgphoto2_port/libgphoto2_port'
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I..
> -DIOLIBS=\"/usr/local/gphoto2-commit/lib/gphoto2_port\"    -g -O2 -g -Wall
> -Wmissing-declarations -Wmissing-prototypes -g -c gphoto2-port-info-list.c
> ../libtool: test: =: unary operator expected
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I. -I..
> -DIOLIBS=\"/usr/local/gphoto2-commit/lib/gphoto2_port\" -g -O2 -g -Wall
> -Wmissing-declarations -Wmissing-prototypes -g
> -Wp,-MD,.deps/gphoto2-port-info-list.pp -c gphoto2-port-info-list.c  -fPIC
> -DPIC
> mv -f  .libs/gphoto2-port-info-list.lo
> mv: missing file argument
> Try `mv --help' for more information.
> make[2]: *** [gphoto2-port-info-list.lo] Error 1
> make[2]: Leaving directory
> `/usr/local/src/gphoto2/cvs/gphoto2/libgphoto2_port/libgphoto2_port'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/usr/local/src/gphoto2/cvs/gphoto2/libgphoto2_port'
> make: *** [all-recursive] Error 1
> $ libtool --version
> ltmain.sh (GNU libtool) 1.2
> $
> 
> an upgrade to :
> 
> $ libtool --version
> ltmain.sh (GNU libtool) 1.4.2 (1.922.2.53 2001/09/11 03:18:52)
> $
> 
> solved the problem. I don't know whether the correct solution is for
> people to upgrade libtool or if we should try to make it work with older
> versions as well.

I just ran into the problem on Solaris as well, using libtool 1.4.  This is
a pretty recent version, so it would be better to try to get it to work with
more libtool versions.  I traced the problem to the fact that several
variables (e.g. pic_mode, build_libtool_need_lc) aren't being initialized
at the beginning of the libtool script, yet are accessed in test clauses
later.  Either those test clauses should have quotes around the variables
or the variables should be given values at the beginning of the script.  It
sounds like a libtool problem to me, but something in gphoto2 must be
triggering it.

>>> Dan
-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic