oyranos-cms / oyranos

Colour Management System
https://gitlab.com/oyranos/oyranos
Other
19 stars 6 forks source link

fails to build oyranos/openicc/oyjl/oyjl_io.c #66

Closed tari3x closed 1 year ago

tari3x commented 1 year ago
$ cmake .
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CMAKE_SYSTEM_NAME: Linux
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'elektra'
--   No package 'elektra' found
-- Could NOT find ELEKTRA (missing: ELEKTRA_LIBRARIES ELEKTRA_INCLUDE_DIR) 
-- Elektra was NOT found.
CMake Warning at CMakeLists.txt:135 (FIND_PACKAGE):
  By not providing "FindOpenIcc.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenIcc", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenIcc" with any
  of the following names:

    OpenIccConfig.cmake
    openicc-config.cmake

  Add the installation prefix of "OpenIcc" to CMAKE_PREFIX_PATH or set
  "OpenIcc_DIR" to a directory containing one of the above files.  If
  "OpenIcc" provides a separate development package or SDK, be sure it has
  been installed.

-- Use internal: libOpenIcc
-- Oyjl: compile as subproject - skip install (ENABLE_INSTALL_OPENICC=OFF)
-- ENABLE_STATIC_LIBS_OPENICC: ON
-- ENABLE_SHARED_LIBS_OPENICC: OFF
-- ENABLE_TESTS_OPENICC: OFF
-- ENABLE_TOOLS_OPENICC: OFF
-- ENABLE_DOCU_OPENICC: OFF
-- Found PLATFORM: Linux
-- CMAKE_BUILD_TYPE: "RelWithDebInfo"
CMake Warning at openicc/CMakeLists.txt:103 (FIND_PACKAGE):
  By not providing "FindOyjl.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Oyjl", but
  CMake did not find one.

  Could not find a package configuration file provided by "Oyjl" with any of
  the following names:

    OyjlConfig.cmake
    oyjl-config.cmake

  Add the installation prefix of "Oyjl" to CMAKE_PREFIX_PATH or set
  "Oyjl_DIR" to a directory containing one of the above files.  If "Oyjl"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Oyjl: compile as subproject - skip install (ENABLE_INSTALL_OYJL=OFF)
-- ENABLE_STATIC_LIBS_OYJL: ON
-- ENABLE_SHARED_LIBS_OYJL: OFF
-- ENABLE_TESTS_OYJL: OFF
-- ENABLE_TOOLS_OYJL: ON
-- ENABLE_DOCU_OYJL: OFF
-- Found Yajl: /usr/lib64/libyajl.so  
-- yajl: 2.1.0 /usr/include 
-- Found LibXML2: /usr/lib64/libxml2.so (found version "2.9.14") 
-- Looking for yaml_document_get_node in yaml
-- Looking for yaml_document_get_node in yaml - not found
-- xml: /usr/include/libxml2 : /usr/lib64/libxml2.so
-- Looking for pow in m
-- Looking for pow in m - found
-- m: /usr/lib64/libm.so
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for backtrace in c
-- Looking for backtrace in c - found
-- Looking for MHD_start_daemon in microhttpd
-- Looking for MHD_start_daemon in microhttpd - not found
-- microhttpd: microhttpd not found
-- Looking for dlopen in ltdl
-- Looking for dlopen in ltdl - not found
-- ENABLE_QT_OYJL
-- ENABLE_STATIC_LIBS_OYJL
-- Qt5Qml:                   /usr/lib64/cmake/Qt5Qml
-- Looking for regex.h
-- Looking for regex.h - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for libintl.h
-- Looking for libintl.h - found
-- Found GetText: /usr/bin/msgmerge (found version "0.20.2") 
-- GetText: TRUE libintl: 1
-- EXTRA_CORE_LIBS:          /usr/lib64/libm.so;dl
-- EXTRA_LIBS:               /usr/lib64/libyajl.so;/usr/lib64/libxml2.so;/usr/lib64/libm.so;dl
-- Could NOT find Oyjl (missing: OYJL_LIBRARIES) 
oyjl: /home/avatar/tmp/oyranos/doc/md/oyjl.md
add "oyjl": "de" from de_DE.UTF8 / "de_DE.UTF8"
oyjlargs: /home/avatar/tmp/oyranos/doc/md/oyjlargs.md
add "oyjl-args": "de" from de_DE.UTF8 / "de_DE.UTF8"
oyjltranslate: /home/avatar/tmp/oyranos/doc/md/oyjltranslate.md
add "oyjl-translate": "de" from de_DE.UTF8 / "de_DE.UTF8"
CMake Warning at openicc/oyjl/oyjl-args-qml/CMakeLists.txt:27 (FIND_PACKAGE):
  By not providing "FindOpenIcc.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenIcc", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenIcc" with any
  of the following names:

    OpenIccConfig.cmake
    openicc-config.cmake

  Add the installation prefix of "OpenIcc" to CMAKE_PREFIX_PATH or set
  "OpenIcc_DIR" to a directory containing one of the above files.  If
  "OpenIcc" provides a separate development package or SDK, be sure it has
  been installed.

