lcms 2.9 fails to build with many undefined references: ../common/vprf.o:vprf.c:function OpenStockProfile: error: undefined reference to 'cmsCreateLinearizationDeviceLink' ../common/vprf.o:vprf.c:function PrintProfileInformation: error: undefined reference to 'cmsIsTag' ../common/vprf.o:vprf.c:function PrintProfileInformation: error: undefined reference to 'cmsIsTag' ../common/vprf.o:vprf.c:function PrintRenderingIntents: error: undefined reference to 'cmsGetSupportedIntents' collect2: error: ld returned 1 exit status
Created attachment 528504 [details] emerge --info
[ebuild U ] media-libs/lcms-2.9 [2.8-r2] USE="jpeg threads tiff -doc -static-libs {-test}" ABI_X86="32 (64) (-x32)"
Created attachment 528506 [details] build.log
I have the same problem.
Created attachment 566506 [details] emerge --info
Created attachment 566508 [details] build.log
There is no build problem with gcc-5.4.0. Only with gcc-8.2 on my system.
I have the same problem, I am getting the same symbols as undefined. I am using GCC 9.1 and gold ld 2.30. Building it with BFD linker doesn't help.
Same here. gcc 9.2 useflags: jpeg static-libs threads tiff (tried disabling all the flags, didn't work) Problem is related to tificc
First is result of make inside abi-less dir Maybe absolute includes are the problem? As they point to abi-less dir. Sorry noob here. Also sry for the glare no gui. https://imgshare.io/image/GwioO
Forgot to mention. 1st one is a success.2nd is unreferenced blah.
i had the same issue right now but i could compile lcms successfully after disabling ccache and distcc in MAKE_OPTS.
(In reply to Erik Dobak from comment #12) > i had the same issue right now but i could compile lcms successfully after > disabling ccache and distcc in MAKE_OPTS. What if these features are non-existant in the first place?
GCC-11.1.0 and GNU ld (Gentoo 2.36.1 p3) 2.36.1 are giving the same error: libtiff.so.5 tificc.o (TIFFIsTiled) libpthread.so.0 /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/libtiff.so (write@@GLIBC_2.2.5) libc.so.6 tificc.o (fflush@@GLIBC_2.2.5) /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.o: in function `main': tificc.c:(.text.startup+0x9b): undefined reference to `cmsPlugin' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x5f5): undefined reference to `cmsSetAdaptationState' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x636): undefined reference to `cmsfilelength' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x74c): undefined reference to `cmsOpenProfileFromFile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x8dc): undefined reference to `cmsGetColorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x8e3): undefined reference to `_cmsLCMScolorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x91c): undefined reference to `cmsGetColorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x923): undefined reference to `_cmsLCMScolorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0xdc4): undefined reference to `cmsCreateProofingTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0xdd1): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0xdd9): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0xde8): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0xf80): undefined reference to `cmsDeleteTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x11b4): undefined reference to `cmsGetPCS' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x11bb): undefined reference to `_cmsLCMScolorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1203): undefined reference to `cmsOpenProfileFromMem' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x18a5): undefined reference to `cmsDoTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x195c): undefined reference to `cmsDoTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1a34): undefined reference to `cmsGetColorSpace' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1a41): undefined reference to `cmsCreateInkLimitingDeviceLink' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1a9e): undefined reference to `cmsCreateMultiprofileTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1aab): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1ab5): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1ac6): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1c06): undefined reference to `cmsDoTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1c57): undefined reference to `cmsDoTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1eac): undefined reference to `cmsBuildTabulatedToneCurve16' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1ec8): undefined reference to `cmsBuildTabulatedToneCurve16' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1ee4): undefined reference to `cmsBuildTabulatedToneCurve16' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f05): undefined reference to `cmsCreateRGBProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f15): undefined reference to `cmsFreeToneCurve' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f22): undefined reference to `cmsFreeToneCurve' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f2f): undefined reference to `cmsFreeToneCurve' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f83): undefined reference to `cmsCreateMultiprofileTransform' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f90): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: tificc.c:(.text.startup+0x1f9a): undefined reference to `cmsCloseProfile' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `PrintInfo': vprf.c:(.text+0x2f): undefined reference to `cmsGetProfileInfoASCII' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x75): undefined reference to `cmsGetProfileInfoASCII' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `PrintColorantTable.part.0': vprf.c:(.text+0x120): undefined reference to `cmsReadTag' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x134): undefined reference to `cmsNamedColorCount' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x169): undefined reference to `cmsNamedColorInfo' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `OpenStockProfile': vprf.c:(.text+0x351): undefined reference to `cmsstrcasecmp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x368): undefined reference to `cmsstrcasecmp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x37f): undefined reference to `cmsstrcasecmp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x396): undefined reference to `cmsstrcasecmp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x3ad): undefined reference to `cmsstrcasecmp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o:vprf.c:(.text+0x3c4): more undefined references to `cmsstrcasecmp' follow /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `OpenStockProfile': vprf.c:(.text+0x4c7): undefined reference to `cmsWhitePointFromTemp' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x4d2): undefined reference to `cmsCreateLab4ProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x534): undefined reference to `cmsBuildGamma' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x53c): undefined reference to `cmsD50_xyY' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x54a): undefined reference to `cmsCreateGrayProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x555): undefined reference to `cmsFreeToneCurve' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x5aa): undefined reference to `cmsBuildGamma' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x5d0): undefined reference to `cmsCreateLinearizationDeviceLink' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x5db): undefined reference to `cmsFreeToneCurve' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `PrintProfileInformation': vprf.c:(.text+0x691): undefined reference to `cmsIsTag' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x6a2): undefined reference to `cmsIsTag' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `PrintRenderingIntents': vprf.c:(.text+0x74e): undefined reference to `cmsGetSupportedIntents' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `InitUtils': vprf.c:(.text+0x313): undefined reference to `cmsSetLogErrorHandler' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/vprf.o: in function `OpenStockProfile': vprf.c:(.text+0x45d): undefined reference to `cmsOpenProfileFromFileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x489): undefined reference to `cmsCreateLab4ProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x4b1): undefined reference to `cmsCreateLab2ProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x51f): undefined reference to `cmsCreate_sRGBProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x57b): undefined reference to `cmsCreateXYZProfileTHR' /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: vprf.c:(.text+0x59b): undefined reference to `cmsCreateNULLProfileTHR'
Created attachment 711627 [details] emerge --info
Created attachment 711630 [details] media-libs/lcms-2.12-build.log
I can't build it either in any of the 2 computers I use.
(In reply to Petross404(Petros S) from comment #16) > Created attachment 711630 [details] > media-libs/lcms-2.12-build.log This looks like the result of a huge amount of custom and odd *FLAGS. Please share a log of it happening with vanilla *FLAGS and also try to narrow down which of yours causes it. (In reply to Mr. Marcelo Teixeira Ruggeri from comment #17) > I can't build it either in any of the 2 computers I use. Please share build.log & emerge --info.
(In reply to Sam James from comment #18) > (In reply to Petross404(Petros S) from comment #16) > > Created attachment 711630 [details] > > media-libs/lcms-2.12-build.log > > This looks like the result of a huge amount of custom and odd *FLAGS. Please > share a log of it happening with vanilla *FLAGS and also try to narrow down > which of yours causes it. First of all, you are right. Building with the default flags that stage-3 provides, the compilation succeeded. I will (later) repeat with the cflags that I used, adding one at the time and see which one is causing the trouble. Right now I came to confirm this. I am using GCC 12 and binutils-2.39-r2 (~amd64). Have a nice day.