Thread 'compiling boinc source code'

Message boards : Server programs : compiling boinc source code
Message board moderation

To post messages, you must log in.

AuthorMessage
rdubyahh

Send message
Joined: 12 Mar 08
Posts: 7
United States
Message 15986 - Posted: 19 Mar 2008, 0:27:53 UTC

I've got the source code for boinc and I'm trying to compile it, but I keep getting errors in sched_send.C

'./_autosetup' and './configure --disable-client' works, but 'make' gives me problems:

any ideas on what I should do? thanks!

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -I/usr/local/mysql/include -mcpu=pentiumpro -g -O2 -I/usr/ssl/include/ -pthread -MT sched_send.o -MD -MP -MF ".deps/sched_send.Tpo" -c -o sched_send.o sched_send.C; \
then mv -f ".deps/sched_send.Tpo" ".deps/sched_send.Po"; else rm -f ".deps/sched_send.Tpo"; exit 1; fi
sched_send.C: In function `bool get_app_version(SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, WORKUNIT&, APP*&, APP_VERSION*&)':
sched_send.C:80: error: `log_messages' undeclared (first use this function)
sched_send.C:80: error: (Each undeclared identifier is reported only once for
each function it appears in.)
sched_send.C:80: error: `MSG_CRITICAL' undeclared (first use this function)
sched_send.C:84: error: `anonymous' undeclared (first use this function)
sched_send.C:87: error: `MSG_DEBUG' undeclared (first use this function)
sched_send.C:128: error: `app_plan' undeclared (first use this function)
sched_send.C: In function `int check_app_filter(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:412: error: `INFEASIBLE_APP_SETTING' undeclared (first use this
function)
sched_send.C: In function `void get_mem_sizes(SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, double&, double&)':
sched_send.C:425: error: `DEFAULT_RAM_SIZE' undeclared (first use this
function)
sched_send.C: In function `int check_memory(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:461: error: `INFEASIBLE_MEM' undeclared (first use this function)
sched_send.C: In function `int check_disk(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:481: error: `INFEASIBLE_DISK' undeclared (first use this function)
sched_send.C: In function `int check_bandwidth(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:502: error: `INFEASIBLE_BANDWIDTH' undeclared (first use this
function)
sched_send.C: In function `int check_deadline(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:525: error: `INFEASIBLE_CPU' undeclared (first use this function)
sched_send.C: In function `int wu_is_infeasible(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, APP&)':
sched_send.C:549: error: `app_hr_type' undeclared (first use this function)
sched_send.C:550: error: `hr_unknown_platform_type' undeclared (first use this
function)
sched_send.C:555: error: `INFEASIBLE_HR' undeclared (first use this function)
sched_send.C:557: error: `already_sent_to_different_platform_quick' undeclared
(first use this function)
sched_send.C:560: error: `hr_class' undeclared (first use this function)
sched_send.C:567: error: `wu_already_in_reply' undeclared (first use this
function)
sched_send.C:568: error: `INFEASIBLE_DUP' undeclared (first use this function)
sched_send.C:587: error: `effective_ncpus' undeclared (first use this function)
sched_send.C:593: error: `INFEASIBLE_WORKLOAD' undeclared (first use this
function)
sched_send.C: In function `int add_wu_to_reply(WORKUNIT&, SCHEDULER_REPLY&,
APP*, APP_VERSION*)':
sched_send.C:679: error: `process_av_timezone' undeclared (first use this
function)
sched_send.C:695: error: `MSG_NORMAL' undeclared (first use this function)
sched_send.C:702: error: `process_wu_timezone' undeclared (first use this
function)
sched_send.C: In function `bool wu_already_in_reply(WORKUNIT&,
SCHEDULER_REPLY&)':
sched_send.C:750: error: `bool wu_already_in_reply(WORKUNIT&, SCHEDULER_REPLY&)
' used prior to declaration
sched_send.C: In member function `bool SCHEDULER_REPLY::work_needed(bool)':
sched_send.C:788: error: `effective_ncpus' undeclared (first use this function)
sched_send.C: In function `int add_result_to_reply(DB_RESULT&, WORKUNIT&,
SCHEDULER_REQUEST&, SCHEDULER_REPLY&, APP*, APP_VERSION*)':
sched_send.C:848: error: `decrement_disk_space_locality' undeclared (first use
this function)
sched_send.C:959: error: `effective_ncpus' undeclared (first use this function)
sched_send.C: In function `void send_work(SCHEDULER_REQUEST&, SCHEDULER_REPLY&)
':
sched_send.C:999: error: `hr_unknown_platform' undeclared (first use this
function)
sched_send.C:1016: error: `MAX_SECONDS_TO_SEND' undeclared (first use this
function)
sched_send.C:1019: error: `MIN_SECONDS_TO_SEND' undeclared (first use this
function)
sched_send.C:1024: error: `send_assigned_jobs' undeclared (first use this
function)
sched_send.C:1034: error: `effective_ncpus' undeclared (first use this
function)
sched_send.C:1040: error: `send_work_locality' undeclared (first use this
function)
make: *** [sched_send.o] Error 1
ID: 15986 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 15987 - Posted: 19 Mar 2008, 1:35:52 UTC - in response to Message 15986.  

