I am trying to build libxfce4util from the sources (on libxfce4util@9dd7973f), using this environment variables (also tried without them with the same result):
Running /usr/local/src/libxfce4util/configure --enable-maintainer-mode --prefix=/usr/local..../configure: line 2717: syntax error near unexpected token `('./configure: line 2717: `LIBXFCE4UTIL_VERSION=xdt_version()'
Please explain what i do wrong?
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
You have to install xfce4-dev-tools 4.19.0 in /usr instead of the system version. For some reason it doesn't find the m4 macros even though XDG_DATA_DIRS is correctly set.
Running ./autogen.sh in the latest xfce4-dev-tools, we will have prefix of /usr/local, shouldn't it be /usr? This seems to also cause a problem in thunar#557 (comment 80637), and maybe !87 (merged) is not the proper fix.
You can also set ACLOCAL_PATH (export ACLOCAL_PATH="$PREFIX/share/aclocal"), which is the relevant env var in this case, and not XDG_DATA_DIRS as I said above. See !87 (merged) for a fix.
I've just run into this issue as well. I'm starting the build process of XFCE from a very bare system so I'm needing to install and download lots of different libraries from scratch. That being said, to match the original poster:
root@plimp0:~/git/libxfce4util# which xdt-autogen/usr/local/bin/xdt-autogenroot@plimp0:~/git/libxfce4util# xdt-autogen --versionxdt-autogen 4.19.0git-b65a49a
I didn't do any sort of prefixes or anything. All of it is default. As such, when I run ./autogen.sh:
You can also set ACLOCAL_PATH (export ACLOCAL_PATH="$PREFIX/share/aclocal"), which is the relevant env var in this case, and not XDG_DATA_DIRS as I said above. See !87 (merged) for a fix.
root@plimp0:~/git/libxfce4util# ./autogen.shPreparing package directory /home/root/git/libxfce4util...Running gtkdocize --copy...Running autoreconf...autoreconf: export WARNINGS=autoreconf: Entering directory '.'autoreconf: running: autopoint --forceautoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}autoreconf: configure.ac: tracingautoreconf: running: libtoolize --copy --forcelibtoolize: putting auxiliary files in '.'.libtoolize: copying file './ltmain.sh'libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.libtoolize: copying file 'm4/libtool.m4'libtoolize: copying file 'm4/ltoptions.m4'libtoolize: copying file 'm4/ltsugar.m4'libtoolize: copying file 'm4/ltversion.m4'libtoolize: copying file 'm4/lt~obsolete.m4'autoreconf: configure.ac: not using Intltoolautoreconf: running: gtkdocize --copyautoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS}autoreconf: running: /usr/bin/autoconf --forceautoreconf: running: /usr/bin/autoheader --forceautoreconf: running: automake --add-missing --copy --force-missingconfigure.ac:70: installing './compile'configure.ac:39: installing './missing'libxfce4util/Makefile.am: installing './depcomp'autoreconf: './config.sub' is updatedautoreconf: './config.guess' is updatedautoreconf: Leaving directory '.'Running /home/root/git/libxfce4util/configure --enable-maintainer-mode ...checking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a race-free mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yeschecking whether make supports nested variables... yeschecking whether UID '0' is supported by ustar format... yeschecking whether GID '0' is supported by ustar format... yeschecking how to create a ustar tar archive... nonechecking whether to enable maintainer-specific portions of Makefiles... yeschecking whether make supports nested variables... (cached) yeschecking whether make supports the include directive... yes (GNU style)checking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables...checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether the compiler supports GNU C... yeschecking whether gcc accepts -g... yeschecking for gcc option to enable C11 features... none neededchecking whether gcc understands -c and -o together... yeschecking dependency style of gcc... gcc3checking for stdio.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for strings.h... yeschecking for sys/stat.h... yeschecking for sys/types.h... yeschecking for unistd.h... yeschecking for wchar.h... yeschecking for minix/config.h... nochecking whether it is safe to define __EXTENSIONS__... yeschecking whether _XOPEN_SOURCE should be defined... nochecking for gcc... (cached) gccchecking whether the compiler supports GNU C... (cached) yeschecking whether gcc accepts -g... (cached) yeschecking for gcc option to enable C11 features... (cached) none neededchecking whether gcc understands -c and -o together... (cached) yeschecking dependency style of gcc... (cached) gcc3checking for perl5... nochecking for perl... perlchecking build system type... aarch64-unknown-linux-gnuchecking host system type... aarch64-unknown-linux-gnuchecking how to print strings... printfchecking for a sed that does not truncate output... /bin/sedchecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for fgrep... /bin/grep -Fchecking for ld used by gcc... /usr/aarch64-xilinx-linux/bin/ldchecking if the linker (/usr/aarch64-xilinx-linux/bin/ld) is GNU ld... yeschecking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -Bchecking the name lister (/usr/bin/nm -B) interface... BSD nmchecking whether ln -s works... yeschecking the maximum length of command line arguments... 1572864checking how to convert aarch64-unknown-linux-gnu file names to aarch64-unknown-linux-gnu format... func_convert_file_noopchecking how to convert aarch64-unknown-linux-gnu file names to toolchain format... func_convert_file_noopchecking for /usr/aarch64-xilinx-linux/bin/ld option to reload object files... -rchecking for file... filechecking for objdump... objdumpchecking how to recognize dependent libraries... pass_allchecking for dlltool... nochecking how to associate runtime and link libraries... printf %s\nchecking for ar... archecking for archiver @FILE support... @checking for strip... stripchecking for ranlib... ranlibchecking command to parse /usr/bin/nm -B output from gcc object... okchecking for sysroot... nochecking for a working dd... /bin/ddchecking how to truncate binary pipes... /bin/dd bs=4096 count=1checking for mt... nochecking if : is a manifest tool... nochecking for dlfcn.h... yeschecking for objdir... .libschecking if gcc supports -fno-rtti -fno-exceptions... nochecking for gcc option to produce PIC... -fPIC -DPICchecking if gcc PIC flag -fPIC -DPIC works... yeschecking if gcc static flag -static works... nochecking if gcc supports -c -o file.o... yeschecking if gcc supports -c -o file.o... (cached) yeschecking whether the gcc linker (/usr/aarch64-xilinx-linux/bin/ld) supports shared libraries... yeschecking whether -lc should be explicitly linked in... nochecking dynamic linker characteristics... GNU/Linux ld.sochecking how to hardcode library paths into programs... immediatechecking whether stripping libraries is possible... yeschecking if libtool supports shared libraries... yeschecking whether to build shared libraries... yeschecking whether to build static libraries... nochecking for err.h... yeschecking for errno.h... yeschecking for grp.h... yeschecking for limits.h... yeschecking for locale.h... yeschecking for pwd.h... yeschecking for signal.h... yeschecking for sys/stat.h... (cached) yeschecking for sys/types.h... (cached) yeschecking for sys/utsname.h... yeschecking for time.h... yeschecking for unistd.h... (cached) yeschecking for stdarg.h... yeschecking for varargs.h... nochecking for libintl.h... yeschecking for gethostname... yeschecking for getpwnam... yeschecking for setlocale... yeschecking for strdup... yeschecking for bind_textdomain_codeset... yeschecking whether NLS is requested... yeschecking for msgfmt... /usr/bin/msgfmtchecking for gmsgfmt... /usr/bin/msgfmtchecking for xgettext... /usr/bin/xgettextchecking for msgmerge... /usr/bin/msgmergechecking for ld used by gcc... /usr/aarch64-xilinx-linux/bin/ldchecking if the linker (/usr/aarch64-xilinx-linux/bin/ld) is GNU ld... yeschecking for shared library run path origin... donechecking how to run the C preprocessor... gcc -Echecking for CFPreferencesCopyAppValue... nochecking for CFLocaleCopyCurrent... nochecking for GNU gettext in libc... yeschecking whether to use NLS... yeschecking where the gettext function comes from... libcchecking for pkg-config... /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for gobject-2.0 >= 2.66.0... 2.72.3checking GOBJECT_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/includechecking GOBJECT_LIBS... -lgobject-2.0 -lglib-2.0checking for pkg-config... (cached) /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for glib-2.0 >= 2.66.0... 2.72.3checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/includechecking GLIB_LIBS... -lglib-2.0configure: setting GLIB_VERSION_MAX_ALLOWED and GLIB_VERSION_MIN_REQUIRED according to 2.66.0checking for pkg-config... (cached) /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for gio-2.0 >= 2.66.0... 2.72.3checking GIO_CFLAGS... -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/includechecking GIO_LIBS... -lgio-2.0 -lgobject-2.0 -lglib-2.0checking for gtk-doc... yeschecking for gtkdoc-check... gtkdoc-check.testchecking for gtkdoc-check... /usr/bin/gtkdoc-checkchecking for gtkdoc-rebase... /usr/bin/gtkdoc-rebasechecking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdfchecking whether to build gtk-doc documentation... nochecking for glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0... yeschecking for gobject-introspection... yeschecking for pkg-config... (cached) /usr/bin/pkg-configchecking pkg-config is at least version 0.9.0... yeschecking for vapigen... nochecking whether to build with debugging support... yeschecking if gcc supports -Wall... yeschecking if gcc supports -Wextra... yeschecking if gcc supports -Wno-missing-field-initializers... yeschecking if gcc supports -Wno-unused-parameter... yeschecking if gcc supports -Wmissing-declarations... yeschecking if gcc supports -Wmissing-noreturn... yeschecking if gcc supports -Wpointer-arith... yeschecking if gcc supports -Wcast-align... yeschecking if gcc supports -Wformat... yeschecking if gcc supports -Wformat-security... yeschecking if gcc supports -Wformat-y2k... yeschecking if gcc supports -Winit-self... yeschecking if gcc supports -Wmissing-include-dirs... yeschecking if gcc supports -Wundef... yeschecking if gcc supports -Wredundant-decls... yeschecking if gcc supports -fstack-protector... yeschecking if gcc supports -g... yeschecking if gcc supports -Wshadow... yeschecking if gcc supports -Wnested-externs... yeschecking if gcc supports -Wold-style-definition... yeschecking if gcc supports -Wall... yeschecking if gcc supports -Wextra... yeschecking if gcc supports -Wno-missing-field-initializers... yeschecking if gcc supports -Wno-unused-parameter... yeschecking if gcc supports -Wmissing-declarations... yeschecking if gcc supports -Wmissing-noreturn... yeschecking if gcc supports -Wpointer-arith... yeschecking if gcc supports -Wcast-align... yeschecking if gcc supports -Wformat... yeschecking if gcc supports -Wformat-security... yeschecking if gcc supports -Wformat-y2k... yeschecking if gcc supports -Winit-self... yeschecking if gcc supports -Wmissing-include-dirs... yeschecking if gcc supports -Wundef... yeschecking if gcc supports -Wredundant-decls... yeschecking if gcc supports -fstack-protector... yeschecking if gcc supports -g... yeschecking if gcc supports -Wshadow... yeschecking whether /usr/aarch64-xilinx-linux/bin/ld accepts --as-needed... yeschecking whether /usr/aarch64-xilinx-linux/bin/ld accepts -O1... yeschecking whether gcc supports the GNUC visibility attribute... yesconfigure: creating ./config.statusconfig.status: creating Makefileconfig.status: creating docs/Makefileconfig.status: creating docs/reference/Makefileconfig.status: creating libxfce4util/libxfce4util-1.0.pcconfig.status: creating libxfce4util/libxfce4util-config.hconfig.status: creating libxfce4util/Makefileconfig.status: creating po/Makefile.inconfig.status: creating xfce4-kiosk-query/Makefileconfig.status: creating config.hconfig.status: executing depfiles commandsconfig.status: executing libtool commandsconfig.status: executing po-directories commandsconfig.status: creating po/POTFILESconfig.status: creating po/MakefileBuild Configuration:* Debug Support: yes* GNU Visibility: yesNow type "make" to compile.
So, in summary, this is about autogen being unable to find the aclocal files for the compile. Perhaps adding that into the make directions could be the solution here? Either way, thanks!