Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 123682
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Mobile Phone Developers <mobile-phone@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Patrizio Bassi <hetfield666@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
ksms-0.1.2-gcc41.patch gcc-4.1 patch patch Mark Loeser 2006-02-25 18:16 0000 308 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 123682 depends on: Show dependency tree
Bug 123682 blocks: 117482
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-02-22 00:48 0000
with gcc4 it fails:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I.  -I/usr/kde/3.5/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 -DNDEBUG -DNO_DEBUG -O2 -O3
-mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse
-ffast-math -Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -fexceptions  -c -o kactiveobjectproxy.o `test -f
'kactiveobjectproxy.cpp' || echo './'`kactiveobjectproxy.cpp
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include
-I/usr/qt/3/include -I.  -I/usr/kde/3.5/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 -DNDEBUG -DNO_DEBUG -O2 -O3
-mtune=pentium3 -march=pentium3 -pipe -fomit-frame-pointer -mmmx -msse
-ffast-math -Wformat-security -Wmissing-format-attribute -fno-exceptions
-fno-check-new -fno-common -fexceptions  -c -o messageformatter.o `test -f
'messageformatter.cpp' || echo './'`messageformatter.cpp
msgsender.h:45: error: &#8216;newSender&#8217; declared as a
&#8216;virtual&#8217; field
msgsender.h:45: error: expected &#8216;;&#8217; before &#8216;(&#8217; token
msgsender.h:47: error: &#8216;newMyselfSender&#8217; declared as a
&#8216;virtual&#8217; field
msgsender.h:47: error: expected &#8216;;&#8217; before &#8216;(&#8217; token
make[2]: *** [messageformatter.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/ksms-0.1.2.4/work/ksms-0.1.2/ksms'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ksms-0.1.2.4/work/ksms-0.1.2'
make: *** [all] Error 2

!!! ERROR: app-mobilephone/ksms-0.1.2.4 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  ebuild.sh, line 1609:   Called kde_src_compile
  kde.eclass, line 104:   Called kde_src_compile 'compile'
  kde.eclass, line 221:   Called kde_src_compile 'all' 'myconf' 'configure'

!!! died running emake, kde_src_compile:make
!!! If you need support, post the topmost build error, and the call stack if
relevant.

public:

    struct Factory : public KShared {
        virtual MsgSender* newSender( MsgSenderContainer& container,
                                      const QString& phoneNumber ) = 0;
        virtual MsgSender* newMyselfSender( MsgSenderContainer& container ) =
0;
        virtual ~Factory() = 0;
    };

persanally i don't know how to patch (ok...i can remove the virtual...but..)
because i never saw a struct usage like that.

------- Comment #1 From Alin Năstac 2006-02-22 22:11:48 0000 -------
A struct cannot have virtual members, not to mention virtual pure members.
Please make (and test) a patch that defines Factory as a class (class Factory :
public KShared).

------- Comment #2 From Alin Năstac 2006-02-24 14:30:37 0000 -------
someone with a =gcc-4* installed on his/her machine, please help me with this.

------- Comment #3 From Ciaran McCreesh 2006-02-25 05:20:17 0000 -------
> A struct cannot have virtual members, not to mention virtual pure members.

Erm. No. A struct can have anything a class can have.

------- Comment #4 From Mark Loeser 2006-02-25 18:16:42 0000 -------
Created an attachment (id=80728) [details]
gcc-4.1 patch

This should fix it.

------- Comment #5 From Alin Năstac 2006-02-26 01:33:23 0000 -------
(In reply to comment #3)
> > A struct cannot have virtual members, not to mention virtual pure members.
> 
> Erm. No. A struct can have anything a class can have.

True. Years of good practice can create your own reality.

Patch has been applied to ksms-0.1.2.4.

------- Comment #6 From Patrizio Bassi 2006-02-26 01:39:28 0000 -------
i confirm it's ok. thanks

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug