[Scribus] page.cpp:7932: ambiguous overload
Jeremy C. Reed
reed
Sat Apr 3 09:02:38 CEST 2004
I am trying to update scribus in pkgsrc[1] to scribus 1.1.6.
Right now, I am first testing with NetBSD using its standard gcc 2.95.3.
It seems like I have been told that I must use gcc 3.x but I have not
needed to for 1.1.2 release (with only a few minor patches).
I have qt3-tools-3.2.3nb1 and qt3-libs-3.2.3. (And also lyx which was
built with this latest qt3 using old gcc 2.95.3.)
The error is:
gmake[3]: Entering directory
`/usr/pkg/tmp/pkgsrc/print/scribus/work.rainier/scribus-1.1.6/scribus'
source='page.cpp' object='page.o' libtool=no \
depfile='.deps/page.Po' tmpdepfile='.deps/page.TPo' \
depmode=gcc /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/pkg/include/libart-2.0
-I/usr/pkg/include/freetype2 -I/usr/pkg/include -I/usr/pkg/qt3/include
-I/usr/X11R6/include -DQT_THREAD_SUPPORT -I/usr/pkg/include/freetype2
-DGLX_GLXEXT_LEGACY -I/usr/pkg/include -I/usr/X11R6/include -O2 -O2
-DGLX_GLXEXT_LEGACY -s -I/usr/pkg/include -I/usr/X11R6/include
-fno-exceptions -fno-check-new -c -o page.o `test -f 'page.cpp' || echo
'./'`page.cpp
page.cpp: In method `void Page::PasteItem(CLBuf *, bool, bool = false)':
page.cpp:7932: ambiguous overload for `bool ? const char[5] : QString &'
page.cpp:7932: candidates are: operator ?:(bool, QString, QString)
<builtin>
page.cpp:7932: operator ?:(bool, const char *, const char
*) <builtin>
page.cpp: In method `void Page::LoadPict(QString, int)':
page.cpp:8599: implicit declaration of function `int unlink(...)'
page.cpp:8599: warning: cannot pass objects of type `QString' through
`...'
page.cpp:8715: warning: cannot pass objects of type `QString' through
`...'
gmake[3]: *** [page.o] Error 1
gmake[3]: Leaving directory
`/usr/pkg/tmp/pkgsrc/print/scribus/work.rainier/scribus-1.1.6/scribus'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/pkg/tmp/pkgsrc/print/scribus/work.rainier/scribus-1.1.6/scribus'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/pkg/tmp/pkgsrc/print/scribus/work.rainier/scribus-1.1.6'
gmake: *** [all] Error 2
*** Error code 2
Any ideas?
I'd prefer to have old gcc work, since it works for kde, lyx, qt3 etc.
Thanks,
Jeremy C. Reed
http://bsd.reedmedia.net/
[1] http://www.pkgsrc.org/
More information about the scribus
mailing list