-- OPENICC_LIBRARIES: openicc-static
OYJL_STATIC_LIBRARY: OYJL_STATIC_LIBRARY-NOTFOUND OYJL_TARGET_LIB: oyjl-static
oyjlargsqml: /home/avatar/tmp/oyranos/doc/md/oyjlargsqml.md
add "oyjl-args-qml": "de" from de_DE.UTF8 / "de_DE.UTF8"
-- The following OPTIONAL packages have been found:

 * Yajl
 * PkgConfig
 * LibXML2
 * Qt5Core (required version >= 5.15.2)
 * Qt5Gui (required version >= 5.15.2)
 * Qt5Network (required version >= 5.15.2)
 * Qt5QmlModels (required version >= 5.15.2)
 * GetText
 * Qt5Widgets
 * Qt5Qml
 * Qt5Quick
 * Qt5Svg
 * Qt5LinguistTools
 * Qt5DBus
 * Qt5

-- The following OPTIONAL packages have not been found:

 * ELEKTRA
 * Oyjl
 * OpenIcc

-- Looking for dirent.h
-- Looking for dirent.h - found
-- dirent.h: /usr/include
-- Looking for glob.h
-- Looking for glob.h - found
-- Looking for glob in c
-- Looking for glob in c - found
-- Looking for issetugid in c
-- Looking for issetugid in c - not found
-- Looking for getauxval in c
-- Looking for getauxval in c - found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for locale.h
-- Looking for locale.h - found
-- Looking for libintl.h
-- Looking for libintl.h - found
-- libintl not found
-- Looking for libiconv_open in iconv
-- Looking for libiconv_open in iconv - not found
-- Looking for iconv_open in iconv
-- Looking for iconv_open in iconv - not found
-- Looking for malloc in c
-- Looking for malloc in c - found
-- stdint.h: /usr/include
-- inttypes.h: /usr/include
GetText: TRUE
-- The following OPTIONAL packages have been found:

 * Yajl
 * PkgConfig
 * LibXML2
 * Qt5Core (required version >= 5.15.2)
 * Qt5Gui (required version >= 5.15.2)
 * Qt5Network (required version >= 5.15.2)
 * Qt5QmlModels (required version >= 5.15.2)
 * Qt5Widgets
 * Qt5Qml
 * Qt5Quick
 * Qt5Svg
 * Qt5LinguistTools
 * Qt5DBus
 * Qt5
 * GetText

-- The following OPTIONAL packages have not been found:

 * ELEKTRA
 * Oyjl
 * OpenIcc

CMake Warning at CMakeLists.txt:156 (FIND_PACKAGE):
  By not providing "FindOyjl.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Oyjl", but
  CMake did not find one.

  Could not find a package configuration file provided by "Oyjl" with any of
  the following names:

    OyjlConfig.cmake
    oyjl-config.cmake

  Add the installation prefix of "Oyjl" to CMAKE_PREFIX_PATH or set
  "Oyjl_DIR" to a directory containing one of the above files.  If "Oyjl"
  provides a separate development package or SDK, be sure it has been
  installed.

