oyranos-cms / oyranos

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

elDB fails compile #64

Open stumbles opened 2 years ago

stumbles commented 2 years ago
[ 74%] Building C object src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/oyranos_cmm_elDB.c.o /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'oyGetByName': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:134:30: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 134 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:134:22: error: too few arguments to function 'kdbOpen' 134 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'oyGetKey': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:172:3: error: too few arguments to function 'keyCopy' 172 keyCopy( key, result ); ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:147:7: note: declared here 147 Key keyCopy (Key dest, const Key *source, elektraCopyFlags flags); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'oySetKey': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:184:30: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 184 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:184:22: error: too few arguments to function 'kdbOpen' 184 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:194:17: error: too few arguments to function 'keyDup' 194 Key * dup = keyDup (key); ^~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:215:20: note: declared here 215 static inline Key keyDup (const Key source, elektraCopyFlags flags) ^~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'elDB_newFrom': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:362:23: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 362 db->h = kdbOpen(db->error); ^~~~~
Key {aka struct _Key }
In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:362:13: error: too few arguments to function 'kdbOpen' 362 db->h = kdbOpen(db->error); ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'elDBSetString': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:601:30: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 601 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:601:22: error: too few arguments to function 'kdbOpen' 601 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'elDBSearchEmptyKeyname': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:692:30: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 692 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }
In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:692:22: error: too few arguments to function 'kdbOpen' 692 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 KDB kdbOpen (const KeySet contract, Key *parentKey); ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: In function 'elDBEraseKey': /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:745:30: warning: passing argument 1 of 'kdbOpen' from incompatible pointer type [-Wincompatible-pointer-types] 745 KDB * oyhandle = kdbOpen(error_key); oyERRopen(error_key) ^~~~~
Key {aka struct _Key }

In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:31: note: expected 'const KeySet ' {aka 'const struct _KeySet '} but argument is of type 'Key ' {aka 'struct _Key '} 128 | KDB kdbOpen (const KeySet contract, Key parentKey); | ~~~^~~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:745:22: error: too few arguments to function 'kdbOpen' 745 | KDB oyhandle = kdbOpen(error_key); oyERRopen(error_key) | ^~~ In file included from /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:84: /usr/include/elektra/kdb.h:128:7: note: declared here 128 | KDB kdbOpen (const KeySet contract, Key *parentKey); | ^~~ /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c: At top level: /usr/src/oyranos-0.9.6/src/modules/color/modules/oyranos_cmm_elDB.c:801:42: error: 'KDB_VERSION_MICRO' undeclared here (not in a function); did you mean 'KDB_VERSION_MINOR'? 801 | {KDB_VERSION_MAJOR, KDB_VERSION_MINOR, KDB_VERSION_MICRO}, /< lib_version / | ^~~~~ | KDB_VERSION_MINOR make[2]: [src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/build.make:76: src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/oyranos_cmm_elDB.c.o] Error 1 make[1]: [CMakeFiles/Makefile2:1443: src/modules/color/modules/CMakeFiles/oyranos_elDB_cmm_module.dir/all] Error 2 make: [Makefile:136: all] Error 2

beku commented 2 years ago

Did you compile with Elektra installed?

stumbles commented 2 years ago

Of course, elektra-0.9.9.

stumbles commented 2 years ago

Here is the compile log;

++ Mark Compile start : "oyranos" "0.9.6" "Sun, 10 Apr 2022 13:06:47 +0000"

