Compile Problems with 0.8.4

Discussion Forum for YPOPs!/Linux.


Compile Problems with 0.8.4

Postby chrisretusn on January 22nd, 2006, 8:12 am

Hi,

Using Slackware 10.2. Successfully compiled and currently using 0.8.3 from ypops-src-0.8.3.zip

Wanting to update to 0.8.4 I did a CVS checkout of the latest source code. I ran in to a few problems when compiling. (No ypops-src-0.8.4.zip available.)

First was with DataHolder.cpp lines 242 and 246, undeclared variables `m_bSecureMode' and `m_bUseMD5'. Since this appeared to be part of the desupported MD5, I commenting out the applicable sections of code in DataHolder.cpp

Second was with WebBrowser.cpp, line 691 warning: cannot pass objects of non-POD type `class CStdString' through `...'; call will abort at runtime

Code at line 691 was as follows:
logFile.Write(LOG_BASIC, "<%s> Login to Yahoo Mail succeeded.", username);

After review of the code, it looked as LPCTSTR() had inadvertently left out of the code so I changed line 691 to:
logFile.Write(LOG_BASIC, "<%s> Login to Yahoo Mail succeeded.", LPCTSTR(username));

Third also in WebBrowser.cpp:

In member function `CStringEx CWebBrowser::GetLogDir()':
1981: error: `_MAX_PATH' undeclared (first use this function)
1983: error: `wdir' undeclared (first use this function)
1983: error: `_getcwd' undeclared (first use this function)

If appeared most of this function was for WIN32 (direct.h) so I added an ifdef declaration to exclude the section of code that was causing the problem.
Code: Select all
CStringEx CWebBrowser::GetLogDir()
{
    CStringEx logdir = logdirenv ? logdirenv : DEFLOGDIR;
#ifdef WIN32
    if (logdir.Compare(".") == 0) {
       // Get the current working directory:
        char wdir[_MAX_PATH];

        if( _getcwd( wdir, _MAX_PATH-1 ) != NULL ) {
            wdir[_MAX_PATH] = '\0';
            logdir =  CStringEx(wdir);
        }
    }
#endif
    return logdir;
}


After making the above changes, make completed without error, however, ypops fails to load (hangs). So I guess I missed something. Any help would be appreciated. Back to using 0.8.3

User avatar
chrisretusn
YPOPs! Veteran
YPOPs! Veteran
 
Posts: 240
Joined: May 7th, 2005, 8:11 pm
Location: Philippines

Return to YPOPs!/Linux

Who is online

Users browsing this forum: No registered users and 0 guests

paw prints
SourceForge