[Bug 149225] New: - Can't connect to CUPS server in mixed ipv4/ipv6
bugzilla-daemon@bugzilla.gnome.org
bugzilla-daemon@bugzilla.gnome.org
Tue, 3 Aug 2004 18:17:37 -0400 (EDT)
http://bugzilla.gnome.org/show_bug.cgi?id=149225
gnome-print | gnome-cups-manager | Ver: unspecified
Summary: Can't connect to CUPS server in mixed ipv4/ipv6
Product: gnome-print
Version: unspecified
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gnome-cups-manager
AssignedTo: jody@gnome.org
ReportedBy: seb128@debian.org
CC: pkg-gnome-maintainers@lists.alioth.debian.org
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;"
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.