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

List:       kde-devel
Subject:    Re: QT broken in cvs
From:       Michael Ritzert <kde () ritzert ! de>
Date:       2001-03-02 17:55:27
[Download RAW message or body]

On Fri, Mar 02, 2001 at 03:25:30PM +0100, Harri Porten wrote:
> [....]
> > kernel/qapplication_x11.cpp: In function `void
> > qt_set_input_encoding()':
> > kernel/qapplication_x11.cpp:817: implicit declaration of function
> > `int strcasecmp(...)'
> > make[2]: *** [kernel/qapplication_x11.o] Error 1
> > make[2]: Leaving directory `/home/mseiwert/cvs/kde/qt-copy/src'
> > make[1]: *** [src-mt] Error 2
> > make[1]: Leaving directory `/home/mseiwert/cvs/kde/qt-copy'
> > make: *** [src-mt] Error 2
> > Error during make (src-mt)!
> > 
> > Is there somone who could fix this ?
> 
> Are you using an up-to-date qt-copy ? I applied a patch ~38 hours ago.
> 
> http://webcvs.kde.org/cgi-bin/cvsweb.cgi/qt-copy/src/kernel/qapplication_x11.cpp.diff?r1=1.38&r2=1.39
> 

That one didn't help. This one looks better. The point is that qcstring.h gets \
included before strings.h in your patch and includes string.h. However, you can't \
include strings.h after string.h.

Michael



Index: src/kernel/qapplication_x11.cpp
===================================================================
RCS file: /home/kde/qt-copy/src/kernel/qapplication_x11.cpp,v
retrieving revision 1.39
diff -u -3 -p -r1.39 qapplication_x11.cpp
--- src/kernel/qapplication_x11.cpp	2001/02/28 23:39:24	1.39
+++ src/kernel/qapplication_x11.cpp	2001/03/02 17:54:37
@@ -141,7 +141,6 @@ static int qt_thread_pipe[2];
 #if defined(_OS_LINUX_)
 // This is one way to request strcasecmp().
 // In the GNU C library another way would be to define __USE_BSD.
-#include <strings.h>
 #include <string.h>
 #endif
 
Index: src/tools/qcstring.h
===================================================================
RCS file: /home/kde/qt-copy/src/tools/qcstring.h,v
retrieving revision 1.24
diff -u -3 -p -r1.24 qcstring.h
--- src/tools/qcstring.h	2001/02/26 18:08:19	1.24
+++ src/tools/qcstring.h	2001/03/02 17:54:39
@@ -43,11 +43,11 @@
 #include "qarray.h"
 #endif // QT_H
 
-#include <string.h>
-
-#if defined(_OS_SUN_) && defined(_CC_GNU_)
+#if (defined(_OS_SUN_) && defined(_CC_GNU_)) || defined(_OS_LINUX_)
 #include <strings.h>
 #endif
+
+#include <string.h>
 
 
 /*****************************************************************************

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