Symbian developer community

 

Forums

Reply
 
Thread Tools Display Modes
  #1  
Old 2010-03-06, 15:32
bdonegan's Avatar
bdonegan bdonegan is offline
Staff
 
Join Date: 2009 Apr
Posts: 816
Default build error caused by commsdebugutility.h

I'm trying to build the Podcatcher application under Symbian^3 and I'm running into a build error:

Code:
FAILED win32compile2object for winscw_urel:  ..\engine\src\HttpEventHandler.cpp
 mmp: ..\engine\group\engine.mmp
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: object
'KLogBufferSize' redefined
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: (included from:
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\cfextras.h:26
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\elements\sd_thread.h:24
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\elements\sd_std.h:27
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\comms-infras\api_ext_msg.h:25
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\comms-infras\es_mobility_apiext.h:28
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\epoc32\include\comms-infras\cs_mobility_apiext.h:24
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\sf\incubator\podcatcher\engine\inc\connectionengine.h:27
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\sf\incubator\podcatcher\engine\inc\Httpclient.h:26
  Y:\epoc32\include\comms-infras\commsdebugutility.h:49: 
Y:\sf\incubator\podcatcher\engine\src\HttpEventHandler.cpp:25)
KLogBufferSize isn't defined in the Podcatcher source at all so it must be redefined somewhere else. I'm a bit lost as to how to figure out where. Has anyone come across this issue before?
Reply With Quote
  #2  
Old 2010-03-06, 18:43
simonm's Avatar
simonm simonm is offline
Symbian Foundation Community Member.
 
Join Date: 2009 Apr
Posts: 86
Default

I haven't come across this problem myself, but its likely that it's also defined elsewhere in a header that's being pulled in from somewhere else?

There are some likely candidates here, although I couldn't say which one is the problem: http://developer.symbian.org/xref/os...ject=/Symbian3

I would try renaming one of the instances; "KLogBufferSize" is a bit generic as variable names go!
Reply With Quote
  #3  
Old 2010-03-07, 11:06
bdonegan's Avatar
bdonegan bdonegan is offline
Staff
 
Join Date: 2009 Apr
Posts: 816
Default

By renaming the KLogBufferSize in commsdebugutils.h, I can (obviously) remove this issue. It's a bit crap that I have to go hacking the OS code to get an app to build, but hey - at least it's an option!
Reply With Quote
  #4  
Old 2010-03-07, 14:25
chrisd's Avatar
chrisd chrisd is offline
Symbian Foundation Community Member.
 
Join Date: 2009 Apr
Posts: 34
Default commsdebugutility.h and flogger.h clash

I think this is because public headers are using CDU and flogger together.

See discussion in bug1512 :
http://developer.symbian.org/bugs/show_bug.cgi?id=1512
Reply With Quote
  #5  
Old 2010-03-07, 16:10
bdonegan's Avatar
bdonegan bdonegan is offline
Staff
 
Join Date: 2009 Apr
Posts: 816
Default

Yes, I realised this after renaming KLogBufferSize and then running into RFileLogger redefined! So in fact others are having this issue, and in precisely the same way as I am!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads.
You may not post replies.
You may not post attachments.
You may not edit your posts.

BB code is On.
Smilies are On.
[IMG] code is On.
HTML code is Off.


Forum Jump

Powered by vBulletin · Copyright © 2010 vBulletin Solutions, Inc.