[cups.development] CUPS 1.5.0 - libiconv issue

Michael Sweet msweet at apple.com
Mon Aug 15 16:56:50 PDT 2011


On Aug 4, 2011, at 12:24 PM, Ryan Donnelly wrote:
> Hi,
> 
> Upon trying to compile CUPS 1.5.0, we run into the following error:
> 
> Linking ippserver...
> ./cups/libcups.a(transcode.o): In function `_cupsCharmapFlush':
> /home/rdonnell/cups-1.5.0/cups/transcode.c:64: undefined reference to `libiconv_close'
> /home/rdonnell/cups-1.5.0/cups/transcode.c:70: undefined reference to `libiconv_close'
> ./cups/libcups.a(transcode.o): In function `cupsCharsetToUTF8':
> /home/rdonnell/cups-1.5.0/cups/transcode.c:167: undefined reference to `libiconv_open'
> /home/rdonnell/cups-1.5.0/cups/transcode.c:168: undefined reference to `libiconv_open'
> /home/rdonnell/cups-1.5.0/cups/transcode.c:179: undefined reference to `libiconv'
> ./cups/libcups.a(transcode.o): In function `cupsUTF8ToCharset':
> /home/rdonnell/cups-1.5.0/cups/transcode.c:292: undefined reference to `libiconv_open'
> /home/rdonnell/cups-1.5.0/cups/transcode.c:293: undefined reference to `libiconv_open'
> /home/rdonnell/cups-1.5.0/cups/transcode.c:304: undefined reference to `libiconv'
> collect2: ld returned 1 exit status
> make[1]: *** [ippserver] Error 1
> make: *** [all] Error 1
> 
> 
> Is there something specifically we can do to make it past this error?  Was this due to an architecture change in 1.5.0?


We did change to using libiconv for charset conversions (instead of our own code).

You could add "-liconv" to the link line for ippserver in the test directory, but that shouldn't be necessary. What OS and compiler are you using?

________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair









More information about the cups mailing list