Thread: [Lcms-user] Oy, undefined reference to `pow'
An ICC-based CMM for color management
Brought to you by:
mm2
From: Ashley M. K. <as...@pc...> - 2001-12-04 22:57:02
|
I seem to recall hitting this before, and I don't think I ever solved it, and if I did, for the life of me I can't remember what I did. The system is a RedHat 7.1 OS (with that bloody GCC 2.96). lcms version 1.07. Building testbed... /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': /usr/local/src/ImageMagick/delegates/lcms-1.07/src/cmsgamma.c:62: undefined reference to `pow' collect2: ld returned 1 exit status Suggestions anyone? -- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |
From: Karl H. K. <kh...@kh...> - 2001-12-05 00:58:42
|
Just add -lm to the linker flags in the Makefile. I don't have access to the sources right now, so I can not be more specific. If you need more information, just let me know and I'll try to come up with better instructions. Karl Heinz On Tue, Dec 04, 2001 at 04:01:35PM -0700, Ashley M. Kirchner wrote: >=20 > I seem to recall hitting this before, and I don't think I ever > solved it, and if I did, for the life of me I can't remember what I > did. The system is a RedHat 7.1 OS (with that bloody GCC 2.96). lcms > version 1.07. >=20 > Building testbed... > /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': > /usr/local/src/ImageMagick/delegates/lcms-1.07/src/cmsgamma.c:62: > undefined reference to `pow' > collect2: ld returned 1 exit status >=20 > Suggestions anyone? >=20 > -- > W | I haven't lost my mind; it's backed up on tape somewhere. > +-------------------------------------------------------------------- > Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 > IT Director / SysAdmin / WebSmith . 800.441.3873 x130 > Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 > http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. >=20 >=20 >=20 > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > https://lists.sourceforge.net/lists/listinfo/lcms-user --=20 Karl Heinz Kremer kh...@kh... PGP Key at http://www.khk.net/download/khk.asc EPSON Sane Backend: http://www.khk.net |
From: Ashley M. K. <as...@pc...> - 2001-12-05 01:49:42
|
Karl Heinz Kremer wrote: > Just add -lm to the linker flags in the Makefile. I don't have > access to the sources right now, so I can not be more specific. If > you need more information, just let me know and I'll try to come > up with better instructions. Odd, I'm looking at testbed/Makefile and this is what it has in it: testcms: testcms.o ../src/liblcms.a $(CC) $(CFLAGS) testcms.o ../src/liblcms.a -o $@ -lm So why is it still failing? -- H | "Life is the art of drawing without an eraser." - John Gardner +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 Director of Internet Operations / SysAdmin . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave, #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |
From: Laurent M. <la...@be...> - 2001-12-05 03:58:02
|
>>>>> "Ashley" == Ashley M Kirchner <as...@pc...> writes: Ashley> Karl Heinz Kremer wrote: >> Just add -lm to the linker flags in the Makefile. I don't have >> access to the sources right now, so I can not be more >> specific. If you need more information, just let me know and I'll >> try to come up with better instructions. Ashley> Odd, I'm looking at testbed/Makefile and this is what it Ashley> has in it: Ashley> testcms: testcms.o ../src/liblcms.a $(CC) $(CFLAGS) Ashley> testcms.o ../src/liblcms.a -o $@ -lm Ashley> So why is it still failing? Try putting -lm before testcms.o -- Laurent Martelli la...@be... http://www.bearteam.org/~laurent/ |
From: Ashley M. K. <as...@pc...> - 2001-12-05 04:13:48
|
Laurent Martelli wrote: > Try putting -lm before testcms.o Nope. It still fails if I run it through the install.gcc script. However, if I just issue a 'make' in the main directory, everything compiles just fine, including the testbed. Something with the script causes it to fail. Running 'testcms' gives me the following (you tell me if this is the expected result, or not - I don't know): # ./testcms little cms testbed. ver 1.2 build Dec 4 2001 21:03:01 Testing fixed point: 2.8848960205 = 2.8848 0.437499269828536 = 0.4375 Testing fixed scaling...Ok! Testing linear interpolation ...Ok! 3350000 tics Testing descending tables (linear interpolation) ...Ok! Emulating sRGB from primaries & White point: sRGB final matrix is: [ 0.436066 0.385147 0.143066 ] [ 0.222488 0.716873 0.060608 ] [ 0.013916 0.097076 0.714096 ] lcms calculated matrix is: [ 0.436066 0.385114 0.143105 ] [ 0.222493 0.716923 0.060627 ] [ 0.0139346 0.0970567 0.714108 ] Testing CIELab conversion: 1=IEC 61966-2.1 Default RGB colour space - sRGB - IEC http://www.iec.ch 2=sRGB ColorSpace Conversion Profile Ok!. Out of encodeable representation=0 Error Induced by the CMM due to roundoff (dE) Testing little cms Relative L*a*b* identity profile: dE : mean=0.00386782, SD=0.531602, max=0.00676582 : 3640000 tics, 36400 sec. Testing preview dE : mean=0.00386782, SD=0.531602, max=0.00676582 : 3640000 tics, 36400 sec. Success. # -- H | "Life is the art of drawing without an eraser." - John Gardner +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 Director of Internet Operations / SysAdmin . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave, #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |
From: Laurent M. <la...@be...> - 2001-12-05 04:33:54
|
>>>>> "Ashley" == Ashley M Kirchner <as...@pc...> writes: Ashley> Laurent Martelli wrote: >> Try putting -lm before testcms.o Ashley> Nope. It still fails if I run it through the Ashley> install.gcc script. However, if I just issue a 'make' in Ashley> the main directory, everything compiles just fine, including Ashley> the testbed. Something with the script causes it to fail. Ashley> Running 'testcms' gives me the following (you tell me if Ashley> this is the expected result, or not - I don't know): I have version 1.08, and sligthly different results : oil:testbed$./testcms little cms testbed. Ver 1.08 [build Nov 27 2001 23:51:48] Testing fixed point: 2.8848960205 = 2.8848 0.437499269828536 = 0.4374 Testing fixed scaling...pass. Testing linear interpolation ...pass. (2790000 tics) Testing descending tables (linear interpolation)...pass. Testing reverse linear interpolation on normal monotonic curve...pass. on degenerated curve ...pass. Testing 3D interpolation on LUT...pass. Testing virtual profiles (Emulating sRGB)...pass. Testing sRGB built-in space......... dE: mean=0.0162369, SD=0.0087262, max=0.0441938 pass. Using two real profiles.........pass Error Induced by the CMM due to roundoff (dE) ......... dE: mean=0.00385277, SD=0.00206849, max=0.0067395 [1670000 tics, 16700 sec.] Testing preview......... dE: mean=0.00385277, SD=0.00206849, max=0.0067395 [1680000 tics, 16800 sec.] Checking multiprofile transforms (6 profiles):......... dE: mean=0.12207, SD=0.171105, max=1.38473 [1720000 tics, 17200 sec.] Success. -- Laurent Martelli la...@be... http://www.bearteam.org/~laurent/ |
From: <ma...@li...> - 2001-12-05 08:42:42
|
Hi, This is solved in version 1.08 Regards, Martí Maria The little cms project http://www.littlecms.com ma...@li... ----- Original Message ----- From: "Ashley M. Kirchner" <as...@pc...> To: "Little CMS Mailing List" <lcm...@li...> Sent: Tuesday, December 04, 2001 7:41 PM Subject: [Lcms-user] Oy, undefined reference to `pow' > > I seem to recall hitting this before, and I don't think I ever > solved it, and if I did, for the life of me I can't remember what I > did. The system is a RedHat 7.1 OS (with that bloody GCC 2.96). lcms > version 1.07. > > Building testbed... > /usr/lib/liblcms.a(cmsgamma.o): In function `FGamma': > /usr/local/src/ImageMagick/delegates/lcms-1.07/src/cmsgamma.c:62: > undefined reference to `pow' > collect2: ld returned 1 exit status > > Suggestions anyone? > > -- > W | I haven't lost my mind; it's backed up on tape somewhere. > +-------------------------------------------------------------------- > Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 > IT Director / SysAdmin / WebSmith . 800.441.3873 x130 > Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 > http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. > > > > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > https://lists.sourceforge.net/lists/listinfo/lcms-user > > |