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

error 1.5.0-dev build #312

Closed
johndoe71rus opened this issue May 10, 2023 · 2 comments
Closed

error 1.5.0-dev build #312

johndoe71rus opened this issue May 10, 2023 · 2 comments
Labels
bug building problems building ddcutil Fixed

Comments

@johndoe71rus
Copy link

 ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config -I m4 --force -I m4 ${ACLOCAL_FLAGS}
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/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: running: /usr/bin/autoconf --include=config --include=m4 --force
autoreconf: running: /usr/bin/autoheader --include=config --include=m4 --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:113: installing 'config/compile'
configure.ac:105: installing 'config/missing'
src/app_ddcutil/Makefile.am: installing 'config/depcomp'
autoreconf: Leaving directory `.'
configure: debug messages disabled
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 whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
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 for ar... ar
checking the archiver (ar) interface... ar
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc option to accept ISO C99... none needed
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 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 how to run the C preprocessor... gcc -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 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... no
configure: Checking configure command options... 
configure: lib...        enabled 
configure: usb...        enabled (provisional)   
configure: drm...        enabled (provisional)   
configure: asan..........disabled 
configure: syslog...     enabled  
configure: doxygen...    disabled 
configure: Resolving options... 
configure: targetbsd...  disabled 
configure: envcmds...    enabled 
configure: udev...       enabled 
configure: usb...        enabled  
configure: x11...        enabled  
configure: testcases...  disabled 
configure: callgraph...  disabled 
configure: failsim.....  disabled 
configure: force-suse....disabled 
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for clock_gettime... yes
checking for memset... yes
checking for nl_langinfo... yes
checking for stpcpy... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strtol... yes
checking for library containing dlopen... -ldl
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for dlfcn.h... (cached) yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for GLIB... yes
checking for JSON... yes
checking for UDEV... yes
checking for LIBUSB... yes
checking for LIBDRM... yes
configure: drm...        enabled  
checking for LIBX11... yes
checking for XRANDR... yes
configure: x11...        enabled  
configure: doxygen disabled, not checking for Doxygen
configure: USE_DOXYGEN not set
checking for install-docs... no
configure: WARNING: doc-base not installed - continuing without doc-base support
checking for ZLIB... yes
checking target OS using /etc/os-release ... target is not SUSE  
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/util/Makefile
config.status: creating src/usb_util/Makefile
config.status: creating src/base/Makefile
config.status: creating src/vcp/Makefile
config.status: creating src/dynvcp/Makefile
config.status: creating src/i2c/Makefile
config.status: creating src/usb/Makefile
config.status: creating src/ddc/Makefile
config.status: creating src/test/Makefile
config.status: creating src/cmdline/Makefile
config.status: creating src/app_sysenv/Makefile
config.status: creating src/app_ddcutil/Makefile
config.status: creating src/libmain/Makefile
config.status: creating src/sample_clients/Makefile
config.status: creating man/Makefile
config.status: creating data/Makefile
config.status: creating docs/Makefile
config.status: creating docs/doxygen/Makefile
config.status: creating src/public/ddcutil_macros.h
config.status: creating ddcutil.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

        ddcutil 1.5.0
        version suffix:   dev
        =============

        libtool version         7:0:3

        prefix:                 /usr/local
        exec_prefix:            ${prefix}
        libexecdir:             ${exec_prefix}/libexec
        bindir:                 ${exec_prefix}/bin
        libdir:                 ${exec_prefix}/lib
        datarootdir:            ${prefix}/share
        datadir:                ${datarootdir}
        docdir:                 ${datarootdir}/doc/${PACKAGE_TARNAME}
        mandir:                 ${datarootdir}/man
        includedir:                 ${prefix}/include
        pkgconfigdir:           
        required_packages:       glib-2.0 >= 2.40 jansson xrandr x11

        enable_lib:             yes
        enable_envcmds          yes
        enable_udev             yes
        enable_usb:             yes
        enable_drm:             yes
        enable_x11:             yes
        enable_syslog:          yes
        enable_asan:            no

        Developer-only options:
        enable_targetbsd:       no
        enable_doxygen:         no
        enable_failsim:         no
        include_testcases:      no

        compiler:               gcc
        CFLAGS:                 -g -O2
        CPPFLAGS:               
        LDFLAGS:                

need to install libjansson-dev

./configure
configure: debug messages disabled
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 whether make supports nested variables... (cached) yes
checking whether make supports the include directive... yes (GNU style)
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 for ar... ar
checking the archiver (ar) interface... ar
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gcc option to accept ISO C99... none needed
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 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 how to run the C preprocessor... gcc -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 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... no
configure: Checking configure command options... 
configure: lib...        enabled 
configure: usb...        enabled (provisional)   
configure: drm...        enabled (provisional)   
configure: asan..........disabled 
configure: syslog...     enabled  
configure: doxygen...    disabled 
configure: Resolving options... 
configure: targetbsd...  disabled 
configure: envcmds...    enabled 
configure: udev...       enabled 
configure: usb...        enabled  
configure: x11...        enabled  
configure: testcases...  disabled 
configure: callgraph...  disabled 
configure: failsim.....  disabled 
configure: force-suse....disabled 
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking for clock_gettime... yes
checking for memset... yes
checking for nl_langinfo... yes
checking for stpcpy... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strtol... yes
checking for library containing dlopen... -ldl
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for dlfcn.h... (cached) yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for GLIB... yes
checking for JSON... yes
checking for UDEV... yes
checking for LIBUSB... yes
checking for LIBDRM... yes
configure: drm...        enabled  
checking for LIBX11... yes
checking for XRANDR... yes
configure: x11...        enabled  
configure: doxygen disabled, not checking for Doxygen
configure: USE_DOXYGEN not set
checking for install-docs... no
configure: WARNING: doc-base not installed - continuing without doc-base support
checking for ZLIB... yes
checking target OS using /etc/os-release ... target is not SUSE  
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/util/Makefile
config.status: creating src/usb_util/Makefile
config.status: creating src/base/Makefile
config.status: creating src/vcp/Makefile
config.status: creating src/dynvcp/Makefile
config.status: creating src/i2c/Makefile
config.status: creating src/usb/Makefile
config.status: creating src/ddc/Makefile
config.status: creating src/test/Makefile
config.status: creating src/cmdline/Makefile
config.status: creating src/app_sysenv/Makefile
config.status: creating src/app_ddcutil/Makefile
config.status: creating src/libmain/Makefile
config.status: creating src/sample_clients/Makefile
config.status: creating man/Makefile
config.status: creating data/Makefile
config.status: creating docs/Makefile
config.status: creating docs/doxygen/Makefile
config.status: creating src/public/ddcutil_macros.h
config.status: creating ddcutil.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

        ddcutil 1.5.0
        version suffix:   dev
        =============

        libtool version         7:0:3

        prefix:                 /usr/local
        exec_prefix:            ${prefix}
        libexecdir:             ${exec_prefix}/libexec
        bindir:                 ${exec_prefix}/bin
        libdir:                 ${exec_prefix}/lib
        datarootdir:            ${prefix}/share
        datadir:                ${datarootdir}
        docdir:                 ${datarootdir}/doc/${PACKAGE_TARNAME}
        mandir:                 ${datarootdir}/man
        includedir:                 ${prefix}/include
        pkgconfigdir:           
        required_packages:       glib-2.0 >= 2.40 jansson xrandr x11

        enable_lib:             yes
        enable_envcmds          yes
        enable_udev             yes
        enable_usb:             yes
        enable_drm:             yes
        enable_x11:             yes
        enable_syslog:          yes
        enable_asan:            no

        Developer-only options:
        enable_targetbsd:       no
        enable_doxygen:         no
        enable_failsim:         no
        include_testcases:      no

        compiler:               gcc
        CFLAGS:                 -g -O2
        CPPFLAGS:               
        LDFLAGS:                

do i need use ./autogen and ./configure ? look like is the same

... make[3]: Leaving directory '/home/johndoe/build/ddcutil/ddcutil/src/dynvcp'
Making all in ddc
make[3]: Entering directory '/home/johndoe/build/ddcutil/ddcutil/src/ddc'
  CC       ddc_common_init.lo
  CC       ddc_displays.lo
  CC       ddc_display_lock.lo
  CC       ddc_display_ref_reports.lo
  CC       ddc_display_selection.lo
  CC       ddc_dumpload.lo
  CC       ddc_multi_part_io.lo
  CC       ddc_output.lo
  CC       ddc_packet_io.lo
  CC       ddc_read_capabilities.lo
  CC       ddc_serialize.lo
In file included from ddc_serialize.c:18:
ddc_serialize.c: In function ‘ddc_store_displays_cache’:
ddc_serialize.c:531:55: error: ‘errno’ undeclared (first use in this function)
  531 |       DBGMSG("Error writing file %s:%s", fn, strerror(errno));
      |                                                       ^~~~~
../../src/base/core.h:278:51: note: in definition of macro ‘DBGMSG’
  278 |           __func__, __LINE__, __FILE__, format, ##__VA_ARGS__)
      |                                                   ^~~~~~~~~~~
ddc_serialize.c:27:1: note: ‘errno’ is defined in header ‘<errno.h>’; did you forget to ‘#include <errno.h>’?
   26 | #include "ddc_serialize.h"
  +++ |+#include <errno.h>
   27 | 
In file included from ddc_serialize.c:18:
ddc_serialize.c:531:55: note: each undeclared identifier is reported only once for each function it appears in
  531 |       DBGMSG("Error writing file %s:%s", fn, strerror(errno));
      |                                                       ^~~~~
../../src/base/core.h:278:51: note: in definition of macro ‘DBGMSG’
  278 |           __func__, __LINE__, __FILE__, format, ##__VA_ARGS__)
      |                                                   ^~~~~~~~~~~
ddc_serialize.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-compound-token-split-by-macro’
make[3]: *** [Makefile:490: ddc_serialize.lo] Error 1
make[3]: Leaving directory '/home/johndoe/build/ddcutil/ddcutil/src/ddc'
make[2]: *** [Makefile:812: all-recursive] Error 1
make[2]: Leaving directory '/home/johndoe/build/ddcutil/ddcutil/src'
make[1]: *** [Makefile:541: all-recursive] Error 1
make[1]: Leaving directory '/home/johndoe/build/ddcutil/ddcutil'
make: *** [Makefile:448: all] Error 2
@rockowitz
Copy link
Owner

rockowitz commented May 10, 2023

I fixed the missing errno.h problem and pushed the change to github. Thank you.

Do I understand correctly that the first run of .configure did not detect that libjansson-dev was not installed? Autoconf macro PKG_CHECK_MODULE() looks for file jansson.pc installed by the development package and terminates configure execution if the file is not found.

autogen is a convenience wrapper around autoreconf and configure. autoreconf is itself a wrapper. From the autotools doc:
"autoreconf runs autoconf, autoheader, aclocal, automake, libtoolize, and autopoint (when appropriate) repeatedly to update the GNU Build System in the specified directories and their subdirectories."

If you look at the output of autogen vs configure, you'll see output at the start before the output from configure.

Generally speaking, after running autogen once, the only time it needs to be run again is if there a change to configure.ac or one of the Makefile.am files in the source tree.

@johndoe71rus
Copy link
Author

run ./autogen.sh was after install libjansson-dev.
don't forget add libjansson-dev to depences

@rockowitz rockowitz added bug building problems building ddcutil Fixed labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug building problems building ddcutil Fixed
Projects
None yet
Development

No branches or pull requests

2 participants