[Kde-print-devel] [Bug 136649] New: 64bit specific bug in KDEPrintd::processRequest()
Modestas Vainius
geromanas at mailas.com
Wed Nov 1 16:13:46 CET 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=136649
Summary: 64bit specific bug in KDEPrintd::processRequest()
Product: kdeprint
Version: unspecified
Platform: Debian testing
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: kde-print-devel kde org
ReportedBy: geromanas mailas com
Version: (using KDE KDE 3.5.5)
Installed from: Debian testing/unstable Packages
Compiler: gcc 4.1.1
OS: Linux
Attempting with to Print Server->Configure Server usually fails with the following error message:
Unable to configure print server. Error message received from manager:
Unable to retrieve configuration file from the CUPS server. You probably don't have the access permissions to perform this operation.
Then ~/.xsession-errors gets a warning:
---
Cannot communicate with kded_kpasswdserver
----
As it later turned out, actual KIO::AuthInfo queryAuthInfo(KIO::AuthInfo,QString,long int,long int) never gets called because KPasswdServer::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) fails due to insufficient arguments at:
arg >> arg2;
if (arg.atEnd()) return false; // arg.atEnd() returns true though there is still an argument (arg3) pending
The reason for this is due to incorrect notation of long int constant and assumtion that sizeof(int) == sizeof(long int) which is wrong on 64bit architectures. The attached patch fixes the problem.
More information about the Kde-print-devel
mailing list