I've got the source code for boinc and I'm trying to compile it, but I keep getting errors in sched_send.C

'./_autosetup' and './configure --disable-client' works, but 'make' gives me problems:

any ideas on what I should do? thanks!

What version of the code? 'svn info' should show that, but I'm not too sure.
ID: 15987 · Report as offensive
rdubyahh

Send message
Joined: 12 Mar 08
Posts: 7
United States
Message 16014 - Posted: 20 Mar 2008, 16:08:25 UTC

It's subversion 1.4.6

I don't know if that helps?
ID: 16014 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 16015 - Posted: 20 Mar 2008, 16:13:42 UTC - in response to Message 16014.  

It's subversion 1.4.6

I don't know if that helps?

Version of BOINC code, not of SVN...
ID: 16015 · Report as offensive
rdubyahh

Send message
Joined: 12 Mar 08
Posts: 7
United States
Message 16018 - Posted: 20 Mar 2008, 17:01:06 UTC

Sorry about that.

As for the boinc version code. I think it's the most recent one. I just checked the trunk out using svn a day or two ago.

"Checked out revision 14940." is what's displayed when svn's done checking out.
ID: 16018 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 16019 - Posted: 20 Mar 2008, 17:24:41 UTC - in response to Message 16018.  

Sorry about that.

As for the boinc version code. I think it's the most recent one. I just checked the trunk out using svn a day or two ago.

"Checked out revision 14940." is what's displayed when svn's done checking out.


Well, all I can suggest is that you start again, running _autosetup, configure...
ID: 16019 · Report as offensive
rdubyahh

Send message
Joined: 12 Mar 08
Posts: 7
United States
Message 16021 - Posted: 20 Mar 2008, 17:43:22 UTC

so it seems sched_plan.C is giving me a lot of trouble.

i deleted it, and then re-updated it, so now i'm at revision 19450.

now i get this:

if g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I../api -I../db -I../client -I../tools -I../sched -I../lib/mac -I/usr/local/mysql/include -mcpu=pentiumpro -g -O2 -I/usr/ssl/include/ -pthread -MT sched_send.o -MD -MP -MF ".deps/sched_send.Tpo" -c -o sched_send.o sched_send.C; \
then mv -f ".deps/sched_send.Tpo" ".deps/sched_send.Po"; else rm -f ".deps/sched_send.Tpo"; exit 1; fi
sched_send.C: In function `bool get_app_version(SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, WORKUNIT&, APP*&, APP_VERSION*&)':
sched_send.C:63: error: `log_messages' undeclared (first use this function)
sched_send.C:63: error: (Each undeclared identifier is reported only once for
each function it appears in.)
sched_send.C:63: error: `MSG_CRITICAL' undeclared (first use this function)
sched_send.C:67: error: `anonymous' undeclared (first use this function)
sched_send.C:70: error: `MSG_DEBUG' undeclared (first use this function)
sched_send.C:111: error: `app_plan' undeclared (first use this function)
sched_send.C: In function `int check_app_filter(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:395: error: `INFEASIBLE_APP_SETTING' undeclared (first use this
function)
sched_send.C: In function `void get_mem_sizes(SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, double&, double&)':
sched_send.C:408: error: `DEFAULT_RAM_SIZE' undeclared (first use this
function)
sched_send.C: In function `int check_memory(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:444: error: `INFEASIBLE_MEM' undeclared (first use this function)
sched_send.C: In function `int check_disk(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:464: error: `INFEASIBLE_DISK' undeclared (first use this function)
sched_send.C: In function `int check_bandwidth(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:485: error: `INFEASIBLE_BANDWIDTH' undeclared (first use this
function)
sched_send.C: In function `int check_deadline(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&)':
sched_send.C:508: error: `INFEASIBLE_CPU' undeclared (first use this function)
sched_send.C: In function `int wu_is_infeasible(WORKUNIT&, SCHEDULER_REQUEST&,
SCHEDULER_REPLY&, APP&)':
sched_send.C:532: error: `app_hr_type' undeclared (first use this function)
sched_send.C:533: error: `hr_unknown_platform_type' undeclared (first use this
function)
sched_send.C:538: error: `INFEASIBLE_HR' undeclared (first use this function)
sched_send.C:540: error: `already_sent_to_different_platform_quick' undeclared
(first use this function)
sched_send.C:543: error: `hr_class' undeclared (first use this function)
sched_send.C:550: error: `wu_already_in_reply' undeclared (first use this
function)
sched_send.C:551: error: `INFEASIBLE_DUP' undeclared (first use this function)
sched_send.C:570: error: `effective_ncpus' undeclared (first use this function)
sched_send.C:576: error: `INFEASIBLE_WORKLOAD' undeclared (first use this
function)
sched_send.C: In function `int add_wu_to_reply(WORKUNIT&, SCHEDULER_REPLY&,
APP*, APP_VERSION*)':
sched_send.C:662: error: `process_av_timezone' undeclared (first use this
function)
sched_send.C:678: error: `MSG_NORMAL' undeclared (first use this function)
sched_send.C:685: error: `process_wu_timezone' undeclared (first use this
function)
sched_send.C: In function `bool wu_already_in_reply(WORKUNIT&,
SCHEDULER_REPLY&)':
sched_send.C:733: error: `bool wu_already_in_reply(WORKUNIT&, SCHEDULER_REPLY&)
' used prior to declaration
sched_send.C: In member function `bool SCHEDULER_REPLY::work_needed(bool)':
sched_send.C:771: error: `effective_ncpus' undeclared (first use this function)
sched_send.C: In function `int add_result_to_reply(DB_RESULT&, WORKUNIT&,
SCHEDULER_REQUEST&, SCHEDULER_REPLY&, APP*, APP_VERSION*)':
sched_send.C:831: error: `decrement_disk_space_locality' undeclared (first use
this function)
sched_send.C:942: error: `effective_ncpus' undeclared (first use this function)
sched_send.C: In function `void send_work(SCHEDULER_REQUEST&, SCHEDULER_REPLY&)
':
sched_send.C:984: error: `hr_unknown_platform' undeclared (first use this
function)
sched_send.C:1001: error: `MAX_SECONDS_TO_SEND' undeclared (first use this
function)
sched_send.C:1004: error: `MIN_SECONDS_TO_SEND' undeclared (first use this
function)
sched_send.C:1009: error: `send_assigned_jobs' undeclared (first use this
function)
sched_send.C:1019: error: `effective_ncpus' undeclared (first use this
function)
sched_send.C:1025: error: `send_work_locality' undeclared (first use this
function)


