Building Seti Client (csv-2004-09-30)

Questions and Answers : Unix/Linux : Building Seti Client (csv-2004-09-30)
Message board moderation

To post messages, you must log in.

AuthorMessage
nirvek

Send message
Joined: 27 Jun 04
Posts: 5
Credit: 2,192,657
RAC: 0
Poland
Message 31458 - Posted: 30 Sep 2004, 15:00:30 UTC

Like many of the others here I'm trying to compile seti client, however upon 'make' i was have errors .. 'make -k' wasnt help me ... (sorry for my bad english), log:

nirvek:/usr/src/seti_boinc# make -k
(cd client; make all)
make[1]: Entering directory `/usr/src/seti_boinc/client'
g++ main.o analyzeFuncs.o analyzeReport.o analyzePoT.o pulsefind.o gaussfit.o lcgamm.o malloc_a.o seti.o seti_header.o timecvt.o s_util.o version.o worker.o chirpfft.o spike.o progress.o ../db/schema_master_client.o ../db/sqlrow_client.o ../db/sqlblob.o ../db/xml_util.o -L. -looura -lstdc++ -lnsl -lm -ldl -o setiathome_4.3_i686-pc-linux-gnu -L/lib -lboinc
/usr/bin/ld: cannot find -lboinc
collect2: ld returned 1 exit status
make[1]: *** [setiathome_4.3_i686-pc-linux-gnu] Error 1
g++ main_test.o analyzeFuncs.o analyzeReport.o analyzePoT.o pulsefind.o gaussfit.o lcgamm.o malloc_a.o seti.o seti_header.o timecvt.o s_util.o version.o worker.o chirpfft.o spike.o progress.o ../db/schema_master_client.o ../db/sqlrow_client.o ../db/sqlblob.o ../db/xml_util.o -L. -looura -lstdc++ -lnsl -lm -ldl -o setiathome_test -L/lib -lboinc
/usr/bin/ld: cannot find -lboinc
collect2: ld returned 1 exit status
make[1]: *** [setiathome_test] Error 1
make[1]: Target `all' not remade because of errors.
make[1]: Leaving directory `/usr/src/seti_boinc/client'
make: *** [all] Error 2
nirvek:/usr/src/seti_boinc#

Any sugestions?
ID: 31458 · Report as offensive
Mpemba Effect

Send message
Joined: 3 Apr 99
Posts: 6
Credit: 1,895
RAC: 0
United Kingdom
Message 31468 - Posted: 30 Sep 2004, 15:47:24 UTC
Last modified: 30 Sep 2004, 15:48:07 UTC

What you need to do is compile the libraries in the boinc client. To do this cd into your boinc sources and type:

export MYSQL_CONFIG=true
cd lib
make

If you have mySQL install exclude the first line. If you don't have mySQL you must use the 'export MYSQL_CONFIG=true' trick and NOT use the '--disable-server flag'. If you then cd into lib you should see 'boinc_api.o' that tells you all is good. You can now cd into your seti source and compile the seti client. You'll still need to use 'make -k' since you may get errors regardin GLUT which is for the xsetiathome client which you proberbly don't want anyway. The normal CLI client will build fine.
ID: 31468 · Report as offensive
nirvek

Send message
Joined: 27 Jun 04
Posts: 5
Credit: 2,192,657
RAC: 0
Poland
Message 31516 - Posted: 30 Sep 2004, 18:32:06 UTC

I have this problem still ....

i was export MYSQL_CONFIG=true , in ../boinc_public : ./configure , make -k , i was see boinc_api.o in /lib , in ../seti_boinc : /configure (lots of warnings) , make ... then i need copy some *.h from boinc directory to seti_boinc/dp and /lib and make again .... an i have this error -lboinc still ... what i need copy and from and where ? any ideas?
ID: 31516 · Report as offensive
Mpemba Effect

Send message
Joined: 3 Apr 99
Posts: 6
Credit: 1,895
RAC: 0
United Kingdom
Message 31559 - Posted: 30 Sep 2004, 21:11:24 UTC
Last modified: 30 Sep 2004, 21:12:35 UTC

Ah, I think I know what you mean by the ./configure errors. Do you mean you get alot of messages like this?:


configure: WARNING: cstring: present but cannot be compiled
configure: WARNING: cstring: check for missing prerequisite headers?
configure: WARNING: cstring: proceeding with the preprocessor's result
configure: WARNING: ## ------------------------------------ ##
configure: WARNING: ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING: ## ------------------------------------ ##


If you are getting errors like this what you need to do is change the name of the "boinc_public" folder to "boinc". Alternatively you can create symlink "boinc_public" to "boinc" like I have done here:


lrwxrwxrwx 1 meow wheel 12 Sep 30 22:08 boinc -> boinc_public
drwxr-xr-x 22 meow wheel 56 Sep 21 14:03 boinc_public
drwxr-xr-x 15 meow wheel 25 Sep 30 22:05 seti_boinc
$


When compiling the seti client it looks for the boinc files inside the directory called "boinc" and not "boinc_public", this is the reason for the errors when you type ./configure and the -lboinc error.
ID: 31559 · Report as offensive
Hans Dorn
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 3 Apr 99
Posts: 2262
Credit: 26,448,570
RAC: 0
Germany
Message 31597 - Posted: 30 Sep 2004, 23:25:32 UTC

Hi Nirvek!

>/usr/bin/ld: cannot find -lboinc
>collect2: ld returned 1 exit status
>make[1]: *** [setiathome_4.3_i686-pc-linux-gnu] Error 1

I guess the "seti_boinc" dir should be located under "boinc_public"

If you cd to the "lib" subdirectory of "boinc_public" and run
"make" there, the error should go away.

Regards Hans



ID: 31597 · Report as offensive
nirvek

Send message
Joined: 27 Jun 04
Posts: 5
Credit: 2,192,657
RAC: 0
Poland
Message 31752 - Posted: 1 Oct 2004, 11:48:36 UTC

I was create symlink and all works fine :) THX
ID: 31752 · Report as offensive
Ned Slider

Send message
Joined: 12 Oct 01
Posts: 668
Credit: 4,375,315
RAC: 0
United Kingdom
Message 31774 - Posted: 1 Oct 2004, 13:45:59 UTC
Last modified: 1 Oct 2004, 13:46:59 UTC

Hi,

I too was recently struggling to work out how to get the boinc to compile. I have written a guide that is now available at the following link:

http://forums.pcper.com/showthread.php?t=349185

Please feel free to drop by and I hope you find the information useful.

- and thanks again to Hans for assisting me in another thread when I was trying to work this out :)

Hope you find this helpful,

Regards,

Ned

ID: 31774 · Report as offensive
Hans Dorn
Volunteer developer
Volunteer tester
Avatar

Send message
Joined: 3 Apr 99
Posts: 2262
Credit: 26,448,570
RAC: 0
Germany
Message 32535 - Posted: 4 Oct 2004, 4:59:07 UTC - in response to Message 31774.  

> Hi,
>
> I too was recently struggling to work out how to get the boinc to compile. I
> have written a guide that is now available at the following link:
>
> http://forums.pcper.com/showthread.php?t=349185
>
> Please feel free to drop by and I hope you find the information useful.
>
>
> Regards,
>
> Ned
>

Hi Ned!

Nice work with your summary.
I just came across an issue I forgot to mention:
I had to create an empty "std_fixes.h" under /root/lib to get the
compile going.

Regards Hans


ID: 32535 · Report as offensive

Questions and Answers : Unix/Linux : Building Seti Client (csv-2004-09-30)


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.