backported HEAD

Pavel Troller patrol at sinus.cz
Wed Nov 10 09:50:44 GMT 2004


> Hi!
> 
> The HEAD code of khtml and kjs (and the two mimetypes added) 
> is in KDE_3_3_BRANCH now. I wonder if this patch is all to hide
> .layers even more. If not, I would leave it as it is.
> 
Hi!
  It's really great, but I cannot compile it, it hardly fails in kjs:

if /bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kio/kssl -I..  -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/opt/qt3.2/include -I/opt/X11/include -I/opt/kde3.3/include -I/opt/sound/include -I/opt/samba/include -I/opt/kde3.3/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -O2 -march=i586 -mcpu=i586 -fomit-frame-pointer -fforce-mem -fforce-addr -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -MT libkjs_la.all_cpp.lo -MD -MP -MF ".deps/libkjs_la.all_cpp.Tpo" \
  -c -o libkjs_la.all_cpp.lo `test -f 'libkjs_la.all_cpp.cpp' || echo './'`libkjs_la.all_cpp.cpp; \
then mv ".deps/libkjs_la.all_cpp.Tpo" ".deps/libkjs_la.all_cpp.Plo"; \
else rm -f ".deps/libkjs_la.all_cpp.Tpo"; exit 1; \
fi
In file included from libkjs_la.all_cpp.cpp:3:
date_object.cpp: In member function `virtual KJS::Value 
   KJS::DateProtoFuncImp::call(KJS::ExecState*, KJS::Object&, const KJS::List&)
   ':
date_object.cpp:341: warning: `%x' yields only last 2 digits of year in some 
   locales
date_object.cpp:352: warning: `%c' yields only last 2 digits of year in some 
   locales
date_object.cpp:356: warning: `%x' yields only last 2 digits of year in some 
   locales
In file included from libkjs_la.all_cpp.cpp:3:
date_object.cpp: In member function `virtual KJS::Object 
   KJS::DateObjectImp::construct(KJS::ExecState*, const KJS::List&)':
date_object.cpp:523: error: cannot convert `KJS::Value' to `double' in 
   assignment
date_object.cpp:539: error: cannot convert `KJS::Number' to `double' in 
   assignment
date_object.cpp:544: error: invalid initialization of reference of type 'const 
   KJS::Value&' from expression of type 'double'
date_object.h:124: error: in passing argument 1 of `KJS::Value 
   KJS::timeClip(const KJS::Value&)'
In file included from libkjs_la.all_cpp.cpp:3:
date_object.cpp: In member function `virtual KJS::Value 
   KJS::DateObjectFuncImp::call(KJS::ExecState*, KJS::Object&, const 
   KJS::List&)':
date_object.cpp:585: error: no matching function for call to `KJS::Number::
   Number(KJS::Value)'
date_object.cpp:459: error: candidates are: KJS::Number::Number(const 
   KJS::Number&)
internal.h:157: error:                 KJS::Number::Number(KJS::NumberImp*)
value.h:376: error:                 KJS::Number::Number(long unsigned int)
value.h:375: error:                 KJS::Number::Number(long int)
value.h:374: error:                 KJS::Number::Number(double)
value.h:373: error:                 KJS::Number::Number(unsigned int)
value.h:372: error:                 KJS::Number::Number(int)
In file included from libkjs_la.all_cpp.cpp:3:
date_object.cpp: At global scope:
date_object.cpp:607: error: `double KJS::parseDate(const KJS::UString&)' should 
   have been declared inside `KJS'
date_object.cpp: In function `double KJS::parseDate(const KJS::UString&)':
date_object.cpp:607: error: new declaration `double KJS::parseDate(const 
   KJS::UString&)'
date_object.h:122: error: ambiguates old declaration `KJS::Value 
   KJS::parseDate(const KJS::UString&)'
date_object.cpp: At global scope:
date_object.cpp:672: error: `double KJS::makeTime(tm*, int, bool)' should have 
   been declared inside `KJS'
date_object.cpp: In function `double KJS::makeTime(tm*, int, bool)':
date_object.cpp:672: error: new declaration `double KJS::makeTime(tm*, int, 
   bool)'
date_object.h:125: error: ambiguates old declaration `KJS::Number 
   KJS::makeTime(tm*, int, bool)'
In file included from libkjs_la.all_cpp.cpp:3:
date_object.cpp: At global scope:
date_object.cpp:1019: error: `double KJS::timeClip(double)' should have been 
   declared inside `KJS'
In file included from libkjs_la.all_cpp.cpp:6:
/usr/share/bison/bison.simple:49:6: warning: "YYSTACK_USE_ALLOCA" is not defined
/usr/share/bison/bison.simple:208:5: warning: "YYPURE" is not defined
/usr/share/bison/bison.simple:376:6: warning: "YYPURE" is not defined
/usr/share/bison/bison.simple:385:5: warning: "YYPURE" is not defined
make: *** [libkjs_la.all_cpp.lo] Error 1

Yes, I'm using --enable-final, but I hope it's not caused by that.

                                   With regards, Pavel Troller




More information about the kfm-devel mailing list