Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 654046 - media-libs/lcms-2.9 - tificc.o:tificc.c:function main: error: undefined reference to 'cmsPlugin'
Summary: media-libs/lcms-2.9 - tificc.o:tificc.c:function main: error: undefined refer...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-25 08:07 UTC by skaumo
Modified: 2022-10-18 04:29 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,7.81 KB, text/plain)
2018-04-25 08:10 UTC, skaumo
Details
build.log (build.log,115.01 KB, text/plain)
2018-04-25 08:13 UTC, skaumo
Details
emerge --info (file_654046.txt,7.61 KB, text/plain)
2019-02-26 07:43 UTC, mak
Details
build.log (build.log,106.50 KB, text/x-log)
2019-02-26 07:47 UTC, mak
Details
emerge --info (emerge.info,29.32 KB, text/plain)
2021-05-27 09:01 UTC, Petross404(Petros S)
Details
media-libs/lcms-2.12-build.log (build.log,213.65 KB, text/plain)
2021-05-27 09:03 UTC, Petross404(Petros S)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skaumo 2018-04-25 08:07:24 UTC
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
Comment 1 skaumo 2018-04-25 08:10:09 UTC
Created attachment 528504 [details]
emerge --info
Comment 2 skaumo 2018-04-25 08:10:36 UTC
[ebuild     U ] media-libs/lcms-2.9 [2.8-r2] USE="jpeg threads tiff -doc -static-libs {-test}" ABI_X86="32 (64) (-x32)"
Comment 3 skaumo 2018-04-25 08:13:45 UTC
Created attachment 528506 [details]
build.log
Comment 4 mak 2019-02-26 07:37:57 UTC
I have the same problem.
Comment 5 mak 2019-02-26 07:43:48 UTC
Created attachment 566506 [details]
emerge --info
Comment 6 mak 2019-02-26 07:47:46 UTC
Created attachment 566508 [details]
build.log
Comment 7 mak 2019-02-26 08:33:08 UTC
There is no build problem with gcc-5.4.0. Only with gcc-8.2 on my system.
Comment 8 Petross404(Petros S) 2019-08-16 13:08:44 UTC
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.
Comment 9 Alireza 2020-01-31 08:02:54 UTC
Same here. gcc 9.2
useflags: jpeg static-libs threads tiff (tried disabling all the flags, didn't work)
Problem is related to tificc
Comment 10 Alireza 2020-01-31 09:20:34 UTC
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
Comment 11 Alireza 2020-01-31 09:22:51 UTC
Forgot to mention. 1st one is a success.2nd is unreferenced blah.
Comment 12 Erik Dobak 2020-02-27 17:39:51 UTC
i had the same issue right now but i could compile lcms successfully after disabling ccache and distcc in MAKE_OPTS.
Comment 13 Petross404(Petros S) 2020-09-06 22:23:32 UTC
(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?
Comment 14 Petross404(Petros S) 2021-05-27 09:00:54 UTC
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'
Comment 15 Petross404(Petros S) 2021-05-27 09:01:49 UTC
Created attachment 711627 [details]
emerge --info
Comment 16 Petross404(Petros S) 2021-05-27 09:03:59 UTC
Created attachment 711630 [details]
media-libs/lcms-2.12-build.log
Comment 17 Mr. Marcelo Teixeira Ruggeri 2021-12-26 19:44:54 UTC
I can't build it either in any of the 2 computers I use.
Comment 18 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-26 19:48:00 UTC
(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.
Comment 19 Petross404(Petros S) 2022-10-18 04:29:57 UTC
(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.