-- Use internal: libOyjl
-- Found D-Bus: /usr/lib64/libdbus-1.so
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Checking for module 'xfixes'
--   Found xfixes, version 6.0.0
-- Found Xfixes: /usr/lib64/libXfixes.so  
-- Found XFIXES:  
-- Checking for module 'xrandr'
--   Found xrandr, version 1.5.1
-- Found XRANDR:  
-- Checking for module 'xinerama'
--   Found xinerama, version 1.1.3
-- Found XINERAMA:  
-- Checking for module 'xxf86vm'
--   Found xxf86vm, version 1.1.4
-- Found XXF86VM:  
-- Checking for module 'xmu'
--   Found xmu, version 1.1.2
-- Found Xmu: /usr/lib64/libXmu.so  
-- Found XMU:  
-- Checking for module 'xcm'
--   Found xcm, version 0.5.4
-- Found XCM:   -lXcm;-lXcmEDID;-lXcmDDC;-lXcmX11
-- dirent.h: /usr/include
-- libintl not found
-- Looking for iconv.h
-- Looking for iconv.h - found
-- m: 
-- c: /usr/lib64/libc.so
-- stdint.h: /usr/include
-- inttypes.h: /usr/include
-- Looking for backtrace in c
-- Looking for backtrace in c - found
-- Checking for module 'lcms'
--   No package 'lcms' found
-- Could NOT find LCMS (missing: LCMS_LIBRARIES LCMS_INCLUDE_DIR) 
-- Checking for module 'lcms2'
--   Found lcms2, version 2.12
-- Found LCMS2: /usr/lib64/liblcms2.so  
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- Could NOT find Cups (missing: CUPS_LIBRARIES CUPS_INCLUDE_DIR) 
-- Could NOT find CUPS (missing: CUPS_LIBRARY) 
-- Could NOT find Sane (missing: SANE_LIBRARY SANE_INCLUDE_DIR) 
-- Checking for module 'cairo'
--   No package 'cairo' found
-- Could NOT find Cairo (missing: CAIRO_LIBRARIES CAIRO_INCLUDE_DIR) 
-- Looking for OpenGL/glu.h
-- Looking for OpenGL/glu.h - not found
CMake Warning (dev) at /usr/share/cmake/Modules/FindOpenGL.cmake:315 (message):
  Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
  available.  Run "cmake --help-policy CMP0072" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  FindOpenGL found both a legacy GL library:

    OPENGL_gl_LIBRARY: /usr/lib64/libGL.so

  and GLVND libraries for OpenGL and GLX:

    OPENGL_opengl_LIBRARY: /usr/lib64/libOpenGL.so
    OPENGL_glx_LIBRARY: /usr/lib64/libGLX.so

  OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
  compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindFLTK.cmake:87 (find_package)
  src/CMakeLists.txt:191 (FIND_PACKAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Could NOT find FLTK (missing: FLTK_LIBRARIES FLTK_FLUID_EXECUTABLE) 
-- Checking for module 'libraw'
--   No package 'libraw' found
-- Could NOT find LibRaw (missing: LIBRAW_LIBRARIES LIBRAW_INCLUDE_DIR) 
-- Checking for module 'exiv2'
--   Found exiv2, version 0.27.5
-- Found Exiv2: /usr/lib64/libexiv2.so  
-- Checking for module 'libpng'
--   Found libpng, version 1.6.34
-- Found LibPNG: png16;z  
-- Found JPEG: /usr/lib64/libjpeg.so (found version "80") 
-- Found JPEG: /usr/include  
-- Found TIFF: /usr/lib64/libtiff.so (found version "4.0.9")  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
THREADS_FOUND: TRUE
PTHREADS_FOUND: TRUE
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
THREAD_LIBRARIES: -lpthread
GetText: TRUE
-- Looking for clearenv
-- Looking for clearenv - found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for errno.h
-- Looking for errno.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- EXTRA_LIBS_CORE:          oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so
-- Found Git: /usr/bin/git (found version "2.38.1") 
-- OY_GIT_VERSION:           0.9.6-2922-g6c34d838b
-- OY_LINGUAS: cs;de;eo;eu;fr;ru
-- EXTRA_LIBS_OBJECT:        oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so;oyjl-static
-- EXTRA_LIBS_MODULES:       oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so;oyjl-static;dl
-- EXTRA_LIBS_CONFIG:        oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so;oyjl-static;dl;openicc-static
-- OYJL_JSON_TOOL: oyjl-translate
Lingua: cs_CZ,de_DE,eo,eu,fr_FR,ru_RU
-- EXTRA_LIBS:               oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so;oyjl-static;dl;openicc-static;oyjl-static;oyjl-static
OYRANOS_ALL_ICC 
-- COMPILE_DEFINITIONS_STATIC: COMPILE_STATIC=1;EXTRA_INCLUDE="oyranos_config_internal.h";oyX1=oyX1
oyranosprofiles: /home/avatar/tmp/oyranos/doc/md/oyranosprofiles.md
oyranosprofile: /home/avatar/tmp/oyranos/doc/md/oyranosprofile.md
oyranosconfig: /home/avatar/tmp/oyranos/doc/md/oyranosconfig.md
oyranospolicy: /home/avatar/tmp/oyranos/doc/md/oyranospolicy.md
oyranosmonitorwhitepoint: /home/avatar/tmp/oyranos/doc/md/oyranosmonitorwhitepoint.md
oyranosdevice: /home/avatar/tmp/oyranos/doc/md/oyranosdevice.md
-- OY_OFORMS_LIB: oyranos_forms_cmd_line-static
oyranosicc: /home/avatar/tmp/oyranos/doc/md/oyranosicc.md
-- Found unsuitable Qt version "" from NOTFOUND
-- Checking for module 'x11'
--   Found x11, version 1.6.5
-- EXTRA_LIBS_CORE:          oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so
-- EXTRA_LIBS:          oyjl-core-static;/usr/lib64/libm.so;/usr/lib64/libc.so;oyjl-static;dl;openicc-static;oyjl-static;oyjl-static
-- OY_MODULE_LIBRARIES: oyjl-static;oyjl-static;/usr/lib64/liblcms2.so;oyjl-static;oyjl-static;png16;z;oyjl-static;/usr/lib64/libz.so;oyjl-static;/usr/lib64/libjpeg.so;oyjl-static;Xcm;XcmEDID;XcmDDC;XcmX11;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so;Xfixes;Xrandr;Xinerama;Xxf86vm;Xmu;Xt;X11;oyjl-static;Xcm;XcmEDID;XcmDDC;XcmX11;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so;Xfixes;Xrandr;Xinerama;Xxf86vm;Xmu;Xt;X11;oyjl-static;-lpthread;oyjl-static;openicc-static;Xinerama;Xrandr;Xcm;XcmEDID;XcmDDC;XcmX11;Xfixes;Xxf86vm;/usr/lib64/libSM.so;/usr/lib64/libICE.so;/usr/lib64/libX11.so;/usr/lib64/libXext.so
OYRANOS_SRC_FILES_EXTRA: 
CMake Warning at src/CMakeLists.txt:529 (FIND_PACKAGE):
  By not providing "FindGrantlee5.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Grantlee5", but CMake did not find one.

  Could not find a package configuration file provided by "Grantlee5" with
  any of the following names:

    Grantlee5Config.cmake
    grantlee5-config.cmake

  Add the installation prefix of "Grantlee5" to CMAKE_PREFIX_PATH or set
  "Grantlee5_DIR" to a directory containing one of the above files.  If
  "Grantlee5" provides a separate development package or SDK, be sure it has
  been installed.

XDG_CONFIG_DIR: 
Will install oyranos-monitor-setup.desktop into /usr/local/etc/xdg/autostart. Change with -DXDG_CONFIG_DIR=<path> .
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.14") found components: doxygen dot 
-- The following OPTIONAL packages have been found:

 * Yajl
 * Qt5DBus
 * Qt5Core (required version >= 5.15.2)
 * Qt5Gui (required version >= 5.15.2)
 * Qt5Network (required version >= 5.15.2)
 * Qt5Qml
 * Qt5QmlModels (required version >= 5.15.2)
 * Qt5Quick
 * Qt5LinguistTools
 * DBus
 * X11
 * Xfixes
 * XRandR
 * Xinerama
 * Xxf86vm
 * Xmu
 * Xcm
 * LibXML2
 * LCMS2
 * OpenMP
 * OpenGL
 * Exiv2
 * LibPNG
 * JPEG
 * TIFF
 * GetText
 * Git
 * Qt5Widgets
 * Qt5X11Extras
 * Qt5Xml
 * Qt5Svg
 * Qt5
 * PkgConfig
 * Doxygen

-- The following OPTIONAL packages have not been found:

 * ELEKTRA
 * OpenIcc
 * Oyjl
 * LCMS
 * Cups
 * CUPS
 * Sane
 * Cairo
 * FLTK
 * LibRaw
 * Qt4
 * Grantlee5

-- Configuring done
-- Generating done
-- Build files have been written to: /home/avatar/tmp/oyranos
avatar@pixel:~/tmp/oyranos$ make 
Consolidate compiler generated dependencies of target oyjl-bootstrap
[  1%] Building C object openicc/oyjl/CMakeFiles/oyjl-bootstrap.dir/oyjl_io.c.o
/home/avatar/tmp/oyranos/openicc/oyjl/oyjl_io.c: In function ‘oyjlFileNameCheckNotDummy_’:
/home/avatar/tmp/oyranos/openicc/oyjl/oyjl_io.c:141:1: error: parameter name omitted
 int oyjlFileNameCheckNotDummy_( const char       ** OYJL_UNUSED, int OYJL_UNUSED ) { return 0; }
 ^~~
/home/avatar/tmp/oyranos/openicc/oyjl/oyjl_io.c:141:1: error: parameter name omitted
make[2]: *** [openicc/oyjl/CMakeFiles/oyjl-bootstrap.dir/build.make:146: openicc/oyjl/CMakeFiles/oyjl-bootstrap.dir/oyjl_io.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1788: openicc/oyjl/CMakeFiles/oyjl-bootstrap.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
exit 2
beku commented 1 year ago

Have gcc (SUSE Linux) 12.2.1 20221020 here an no issue. Will send a fix.

beku commented 1 year ago

See #97b3ee7a last commit.

tari3x commented 1 year ago

Looks like it skips this error now - thanks! Submitted the next one as separate issue.