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

List:       kde-devel
Subject:    Re: KUser compile error
From:       Lauri Watts <lauri () kde ! org>
Date:       2001-07-01 12:02:59
[Download RAW message or body]

On Sunday 01 July 2001 02:04, John Schmidt wrote:

>
> Have you been able to find out any more on Linux user??
> Lines 406 & 411
> in propdlg::propdlg  only occur...

He has a FreeBSD machine too, and I think he checked it on the wrong one, 
given what you say here.  And you were quite right, I didn't read your mail 
closely enough, the source I have on line 517 through 517 are:

#if 0
  // HUH? What is this?
  temp_time->setTime_t(0);
  *temp_time = temp_time->addDays(lechange->date());
  user->setLastChange(epoch->secsTo(*temp_time));
#endif

  temp_time->setTime_t(0);
  *temp_time = temp_time->addDays(leexpire->date());
  user->setExpire(epoch->secsTo(*temp_time));


> #if defined(__FreeBSD__)  ||  defined(__bsdi__)
>
> I can't get to your post that had the errors you got, but
> they were the same
> as the following, correct?  Confused because "getDate"
> doesn't occur in 1.52.
>
Almost the same, instead of this:

> propdlg.cpp: In method `void propdlg::save()':
> propdlg.cpp:525: no matching function for call to
> `KDateWidget::getDate ()'
> gmake[3]: *** [propdlg.o] Error 1

I get this:

/cvs/kdeadmin/kuser/propdlg.cpp:525: no matching function for call to 
`QDateTime::addDays (QDate)'
/usr/X11R6/include/qt2/qdatetime.h:178: candidates are: class QDateTime 
QDateTime::addDays(int) const
gmake[3]: *** [propdlg.o] Error 1

> Could you try changing "group" on line 406 to "frame"  and
> "groupLayout" on
> same line to "layout"??  It will take some time to get
> FreeBSD installed on my
> PII  as well as KDE built...

Heh, I only have a PII here as well, which is why I tend to not build all the 
packages all the time, or I might have found this earlier.

However, this change gives me a shiny new error:

c++ -DHAVE_CONFIG_H -I. -I/cvs/kdeadmin/kuser -I.. -I.. -I/cvs/kdeadmin/kuser 
-I/usr/local/kde/include -I/usr/X11R6/include/qt2 -I/usr/X11R6/include  
-I/usr/local/include     -D_KU_QUOTA -DQUOTACTL_IN_LIBC -D_KU_DEBUG 
-D_SVID_SOURCE -D_GNU_SOURCE -O2 -fno-exceptions -fno-check-new 
-DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -c 
/cvs/kdeadmin/kuser/propdlg.cpp
/cvs/kdeadmin/kuser/propdlg.cpp: In method `propdlg::propdlg(KUser *, Quota 
*, QWidget * = 0, const char * = 0, int = false)':
/cvs/kdeadmin/kuser/propdlg.cpp:411: implicit declaration of function `int 
addDateGroup(...)'
/cvs/kdeadmin/kuser/propdlg.cpp:411: warning: cannot pass objects of type 
`QString' through `...'
/cvs/kdeadmin/kuser/propdlg.cpp:411: assignment to `KDateWidget *' from `int' 
lacks a cast
/cvs/kdeadmin/kuser/propdlg.cpp: In method `void propdlg::save()':
/cvs/kdeadmin/kuser/propdlg.cpp:525: no matching function for call to 
`QDateTime::addDays (QDate)'
/usr/X11R6/include/qt2/qdatetime.h:178: candidates are: class QDateTime 
QDateTime::addDays(int) const
gmake[1]: *** [propdlg.o] Error 1

-- 
Lauri
 
>> 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