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

List:       kde-devel
Subject:    kghostview build
From:       "Allen D. Winter" <winterz () earthlink ! net>
Date:       2003-08-12 0:11:41
[Download RAW message or body]

Developers:

Recently in kdegraphics from CVS the kghostview build has been failing for me like so:

% ./configure --disable-debug --enable-final
% make
[snip]
creating libkghostviewpart_la.all_cpp.cpp ...
source='libkghostviewpart_la.all_cpp.cpp' object='libkghostviewpart_la.all_cpp.l
o' libtool=yes \
depfile='.deps/libkghostviewpart_la.all_cpp.Plo' tmpdepfile='.deps/libkghostview
part_la.all_cpp.TPlo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I.
 -I.. -I/usr/local/KDE-CVS/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -
D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpoin
ter-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -
Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -Wformat-security -Wmissin
g-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPA
CE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o libk
ghostviewpart_la.all_cpp.lo `test -f 'libkghostviewpart_la.all_cpp.cpp' || echo
'./'`libkghostviewpart_la.all_cpp.cpp
In file included from libkghostviewpart_la.all_cpp.cpp:17:
kpswidget.cpp:37: parse error before numeric constant
make[3]: *** [libkghostviewpart_la.all_cpp.lo] Error 1
make[3]: Leaving directory `/usr/local/src/KDE3/CVS/kdegraphics/kghostview'
make[2]: *** [all-recursive] Error 1

A tiny patch fixes the problem for me (attached).
Don't know if this has been reported before.

Regards,
Allen

["kpswidget.cpp.patch" (text/x-diff)]

Index: kpswidget.cpp
===================================================================
RCS file: /home/kde/kdegraphics/kghostview/kpswidget.cpp,v
retrieving revision 1.123
diff -u -3 -p -u -r1.123 kpswidget.cpp
--- kpswidget.cpp	7 Aug 2003 11:40:42 -0000	1.123
+++ kpswidget.cpp	12 Aug 2003 00:07:01 -0000
@@ -34,7 +34,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
 
-const unsigned BUFFER_SIZE = 8192;
+#define BUFFER_SIZE (8192)
 
 int handler( Display* d, XErrorEvent* e )
 {


>> Visit http://mail.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