GNOME Bugzilla – Bug 149225
Can't connect to CUPS server in mixed ipv4/ipv6
Last modified: 2008-01-29 13:10:18 UTC
This bug has been reported in the Debian BTS: http://bugs.debian.org/217257 "When running gnome-cups-manager it displays the following error and exits: The CUPS server could not be contacted. I have done some debugging and research, and apparently the bug is caused by gethostbyname. I'm using a 2.6 kernel with both ipv4 and ipv6 support, and this seems to cause the troubles. The call to gnome_program_init in main sets the RES_USE_INET6 flag in _res.options. After that all calls to gethostbyname returns an ipv6 address instead of ipv4. The function httpConnectEncrypt in libcups2 doesn't like ipv6 addresses and fails and then gnome_cups_check_daemon in libgnomecups also fails. One quick fix is to reset the RES_USE_INET6 flag after the call to gnome_program_init: _res.options &= ~RES_USE_INET6;"
Why isn't this a problem for any program using libcups2?
this sounds like a libcups bug. Did you file it with them?
Moving all gnome-cups-manager bugs to new product. Filter on Kjartan's spring cleaning.