Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10173 - Kopete fails to build
Summary: Kopete fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-03 21:47 UTC by Rayiner Hashem
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rayiner Hashem 2002-11-03 21:47:35 UTC
Kopete 0.5-1 fails to build under KDE 3.1 RC1 and it's version of Qt. The problem is due to an   
inability to convert a QString to a std::string in icqprotocol.cpp. The following patch fixes the  
problem.   
>>>>>>>>>>>>>>>>> latin1.patch >>>>>>>>>>>>> 
 
diff -Naur kopete-0.5-1/kopete/protocols/icq_new/icqprotocol.cpp 
kopete-0.5-2/kopete/protocols/icq_new/icqprotocol.cpp 
--- kopete-0.5-1/kopete/protocols/icq_new/icqprotocol.cpp	2002-10-15 21:27:17.000000000 
-0400 
+++ kopete-0.5-2/kopete/protocols/icq_new/icqprotocol.cpp	2002-11-03 20:49:15.000000000 
-0500 
@@ -86,17 +86,17 @@ 
  
 	engine->owner->Uin = mPrefs->uin().toULong(); 
 	engine->storePassword( mPrefs->passwd() ); 
-	engine->ServerHost = mPrefs->serverAdress(); 
+	engine->ServerHost = mPrefs->serverAdress().latin1(); 
 	engine->ServerPort = mPrefs->serverPort(); 
  
 	if ( mPrefs->useProxy() ) 
 	{ 
 		engine->ProxyType = mPrefs->proxyType(); 
-		engine->ProxyHost = mPrefs->proxyServerAdress(); 
+		engine->ProxyHost = mPrefs->proxyServerAdress().latin1(); 
 		engine->ProxyPort = mPrefs->proxyPort(); 
 		engine->ProxyAuth = mPrefs->proxyAuth(); 
-		engine->ProxyUser = mPrefs->proxyAuthUser(); 
-		engine->ProxyPasswd = mPrefs->proxyAuthPassword(); 
+		engine->ProxyUser = mPrefs->proxyAuthUser().latin1(); 
+		engine->ProxyPasswd = mPrefs->proxyAuthPassword().latin1(); 
 	} 
 	else 
 	{ 
@@ -118,7 +118,7 @@ 
  
 	ICQUser *mySelf = static_cast<ICQUser*>(engine->owner); //new ICQUser(); 
 	mySelf->Uin = mPrefs->uin().toULong(); 
-	mySelf->Nick = mPrefs->nickName(); 
+	mySelf->Nick = mPrefs->nickName().latin1(); 
 	engine->setInfo(mySelf); 
 	KopeteMetaContact *meta = new KopeteMetaContact(); 
 	QString protocolId = id(); 
@@ -266,8 +266,8 @@ 
 		} 
 */ 
  
-		user->Alias = alias; 
-		user->Nick = alias; // initial nickname setting 
+		user->Alias = alias.latin1(); 
+		user->Nick = alias.latin1(); // initial nickname setting 
  
 		ICQContact *contact = new ICQContact(protocolId, metaContact, user, this); 
 		KopeteContact *c = contact; 
@@ -395,7 +395,7 @@ 
 	} 
  
 	if ( !alias.isEmpty() && QString(user->Alias.c_str()).isEmpty() ) 
-		user->Alias = QString(alias); 
+		user->Alias = QString(alias).latin1(); 
  
 	QString protocolId = this->id(); 
 	ICQContact *contact = new ICQContact( protocolId, meta, user, this); 
@@ -424,7 +424,7 @@ 
 		kdDebug() << "[ICQProtocol] findGroup(), creating group " << groupName << "." << 
endl; 
 		ICQGroup *tmpG = new ICQGroup(); 
 		ICQGroup *group = engine->getGroup(engine->contacts.getGroupId(tmpG), true); 
-		group->Name = groupName; 
+		group->Name = groupName.latin1(); 
 		delete tmpG; 
 		return group; 
 	} 
@@ -1006,7 +1006,7 @@ 
 	} 
 	if (ICQChangeStatus::getStatusMessage(this, ICQ_STATUS_NA) != "QDialog::Rejected") 
 	{ 
-		engine->owner->AutoResponseNA = mPrefs->naMessage(); 
+		engine->owner->AutoResponseNA = mPrefs->naMessage().latin1(); 
 		if ( engine->m_state != ICQClient::Logged ) connectAttempt(); 
 		engine->setStatus(ICQ_STATUS_NA); 
 	} 
@@ -1043,7 +1043,7 @@ 
  
 	if (ICQChangeStatus::getStatusMessage(this, ICQ_STATUS_OCCUPIED) != 
"QDialog::Rejected") 
 	{ 
-		engine->owner->AutoResponseOccupied = mPrefs->occMessage(); 
+		engine->owner->AutoResponseOccupied = mPrefs->occMessage().latin1(); 
 		if ( engine->m_state != ICQClient::Logged ) connectAttempt(); 
 		engine->setStatus(ICQ_STATUS_OCCUPIED); 
 	} 
@@ -1069,7 +1069,7 @@ 
 	} 
 	if (ICQChangeStatus::getStatusMessage(this, ICQ_STATUS_DND) != 
"QDialog::Rejected") 
 	{ 
-		engine->owner->AutoResponseDND = mPrefs->dndMessage(); 
+		engine->owner->AutoResponseDND = mPrefs->dndMessage().latin1(); 
 		if ( engine->m_state != ICQClient::Logged ) connectAttempt(); 
 		engine->setStatus(ICQ_STATUS_DND); 
 //		statusBarIcon->setPixmap(dndIcon); 
@@ -1078,7 +1078,7 @@ 
  
 void ICQProtocol::setAway(void) 
 { 
-	engine->owner->AutoResponseAway = KopeteAway::message(); 
+	engine->owner->AutoResponseAway = KopeteAway::message().latin1(); 
 	if ( engine->m_state != ICQClient::Logged ) connectAttempt(); 
 	engine->setStatus ( ICQ_STATUS_AWAY ); 
 } 
@@ -1106,18 +1106,18 @@ 
 	 
 	ICQUser *mySelf = new ICQUser(); 
 	mySelf->Uin = mPrefs->uin().toULong(); 
-	mySelf->Nick = mPrefs->nickName(); 
+	mySelf->Nick = mPrefs->nickName().latin1(); 
 	engine->setInfo(mySelf); 
 	engine->owner->Uin = mPrefs->uin().toULong(); 
  
 	if ( mPrefs->useProxy() ) 
 	{ 
 		engine->ProxyType = mPrefs->proxyType(); 
-		engine->ProxyHost = mPrefs->proxyServerAdress(); 
+		engine->ProxyHost = mPrefs->proxyServerAdress().latin1(); 
 		engine->ProxyPort = mPrefs->proxyPort(); 
 		engine->ProxyAuth = mPrefs->proxyAuth(); 
-		engine->ProxyUser = mPrefs->proxyAuthUser(); 
-		engine->ProxyPasswd = mPrefs->proxyAuthPassword(); 
+		engine->ProxyUser = mPrefs->proxyAuthUser().latin1(); 
+		engine->ProxyPasswd = mPrefs->proxyAuthPassword().latin1(); 
 	} 
 	else 
 	{ 
 
>>>>>>>>>>>>>> end latin1.patch >>>>>>>>>>>>>>>>>
Comment 1 Hannes Mehnert (RETIRED) gentoo-dev 2002-11-04 07:35:30 UTC
fixed, thanks for submission