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

Compilling issue #18

Open
Pixelec opened this issue Feb 23, 2018 · 2 comments
Open

Compilling issue #18

Pixelec opened this issue Feb 23, 2018 · 2 comments

Comments

@Pixelec
Copy link

Pixelec commented Feb 23, 2018

Is this possible to simplify build.
I mean remove autogen mecanisms and notice all dependencies needed in the readme file?

All the issues I resolved :
install glib2-devel gtk-doc intltool libtool,
each time need to copy error message error on internet to know what is the missing package,
install gobject-introspection because HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
then dnf slap me that the package does not exists so copying the content of introspection.m4 from gobject repos,

Copying all codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4

Now having this :
. autogen.sh checking for automake >= 1.11.2... testing automake... found 1.15 checking for autoreconf >= 2.53... testing autoreconf... found 2.69 checking for glib-gettext >= 2.2.0... testing glib-gettextize... found 2.52.3 checking for pkg-config >= 0.14.0... testing pkg-config... found 1.3.7 checking for gtk-doc >= 1.0... testing gtkdocize... found 1.25 Checking for required M4 macros... Checking for forbidden M4 macros... **Warning**: I am going to run configure' with no arguments.
If you wish to pass any to it, please specify them on the
`-bash' command line.

Processing ./configure.ac
Running glib-gettextize... Ignore non-fatal messages.
Copying file po/Makefile.in.in

Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

Running gtkdocize...
Running autoreconf...
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force --warnings=no-portability autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: 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' libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am. autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability autoreconf: running: /usr/bin/autoheader --force --warnings=no-portability autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability configure.ac:34: installing './compile' configure.ac:7: installing './missing' infinoted/Makefile.am: installing './depcomp' autoreconf: Leaving directory .'
Running ./configure --enable-maintainer-mode ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to create a pax tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define EXTENSIONS... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
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 the maximum length of command line arguments... 1572864
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf 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 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... no
checking if : 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... no
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) 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 for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for MSG_NOSIGNAL... yes
checking for SO_REUSEADDR... yes
checking for d_type... yes
checking for O_NOFOLLOW... yes
checking for infinity... no
configure: error: Package requirements (glib-2.0 >= 2.38 gobject-2.0 >= 2.38 gmodule-2.0 >= 2.38 libxml-2.0 gnutls >= 2.12.0 libgsasl >= 0.2.21) were not met:

Package 'libxml-2.0', required by 'virtual:world', not found
Package 'gnutls', required by 'virtual:world', not found
Package 'libgsasl', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables infinity_CFLAGS
and infinity_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.`

And getting disconnected from ssh each time and error happen.

Notice that I have libxml-2.0, gnutls and libgsasl ...
All of this only for enabling super user on infinoted (refer to the bug 115),
Please understand that this is getting on my nerves...

I just need the correction made in 2015 on this problem.
Thanks by advance...

@aburgm
Copy link
Contributor

aburgm commented Feb 24, 2018

Notice that I have libxml-2.0, gnutls and libgsasl ...

How did you install them? If you have installed them from your distribution, make sure to also get the -dev or -devel variants of those packages. Otherwise if you built these yourself they might be installed in /usr/local or elsewhere, in which case you should adjust the PKG_CONFIG_PATH enviroment variable when calling configure, e.g. PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./autogen.sh.

@Pixelec
Copy link
Author

Pixelec commented Feb 26, 2018

Ok, that worked, so if I resume :
install binutils gcc make glibc-headers glibc-devel glib2-devel gtk-doc intltool libtool libxml2-devel gnutls-devel libgsasl-devel are needed
(even if binutils gcc make glibc-headers glibc-devel are often provided, just for other who wouls be complaining).

Copy introspection.m4 codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4 progtest.m4 from /usr/share/aclocal/ and introspection.m4 form https://github.com/GNOME/gobject-introspection/blob/master/m4/introspection.m4 to m4 folder (into repository).

then run . autogen.sh which can take a long time on a raspberry pi...

I could contribute if you want, I seen some deprecated calls to readdir_r in common/inf-file-util.c and a right shift that exceed the size of type in common/inf-cert-util.c ...

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

No branches or pull requests

2 participants