Richard W.M. Jones
2014-Mar-28 08:50 UTC
Re: [Libguestfs] ANNOUNCE: libguestfs 1.26 released
On Fri, Mar 28, 2014 at 09:42:52AM +0100, Olaf Hering wrote:> On Thu, Mar 27, Richard W.M. Jones wrote: > > > I'm pleased to announce libguestfs 1.26, a library and set of tools > > This fails to link at least in sles11sp3, 1.25.37 was still ok: > > ... > [ 288s] virt_index_validate-index-validate.o: In function `main': > [ 288s] index-validate.c:(.text+0x94): undefined reference to `rpl_getopt_long' > [ 288s] index-validate.c:(.text+0x165): undefined reference to `rpl_optind' > [ 288s] index-validate.c:(.text+0x177): undefined reference to `rpl_optind' > [ 288s] index-validate.c:(.text+0x18c): undefined reference to `rpl_optind' > [ 288s] index-validate.c:(.text+0x498): undefined reference to `rpl_perror' > [ 288s] collect2: ld returned 1 exit status > [ 288s] make[2]: *** [virt-index-validate] Error 1 > ...I'd say this is a gnulib problem, although why gnulib has decided to use replacement functions is a mystery. My understanding is that getopt_long is part of glibc, so gnulib shouldn't need to replace it. Did ./configure output mention getopt*? If there is a config.cache file, can you delete it and run ./configure again. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#)
On Fri, Mar 28, Richard W.M. Jones wrote:> I'd say this is a gnulib problem, although why gnulib has decided to > use replacement functions is a mystery. My understanding is that > getopt_long is part of glibc, so gnulib shouldn't need to replace it. > Did ./configure output mention getopt*? If there is a config.cache > file, can you delete it and run ./configure again.Its always a clean build: ... [ 12s] + CFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wno-unused' [ 12s] + export CFLAGS [ 12s] + CXXFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wno-unused' [ 12s] + export CXXFLAGS [ 12s] + FFLAGS='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables' [ 12s] + export FFLAGS [ 12s] + ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --target=x86_64-suse-linux --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib64 --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --docdir=/usr/share/doc/packages/libguestfs --enable-daemon --enable-install-daemon --with-qemu=/usr/bin/qemu-kvm --without-java --enable-appliance '--with-supermin-packager-config=/usr/src/packages/BUILD/libguestfs-1.26.0/zypper.priv.conf --use-installed --verbose' --disable-haskell --disable-php --enable-fuse --enable-lua --enable-ocaml --enable-perl --enable-python --disable-ruby --disable-rpath --disable-static ... [ 14s] checking for netinet/in.h... yes [ 14s] checking getopt.h usability... yes [ 14s] checking getopt.h presence... yes [ 14s] checking for getopt.h... yes [ 14s] checking sys/time.h usability... yes ... [ 22s] checking whether getlogin is declared... yes [ 22s] checking for getopt.h... (cached) yes [ 22s] checking for getopt_long_only... yes [ 22s] checking whether getopt is POSIX compatible... yes [ 22s] checking for working GNU getopt function... no [ 22s] checking whether getenv is declared... yes ... Does your build have "working GNU getopt function... yes"? Olaf
Richard W.M. Jones
2014-Mar-28 09:13 UTC
Re: [Libguestfs] ANNOUNCE: libguestfs 1.26 released
On Fri, Mar 28, 2014 at 10:00:49AM +0100, Olaf Hering wrote:> Does your build have "working GNU getopt function... yes"?Seems so: $ rm config.cache $ ./configure |& grep getopt checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for getopt.h... (cached) yes checking for getopt_long_only... yes checking whether getopt is POSIX compatible... yes checking for working GNU getopt function... yes checking for working GNU getopt_long function... yes You would need to check config.log to see exactly why configure is having a problem. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v