it's just a bunch of local variables that's aren't declared, so it seems as if i'm missing of file of sorts, but when I do 'svn update', nothing happens because i've already checked out the most recent version.

for example, app_plan is only used and i can't find the function implementation in sched_send.C

is there any way to check out an earlier version of the trunk?
ID: 16021 · Report as offensive
rdubyahh

Send message
Joined: 12 Mar 08
Posts: 7
United States
Message 16022 - Posted: 20 Mar 2008, 17:44:02 UTC

oops. i meant version 14950.
ID: 16022 · Report as offensive
Nicolas

Send message
Joined: 19 Jan 07
Posts: 1179
Argentina
Message 16323 - Posted: 1 Apr 2008, 21:08:15 UTC - in response to Message 16021.  

is there any way to check out an earlier version of the trunk?


svn update -r <revision number>
ID: 16323 · Report as offensive
Ldong

Send message
Joined: 30 Jun 08
Posts: 4
United States
Message 18114 - Posted: 30 Jun 2008, 4:12:04 UTC - in response to Message 16323.  

Hello all,
I am trying to install boinc server on my PC which is running fedora 9. I have installed the required packages as http://boinc.berkeley.edu/trac/wiki/SoftwarePrereqsUnix
and download the server source code as:
svn co http://boinc.berkeley.edu/svn/trunk/boinc
The source can be compiled under the root account, but not the boincadm account. The error message is followed.
Please help, I am totally confused. Thanks in advance.
Ldong

....
/tools/backend_lib.C' || echo './'`../tools/backend_lib.C
../tools/backend_lib.C: In function ‘int create_work(DB_WORKUNIT&, const char*, const char*, const char*, const char**, int, SCHED_CONFIG&, const char*, const char*)’:
../tools/backend_lib.C:609: error: ‘INT_MAX’ was not declared in this scope
make[2]: *** [backend_lib.o] Error 1
make[2]: Leaving directory `/home/boincadm/boinc/sched'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/boincadm/boinc'
make: *** [all] Error 2





is there any way to check out an earlier version of the trunk?


svn update -r <revision number>

ID: 18114 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 18126 - Posted: 30 Jun 2008, 19:56:41 UTC - in response to Message 18114.  
Last modified: 30 Jun 2008, 19:57:01 UTC

I was in a similar situation before, meeting a lot of errors only a few steps after installation.

The problem might be you missing some packages required for boinc in your system. Try to get all of them installed before try again.
ID: 18126 · Report as offensive
Ldong

Send message
Joined: 30 Jun 08
Posts: 4
United States
Message 18147 - Posted: 1 Jul 2008, 18:19:48 UTC - in response to Message 18126.  

Appreciate your response,
Add #include "stdio.h" in the header file solve the problem.
It is required by GCC 0.43. Now I will see more bugs coming.
Thanks,



I was in a similar situation before, meeting a lot of errors only a few steps after installation.

The problem might be you missing some packages required for boinc in your system. Try to get all of them installed before try again.

ID: 18147 · Report as offensive
Kunsheng Chen

Send message
Joined: 3 Jun 08
Posts: 40
United States
Message 18148 - Posted: 1 Jul 2008, 19:24:17 UTC - in response to Message 18147.  

Glad it helps. I met lot troubles when setting up a boinc server in ubuntu. It all turned out to be problems like 'missing packages' or typo.

Appreciate your response,
Add #include "stdio.h" in the header file solve the problem.
It is required by GCC 0.43. Now I will see more bugs coming.
Thanks,


ID: 18148 · Report as offensive

Message boards : Server programs : compiling boinc source code

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.