HAVE_LIBRAW_PLUGIN: TRUE -- Checking for module 'exiv2' -- Found exiv2, version 0.27.5 -- Found Exiv2: /usr/lib/libexiv2.so
-- Checking for module 'libpng' -- Found libpng, version 1.6.37 -- Found LibPNG: png16;z
-- Found JPEG: /usr/lib/libjpeg.so (found version "80") -- Found TIFF: /usr/lib/libtiff.so (found version "4.3.0")
-- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE
-- Found Gettext: /usr/bin/msgmerge (found version "0.21") 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 locale.h -- Looking for locale.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 -- OY_LINGUAS: cs;de;eo;eu;fr;ru OYRANOS_ALL_ICC /usr/share/color/icc/OpenICC/ProPhoto-RGB.icc;/usr/share/color/icc/OpenICC/compatibleWithAdobeRGB1998.icc;/usr/share/color/icc/OpenICC/sRGB.icc;/usr/share/color/icc/Oyranos/Gray-CIE_L.icc;/usr/share/color/icc/Oyranos/Gray_linear.icc;/usr/share/color/icc/Oyranos/ITULab.icc;/usr/share/color/icc/basICColor/ISOcoated_v2_300_bas.ICC;/usr/share/color/icc/basICColor/ISOcoated_v2_bas.ICC;/usr/share/color/icc/basICColor/ISOcoated_v2_grey1c_bas.ICC;/usr/share/color/icc/basICColor/ISOnewspaper_v4_26_bas.ICC;/usr/share/color/icc/basICColor/ISOuncoatedyellowish_bas.ICC;/usr/share/color/icc/basICColor/LStar-RGB.icc;/usr/share/color/icc/basICColor/PSO_Coated_300_NPscreen_ISO12647_bas.ICC;/usr/share/color/icc/basICColor/PSO_Coated_NPscreen_ISO12647_bas.ICC;/usr/share/color/icc/basICColor/PSO_LWC_Improved_bas.ICC;/usr/share/color/icc/basICColor/PSO_LWC_Standard_bas.ICC;/usr/share/color/icc/basICColor/PSO_MFC_Paper_bas.ICC;/usr/share/color/icc/basICColor/PSO_SNP_Paper_bas.ICC;/usr/share/color/icc/basICColor/PSO_Uncoated_ISO12647_bas.ICC;/usr/share/color/icc/basICColor/PSO_Uncoated_NPscreen_ISO12647_bas.ICC;/usr/share/color/icc/basICColor/SC_paper_bas.ICC;/usr/share/color/icc/colord/AdobeRGB1998.icc;/usr/share/color/icc/colord/AppleRGB.icc;/usr/share/color/icc/colord/BestRGB.icc;/usr/share/color/icc/colord/BetaRGB.icc;/usr/share/color/icc/colord/Bluish.icc;/usr/share/color/icc/colord/BruceRGB.icc;/usr/share/color/icc/colord/CIE-RGB.icc;/usr/share/color/icc/colord/ColorMatchRGB.icc;/usr/share/color/icc/colord/Crayons.icc;/usr/share/color/icc/colord/DonRGB4.icc;/usr/share/color/icc/colord/ECI-RGBv1.icc;/usr/share/color/icc/colord/ECI-RGBv2.icc;/usr/share/color/icc/colord/EktaSpacePS5.icc;/usr/share/color/icc/colord/Gamma5000K.icc;/usr/share/color/icc/colord/Gamma5500K.icc;/usr/share/color/icc/colord/Gamma6500K.icc;/usr/share/color/icc/colord/NTSC-RGB.icc;/usr/share/color/icc/colord/PAL-RGB.icc;/usr/share/color/icc/colord/ProPhotoRGB.icc;/usr/share/color/icc/colord/Rec709.icc;/usr/share/color/icc/colord/SMPTE-C-RGB.icc;/usr/share/color/icc/colord/SwappedRedAndGreen.icc;/usr/share/color/icc/colord/WideGamutRGB.icc;/usr/share/color/icc/colord/sRGB.icc;/usr/share/color/icc/colord/x11-colors.icc;/usr/share/color/icc/lcms/LCMSLABI.ICM;/usr/share/color/icc/lcms/LCMSXYZI.ICM;/usr/share/color/icc/lcms/Lab.icc;/usr/share/color/icc/lcms/XYZ.icc -- Found unsuitable Qt version "5.15.3" from /usr/lib/qt5/bin/qmake -- Checking for module 'x11' -- Found x11, version 1.7.3.1 -- OY_OFORMS_LIB: oyranos_forms_cmd_line-static XDG_CONFIG_DIR: /etc/xdg/oyranos Will install oyranos-monitor-setup.desktop into /etc/xdg/oyranos/autostart -- Found Doxygen: /usr/bin/doxygen (found version "1.9.3") found components: doxygen dot -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

BUILD_TESTING
SYSCONF_INSTALL_DIR

-- Build files have been written to: /usr/src/oyranos-0.9.6/oyranos-oosb