Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build instructions do not work, AM_GNU_GETTEXT #24

Open
minger0 opened this issue Apr 14, 2023 · 3 comments · May be fixed by #25
Open

build instructions do not work, AM_GNU_GETTEXT #24

minger0 opened this issue Apr 14, 2023 · 3 comments · May be fixed by #25

Comments

@minger0
Copy link

minger0 commented Apr 14, 2023

virt-v2v$ sudo apt install libguestfs-dev libnbd-dev  # you may want to add this to the instructions
virt-v2v$ autoreconf -i
m4/guestfs-libraries.m4:77: warning: macro 'AM_GNU_GETTEXT' not found in library
m4/guestfs-libraries.m4:77: warning: macro 'AM_GNU_GETTEXT' not found in library
m4/guestfs-c.m4:23: warning: The macro `AC_PROG_CC_STDC' is obsolete.
m4/guestfs-c.m4:23: You should run autoupdate.
./lib/autoconf/c.m4:1666: AC_PROG_CC_STDC is expanded from...
m4/guestfs-c.m4:23: the top level
virt-v2v$ ./configure 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking if 2.3 is a stable or development branch of virt-v2v... development
configure: virt-v2v version 2.3.3

--- Checking for external programs ---
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking for xorrisofs... /usr/bin/xorrisofs
checking for po4a-gettextize... no
checking for po4a-translate... no
checking for sqlite3... sqlite3
checking for zip... /usr/bin/zip
checking for unzip... /usr/bin/unzip
checking for valgrind... no
checking for pycodestyle... no

--- Checking for the C compiler environment ---
checking how to run the C preprocessor... gcc -E
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking size of long... 8
checking if __attribute__((cleanup(...))) works with this compiler... yes

--- Checking for libraries used by virt-v2v ---
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libguestfs >= 1.44... yes
checking for libnbd... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether strerror_r is declared... yes
checking whether strerror_r returns char *... yes
checking for byteswap.h... yes
checking for errno.h... yes
checking for linux/magic.h... yes
checking for sys/mount.h... yes
checking for sys/socket.h... yes
checking for sys/statfs.h... yes
checking for sys/statvfs.h... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/un.h... yes
checking for sys/vfs.h... yes
checking for sys/wait.h... yes
checking for windows.h... no
checking for fsync... yes
checking for posix_fadvise... yes
checking for statfs... yes
checking for statvfs... yes
checking for sync... yes
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... yes
checking for xgettext... no
checking for msgcat... no
checking for msgfmt... no
checking for msgmerge... no
checking msgfmt is GNU tool... no
./configure: line 15128: syntax error near unexpected token `external'
./configure: line 15128: `AM_GNU_GETTEXT(external)'

installing libglib2.0-dev did not help

@xin053
Copy link

xin053 commented Apr 17, 2023

for error ./configure: line 15128: AM_GNU_GETTEXT(external), you need to install gettext using apt install gettext

I test compile v2v on ubuntu20.04 and ubuntu22.04,those packages need to be installed

apt install build-essential ca-certificates gcc make automake libtool libguestfs-tools libguestfs-dev libnbd-dev gettext libpcre2-dev libvirt-dev libxml2-dev libjansson-dev libosinfo-1.0-dev ocaml-findlib libvirt-ocaml-dev libguestfs-ocaml-dev libnbd-ocaml-dev
git clone https://github.com/libguestfs/virt-v2v
cd virt-v2v
# git checkout v2.3.4
git submodule update --init
autoreconf -i
./configure
make
make install

minger0 added a commit to minger0/virt-v2v that referenced this issue Apr 23, 2023
@minger0
Copy link
Author

minger0 commented Apr 23, 2023

thanks, it just worked
the ticket can be closed

@nirs nirs linked a pull request Feb 26, 2024 that will close this issue
@nirs
Copy link
Collaborator

nirs commented Feb 26, 2024

Did you see this note in the README under REQUIREMENTS?

Optional, for enhancements to the basic program:                               

* OCaml gettext

Seems that gettext is not optional, so we need to remove it from the optional list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants