PrimeGrid
Please visit donation page to help the project cover running costs for this month

Advanced search

Message boards : Project Staging Area : Cannot compile prclient 3.1.5

Author Message
Profile valtercProject donor
Volunteer tester
Send message
Joined: 30 May 07
Posts: 119
ID: 8810
Credit: 5,578,274,110
RAC: 2,122,623
321 LLR Ruby: Earned 2,000,000 credits (3,196,408)Cullen LLR Ruby: Earned 2,000,000 credits (2,023,566)ESP LLR Ruby: Earned 2,000,000 credits (2,021,061)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,080,021)PPS LLR Sapphire: Earned 20,000,000 credits (20,089,086)PSP LLR Ruby: Earned 2,000,000 credits (2,109,761)SoB LLR Ruby: Earned 2,000,000 credits (2,069,227)SR5 LLR Ruby: Earned 2,000,000 credits (2,019,335)SGS LLR Ruby: Earned 2,000,000 credits (2,742,172)TPS LLR (retired) Bronze: Earned 10,000 credits (20,001)TRP LLR Ruby: Earned 2,000,000 credits (2,017,688)Woodall LLR Ruby: Earned 2,000,000 credits (2,099,788)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (60,722,401)Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,247,691)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (42,978,961)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (3,903,764,274)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (36,215,460)TRP Sieve (suspended) Double Bronze: Earned 100,000,000 credits (102,264,922)AP 26/27 Sapphire: Earned 20,000,000 credits (20,537,729)GFN Turquoise: Earned 5,000,000 credits (5,192,662)PSA Double Amethyst: Earned 1,000,000,000 credits (1,343,866,777)
Message 20758 - Posted: 2 Feb 2010 | 10:30:22 UTC

I am trying to build the latest prpclient app and found the following errors:

g++ -c -g -O2 -Wall SharedMemoryItem.cpp SharedMemoryItem.cpp: In constructor `SharedMemoryItem::SharedMemoryItem(char*)': SharedMemoryItem.cpp:16: cannot convert `pthread_mutex_t*' to ` pthread_mutexattr_t*' for argument `1' to `int pthread_mutexattr_settype(pthread_mutexattr_t*, int)' SharedMemoryItem.cpp: In destructor `SharedMemoryItem::~SharedMemoryItem()': SharedMemoryItem.cpp:29: `ih_PhtreadMutex' undeclared (first use this function) SharedMemoryItem.cpp:29: (Each undeclared identifier is reported only once for each function it appears in.)


Doing this on Linux 2.4.21-47.ELsmp with gcc version 3.2.3

Any hints?

LexsProject donor
Volunteer developer
Avatar
Send message
Joined: 16 Mar 08
Posts: 61
ID: 20289
Credit: 49,033,000
RAC: 0
321 LLR Amethyst: Earned 1,000,000 credits (1,281,253)Cullen LLR Ruby: Earned 2,000,000 credits (2,050,895)PPS LLR Jade: Earned 10,000,000 credits (10,537,729)PSP LLR Ruby: Earned 2,000,000 credits (2,162,049)SoB LLR Amethyst: Earned 1,000,000 credits (1,170,185)SGS LLR Ruby: Earned 2,000,000 credits (2,003,465)TPS LLR (retired) Silver: Earned 100,000 credits (253,775)TRP LLR Ruby: Earned 2,000,000 credits (2,057,863)Woodall LLR Amethyst: Earned 1,000,000 credits (1,156,322)321 Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,580,131)Cullen/Woodall Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,010,671)PPS Sieve Jade: Earned 10,000,000 credits (17,904,428)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,000,607)TRP Sieve (suspended) Amethyst: Earned 1,000,000 credits (1,193,192)AP 26/27 Ruby: Earned 2,000,000 credits (2,500,663)PSA Amethyst: Earned 1,000,000 credits (1,166,390)
Message 20759 - Posted: 2 Feb 2010 | 10:51:28 UTC - in response to Message 20758.
Last modified: 2 Feb 2010 | 11:04:33 UTC

That's a few typos in there, it should read:

// Constructor
SharedMemoryItem::SharedMemoryItem(char *itemName)
{
is_ItemName = itemName;
ii_Value = 0;

#ifdef WIN32
ih_Mutex = CreateMutex(0, false, itemName);
#else
pthread_mutexattr_init(&ih_PthreadMutexAttr);
pthread_mutexattr_settype(&ih_PthreadMutexAttr, =
PTHREAD_MUTEX_ERRORCHECK);
pthread_mutex_init(&ih_PthreadMutex, &ih_PthreadMutexAttr);
#endif
}
____________

Profile valtercProject donor
Volunteer tester
Send message
Joined: 30 May 07
Posts: 119
ID: 8810
Credit: 5,578,274,110
RAC: 2,122,623
321 LLR Ruby: Earned 2,000,000 credits (3,196,408)Cullen LLR Ruby: Earned 2,000,000 credits (2,023,566)ESP LLR Ruby: Earned 2,000,000 credits (2,021,061)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,080,021)PPS LLR Sapphire: Earned 20,000,000 credits (20,089,086)PSP LLR Ruby: Earned 2,000,000 credits (2,109,761)SoB LLR Ruby: Earned 2,000,000 credits (2,069,227)SR5 LLR Ruby: Earned 2,000,000 credits (2,019,335)SGS LLR Ruby: Earned 2,000,000 credits (2,742,172)TPS LLR (retired) Bronze: Earned 10,000 credits (20,001)TRP LLR Ruby: Earned 2,000,000 credits (2,017,688)Woodall LLR Ruby: Earned 2,000,000 credits (2,099,788)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (60,722,401)Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,247,691)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (42,978,961)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (3,903,764,274)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (36,215,460)TRP Sieve (suspended) Double Bronze: Earned 100,000,000 credits (102,264,922)AP 26/27 Sapphire: Earned 20,000,000 credits (20,537,729)GFN Turquoise: Earned 5,000,000 credits (5,192,662)PSA Double Amethyst: Earned 1,000,000,000 credits (1,343,866,777)
Message 20760 - Posted: 2 Feb 2010 | 12:17:40 UTC - in response to Message 20759.
Last modified: 2 Feb 2010 | 12:18:15 UTC

Also in the destructor

// Destructor
SharedMemoryItem::~SharedMemoryItem(void)
{
Release();

#ifdef WIN32
CloseHandle(ih_Mutex);
#else
pthread_mutex_destroy(&ih_PthreadMutex);
#endif
}

was &ih_PhtreadMutex

I succesfully compiled it (with -lpthread), will test it right now.

Profile valtercProject donor
Volunteer tester
Send message
Joined: 30 May 07
Posts: 119
ID: 8810
Credit: 5,578,274,110
RAC: 2,122,623
321 LLR Ruby: Earned 2,000,000 credits (3,196,408)Cullen LLR Ruby: Earned 2,000,000 credits (2,023,566)ESP LLR Ruby: Earned 2,000,000 credits (2,021,061)Generalized Cullen/Woodall LLR Ruby: Earned 2,000,000 credits (2,080,021)PPS LLR Sapphire: Earned 20,000,000 credits (20,089,086)PSP LLR Ruby: Earned 2,000,000 credits (2,109,761)SoB LLR Ruby: Earned 2,000,000 credits (2,069,227)SR5 LLR Ruby: Earned 2,000,000 credits (2,019,335)SGS LLR Ruby: Earned 2,000,000 credits (2,742,172)TPS LLR (retired) Bronze: Earned 10,000 credits (20,001)TRP LLR Ruby: Earned 2,000,000 credits (2,017,688)Woodall LLR Ruby: Earned 2,000,000 credits (2,099,788)321 Sieve (suspended) Emerald: Earned 50,000,000 credits (60,722,401)Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (20,247,691)Generalized Cullen/Woodall Sieve (suspended) Sapphire: Earned 20,000,000 credits (42,978,961)PPS Sieve Double Ruby: Earned 2,000,000,000 credits (3,903,764,274)Sierpinski (ESP/PSP/SoB) Sieve (suspended) Sapphire: Earned 20,000,000 credits (36,215,460)TRP Sieve (suspended) Double Bronze: Earned 100,000,000 credits (102,264,922)AP 26/27 Sapphire: Earned 20,000,000 credits (20,537,729)GFN Turquoise: Earned 5,000,000 credits (5,192,662)PSA Double Amethyst: Earned 1,000,000,000 credits (1,343,866,777)
Message 20794 - Posted: 3 Feb 2010 | 14:35:35 UTC - in response to Message 20760.

I tested it for awhile, seems working, the only error was the following (probably server out of work)

[2010-02-03 05:37:10 GMT] PPSE10k: Getting work from server uwin.mine.nu at port 10000
[2010-02-03 05:37:21 GMT] Nothing was received on socket 3, therefore the socket was closed

Message boards : Project Staging Area : Cannot compile prclient 3.1.5

[Return to PrimeGrid main page]
DNS Powered by DNSEXIT.COM
Copyright © 2005 - 2020 Rytis Slatkevičius (contact) and PrimeGrid community. Server load 3.13, 3.41, 3.33
Generated 5 Dec 2020 | 19:07:34 UTC