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

List:       kde-devel
Subject:    dcopidl segfault on AIX fixed!
From:       Platzer Wolfgang <wolfgang.platzer () infonova ! at>
Date:       2000-05-31 9:07:35
[Download RAW message or body]

On aix I always get a segmentation fault when using dcopidl.
 
Firstly I tracked to problem down to kdelibs\dcop\dcopidl\yacc.cc where the
line
 
 yyval._str = new QString( *(yyvsp[-2]._str) + (*(yyvsp[0]._str) ));

causes the error. Especially the operator+ overloading of QString does not
work.
 
After compiling dcopidl in a new project with only the necessary libs used
when linking I found out, that dcopidl worked fine.
 
And the problem was: kde-qt-addon!!!! 
If I use -lkde-qt-addon when linking this problem occurs again.
 
So kde-at-addon seems to define operator+ for QString again???
 
Maybe the order of the libs is important? What can I do?
 
 
wolfgang

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.00.3017.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>On aix I always get 
a segmentation fault when using dcopidl.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>Firstly I tracked to 
problem down to kdelibs\dcop\dcopidl\yacc.cc where the line</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>&nbsp;yyval._str = 
new QString( *(yyvsp[-2]._str) + (*(yyvsp[0]._str) ));<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>causes the error. 
Especially the operator+ overloading of QString does not 
work.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>After compiling 
dcopidl in a new project with only the necessary libs used when linking I found 
out, that dcopidl worked fine.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>And the problem was: 
kde-qt-addon!!!! </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>If I use 
-lkde-qt-addon when linking this problem occurs again.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>So kde-at-addon 
seems to define operator+ for QString again???</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=814465508-31052000>Maybe the order of 
the libs is important? What can I do?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=814465508-31052000>wolfgang</DIV></SPAN></FONT></BODY></HTML>

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