Bug 37615

Summary: Break in x11-toolkits/qt23 build from Tue Apr 30 16:24:04 PDT 2002
Product: Ports & Packages Reporter: Chris Dempsey <chrisdempsey>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Chris Dempsey 2002-05-01 00:30:01 UTC
cvsup from Tue Apr 30 16:24:04 PDT 2002

gmake[2]: Entering directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src'
c++ -pthread -D_THREAD_SAFE -DQT_THREAD_SUPPORT -c -I/usr/X11R6/include -I/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/include -pthread -D_THREAD_SAFE -I/usr/X11R6/include -DQT_PREFIX=\"/usr/X11R6\" -pipe -fno-exceptions  -O -pipe  -I/usr/include -D_PTH_H_ -D_PTH_PTHREAD_H_ -O -pipe  -fPIC -DQT_BUILTIN_GIF_READER=1 -DQT_XFT -fno-exceptions  -I/usr/local/include  -o kernel/qpsprinter.o kernel/qpsprinter.cpp
In file included from kernel/qapplication.h:42,
                 from kernel/qpsprinter.cpp:73:
kernel/qwidget.h:129: syntax error before `('
kernel/qwidget.h:417: `WId' was not declared in this scope
kernel/qwidget.h:489: `WId' was not declared in this scope
kernel/qwidget.h:489: syntax error before `='
kernel/qwidget.h:490: variable or field `create' declared void
kernel/qwidget.h:490: ANSI C++ forbids initialization of member `create'
kernel/qwidget.h:490: making `create' static
kernel/qwidget.h:490: ANSI C++ forbids in-class initialization of non-const static member `create'
kernel/qwidget.h:490: `create' declared as a `virtual' field
kernel/qwidget.h:520: `WId' was not declared in this scope
kernel/qwidget.h:520: variable or field `setWinId' declared void
kernel/qwidget.h:545: syntax error before `;'
kernel/qwidget.h:628: syntax error before `::'
cpp0: output pipe has been closed
gmake[2]: *** [kernel/qpsprinter.o] Error 1
gmake[2]: Leaving directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src'
gmake[1]: *** [src-mt] Error 2
gmake[1]: Leaving directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1'
gmake: *** [src-mt] Error 2
*** Error code 2

Stop in /usr/ports/x11-toolkits/qt23.

How-To-Repeat: cd /usr/ports/x11-toolkits/qt23 && make
Comment 1 Bjarne Wichmann Petersen 2002-05-09 12:17:54 UTC
On Wednesday 01 May 2002 01:25, Chris Dempsey wrote:

> >Number:         37615
> >Category:       ports
> >Synopsis:       Break in x11-toolkits/qt23 build from Tue Apr 30 16:24:04

> gmake[2]: Entering directory
> `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src' c++ -pthread
> -D_THREAD_SAFE -DQT_THREAD_SUPPORT -c -I/usr/X11R6/include
> -I/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/include -pthread
> -D_THREAD_SAFE -I/usr/X11R6/include -DQT_PREFIX=\"/usr/X11R6\" -pipe
> -fno-exceptions  -O -pipe  -I/usr/include -D_PTH_H_ -D_PTH_PTHREAD_H_ -O
> -pipe  -fPIC -DQT_BUILTIN_GIF_READER=1 -DQT_XFT -fno-exceptions 
> -I/usr/local/include  -o kernel/qpsprinter.o kernel/qpsprinter.cpp In file
> included from kernel/qapplication.h:42,
>                  from kernel/qpsprinter.cpp:73:
> kernel/qwidget.h:129: syntax error before `('
> kernel/qwidget.h:417: `WId' was not declared in this scope
> kernel/qwidget.h:489: `WId' was not declared in this scope
> kernel/qwidget.h:489: syntax error before `='
> kernel/qwidget.h:490: variable or field `create' declared void
> kernel/qwidget.h:490: ANSI C++ forbids initialization of member `create'
> kernel/qwidget.h:490: making `create' static
> kernel/qwidget.h:490: ANSI C++ forbids in-class initialization of non-const
> static member `create' kernel/qwidget.h:490: `create' declared as a
> `virtual' field
> kernel/qwidget.h:520: `WId' was not declared in this scope
> kernel/qwidget.h:520: variable or field `setWinId' declared void
> kernel/qwidget.h:545: syntax error before `;'
> kernel/qwidget.h:628: syntax error before `::'
> cpp0: output pipe has been closed
> gmake[2]: *** [kernel/qpsprinter.o] Error 1
> gmake[2]: Leaving directory
> `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src' gmake[1]: *** [src-mt]
> Error 2
> gmake[1]: Leaving directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1'
> gmake: *** [src-mt] Error 2
> *** Error code 2

Any fixes in sight? Seems like I've been bitten by the same bug!

Bjarne
Comment 2 Trevor Johnson freebsd_committer freebsd_triage 2002-05-14 01:50:38 UTC
Responsible Changed
From-To: freebsd-ports->kde

over to maintainer
Comment 3 Michael May 2002-05-31 12:32:23 UTC
I got exactly the same failure!!
so I viewed the sources:
and it seems that WId is'nt declared, so I edited
 qt23/work/qt-2.3.1/src/kernel/qwindowdefs.h:
 uncomment: #if defined(_WS_X11_)
            and the coresponding #endif

and then got another failure:

gmake[2]: Entering directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src'
c++ -pthread -D_THREAD_SAFE -DQT_THREAD_SUPPORT -c -I/usr/X11R6/include -I/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/include -pthread -D_THREAD_SAFE -I/usr/X11R6/include -DQT_PREFIX=\"/usr/X11R6\" -pipe -fno-exceptions  -O -pipe  -I/usr/include -D_PTH_H_ -D_PTH_PTHREAD_H_ -O -pipe  -fPIC -DQT_BUILTIN_GIF_READER=1 -DQT_XFT -fno-exceptions  -I/usr/local/include  -o kernel/qpsprinter.o kernel/qpsprinter.cpp
In file included from kernel/qpaintdevice.h:42,
                 from kernel/qprinter.h:42,
                 from kernel/qpsprinter_p.h:58,
                 from kernel/qpsprinter.cpp:66:
kernel/qwindowdefs.h:111: #error "define WId and friends to ulong always"
In file included from kernel/qpsprinter.cpp:76:
/usr/X11R6/include/qdatetime.h:79: syntax error before `='
/usr/X11R6/include/qdatetime.h:97: syntax error before `='
/usr/X11R6/include/qdatetime.h:133: syntax error before `='
/usr/X11R6/include/qdatetime.h:152: syntax error before `='
/usr/X11R6/include/qdatetime.h:192: syntax error before `='
/usr/X11R6/include/qdatetime.h:211: syntax error before `='
kernel/qpsprinter.cpp: In method `void QPSPrinterFontJapanese::drawText(QTextStream &, unsigned int, const QPoint &, const QString &, QPSPrinterPrivate *, QPainter *)':
kernel/qpsprinter.cpp:4651: `JU_Default' undeclared (first use this function)
kernel/qpsprinter.cpp:4651: (Each undeclared identifier is reported only once
kernel/qpsprinter.cpp:4651: for each function it appears in.)
kernel/qpsprinter.cpp:4682: no matching function for call to `QJpUnicodeConv::UnicodeToJisx0208 (short unsigned int &) const'
gmake[2]: *** [kernel/qpsprinter.o] Error 1
gmake[2]: Leaving directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1/src'
gmake[1]: *** [src-mt] Error 2
gmake[1]: Leaving directory `/usr/ports/x11-toolkits/qt23/work/qt-2.3.1'
gmake: *** [src-mt] Error 2
*** Error code 2

Stop in /usr/ports/x11-toolkits/qt23.


I have installed KDE 3 and I think that's the problem.....
Comment 4 jj 2002-05-31 22:37:47 UTC
>  I have installed KDE 3 and I think that's the problem.....

Yes, that's correct. :)  You may not install QT2 while you already have KDE3
(and thus QT3) installed.  If that is indeed the problem the original poster
was having, then I think we may close this bug.

Best Regards,
-jj

-- 
Users of C++ should consider hanging themselves rather than shooting their 
legs off--it's best not to use C++ simply as a better C.
Comment 5 Chris Dempsey 2002-06-03 11:33:13 UTC
I can verify the problem was fixed by removed KDE2/QT2
and installed KDE3/QT3.  Please close the PR.

Thanks!!

Chris


--- JJ Behrens <jj@nttmcl.com> wrote:
> >  I have installed KDE 3 and I think that's the
> problem.....
> 
> Yes, that's correct. :)  You may not install QT2
> while you already have KDE3
> (and thus QT3) installed.  If that is indeed the
> problem the original poster
> was having, then I think we may close this bug.
> 
> Best Regards,
> -jj
> 
> -- 
> Users of C++ should consider hanging themselves
> rather than shooting their 
> legs off--it's best not to use C++ simply as a
> better C.


=====
Christopher P Dempsey
---------------------

chrisdempsey@yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Comment 6 jj 2002-06-07 03:04:50 UTC
Will, 

I think we can close this PR.

Thanks,
-jj

-- 
Users of C++ should consider hanging themselves rather than shooting their 
legs off--it's best not to use C++ simply as a better C.
Comment 7 Pete Fritchman freebsd_committer freebsd_triage 2002-06-07 03:26:10 UTC
State Changed
From-To: open->closed

Pilot error, we can only have one QT installed at a time.