[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kdelibs/kssl compile errors
From:       Thiago Macieira <thiagom () mail ! com>
Date:       2001-03-13 0:10:30
[Download RAW message or body]

Rob Napier wrote:

> In file included from kssl.cc:44:
> .../kdecore/ksockaddr.h:397: parse error before `1'
> .../kdecore/ksockaddr.h:415: parse error before `1'
> 
> Seems somehow to be related to the definition of sockaddr_un, but I'm
> guessing.

Indeed. But ksockaddr.h shouldn't have been included anyways. Please 
check if the follow patch works.

That is a temporary workaround, since that part of the code will be 
rewritten to use the real ksockaddr.h (KSocketAddress). By the way, that 
section of the code is completely broken in regards to the IP, by 
assuming it's 32 bits long.

-- 
  Thiago Macieira - UFOT Registry number: 1001
  thiagom@mail.com talha@geocities.com
    ICQ UIN: 1967141  PGP: 0x8F2978D5 and 0xEA9037A5
      Registered Linux user #65028

197/387. You stood by me...when most people would have run for the 
nearest airlock. You were willing to see past my shortcomings, and to 
take all the bumps and bruises that came along with it. You made me a 
better person. Even though I put up one hell of a fight. -- Lt. B'Elanna 
Torres, "Course: Oblivion"

["kssl.cc-socklen.diff" (text/plain)]

Index: kssl.cc
===================================================================
RCS file: /home/kde/kdelibs/kssl/kssl.cc,v
retrieving revision 1.22
diff -u -3 -p -r1.22 kssl.cc
--- kssl.cc	2001/03/11 18:12:57	1.22
+++ kssl.cc	2001/03/12 23:57:34
@@ -41,7 +41,7 @@
 #include <kdebug.h>
 #include <kstddirs.h>
 #include <ksock.h>
-#include <ksockaddr.h>
+//#include <ksockaddr.h>
 
 class KSSLPrivate {
 public:
@@ -338,7 +338,7 @@ void KSSL::setPeerInfo(int sock) {
 // FIXME: Set the right value here
 //                          d->m_cert_vfy_res);
   ksockaddr_in sa;
-  ksocklen_t nl = sizeof(ksockaddr_in);
+  unsigned nl = sizeof(ksockaddr_in); // should be socklen_t
   int rc = getpeername (sock, (sockaddr *)&sa, &nl);
 
   if (rc != -1) {

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic