compiling for Fedora 16 - issues

Message boards : BOINC client : compiling for Fedora 16 - issues
Message board moderation

To post messages, you must log in.

AuthorMessage
Sean

Send message
Joined: 7 Jul 12
Posts: 3
Australia
Message 44783 - Posted: 7 Jul 2012, 7:54:09 UTC

Hi all,
I decided to roll my own version of Boinc. I've come across come issues that are rather annoying. Firstly, I use Fedora 16 with an x64 machine and boinc svn version 25850.

When compiling, I get this error:
make[2]: Entering directory `/home/sean/boinc/client'
/bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -g -O2 -Wall -static -L../lib -o boinc_client boinc_client-acct_mgr.o boinc_client-acct_setup.o boinc_client-app.o boinc_client-app_control.o boinc_client-app_start.o boinc_client-async_file.o boinc_client-check_state.o boinc_client-client_msgs.o boinc_client-client_state.o boinc_client-client_types.o boinc_client-cpu_sched.o boinc_client-cs_account.o boinc_client-cs_apps.o boinc_client-cs_benchmark.o boinc_client-cs_cmdline.o boinc_client-cs_files.o boinc_client-cs_notice.o boinc_client-cs_platforms.o boinc_client-cs_prefs.o boinc_client-cs_proxy.o boinc_client-cs_scheduler.o boinc_client-cs_statefile.o boinc_client-cs_trickle.o boinc_client-current_version.o boinc_client-dhrystone.o boinc_client-dhrystone2.o boinc_client-file_names.o boinc_client-file_xfer.o boinc_client-gpu_amd.o boinc_client-gpu_detect.o boinc_client-gpu_nvidia.o boinc_client-gpu_opencl.o boinc_client-gui_http.o boinc_client-gui_rpc_server.o boinc_client-gui_rpc_server_ops.o boinc_client-hostinfo_network.o boinc_client-hostinfo_unix.o boinc_client-http_curl.o boinc_client-log_flags.o boinc_client-main.o boinc_client-net_stats.o boinc_client-pers_file_xfer.o boinc_client-project.o boinc_client-result.o boinc_client-rr_sim.o boinc_client-sandbox.o boinc_client-scheduler_op.o boinc_client-time_stats.o boinc_client-whetstone.o boinc_client-work_fetch.o ../lib/libboinc.la ../lib/libboinc_crypt.la -lcurl -lssl -lcrypto -ldl -lnsl -lz -lXss -lpthread -lm
libtool: link: g++ -Wall -Wextra -Wshadow -Wredundant-decls -Wdisabled-optimization -Wpointer-arith -Wstrict-aliasing -g -O2 -Wall -o boinc_client boinc_client-acct_mgr.o boinc_client-acct_setup.o boinc_client-app.o boinc_client-app_control.o boinc_client-app_start.o boinc_client-async_file.o boinc_client-check_state.o boinc_client-client_msgs.o boinc_client-client_state.o boinc_client-client_types.o boinc_client-cpu_sched.o boinc_client-cs_account.o boinc_client-cs_apps.o boinc_client-cs_benchmark.o boinc_client-cs_cmdline.o boinc_client-cs_files.o boinc_client-cs_notice.o boinc_client-cs_platforms.o boinc_client-cs_prefs.o boinc_client-cs_proxy.o boinc_client-cs_scheduler.o boinc_client-cs_statefile.o boinc_client-cs_trickle.o boinc_client-current_version.o boinc_client-dhrystone.o boinc_client-dhrystone2.o boinc_client-file_names.o boinc_client-file_xfer.o boinc_client-gpu_amd.o boinc_client-gpu_detect.o boinc_client-gpu_nvidia.o boinc_client-gpu_opencl.o boinc_client-gui_http.o boinc_client-gui_rpc_server.o boinc_client-gui_rpc_server_ops.o boinc_client-hostinfo_network.o boinc_client-hostinfo_unix.o boinc_client-http_curl.o boinc_client-log_flags.o boinc_client-main.o boinc_client-net_stats.o boinc_client-pers_file_xfer.o boinc_client-project.o boinc_client-result.o boinc_client-rr_sim.o boinc_client-sandbox.o boinc_client-scheduler_op.o boinc_client-time_stats.o boinc_client-whetstone.o boinc_client-work_fetch.o -L../lib ../lib/.libs/libboinc.a -L/usr/local/lib ../lib/.libs/libboinc_crypt.a -lcurl -lssl -lcrypto -ldl -lnsl -lz -lXss -lpthread -lm -pthread
/usr/bin/ld: boinc_client-hostinfo_unix.o: undefined reference to symbol 'XOpenDisplay'
/usr/bin/ld: note: 'XOpenDisplay' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line
/usr/lib64/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [boinc_client] Error 1
make[2]: Leaving directory `/home/sean/boinc/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sean/boinc'
make: *** [all] Error 2

I have done a few searches and found that the build maybe be missing the X11 libraries. I cannot find where to add it though.

Also, I can build the manager, but not the client.
In addition, I have freeglut-devel installed but my system does not find the headers - glut.h etc.
Finally, it seems that boinc builds for Solaris, and not linux.

Thanks!
ID: 44783 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15493
Netherlands
Message 44784 - Posted: 7 Jul 2012, 8:21:14 UTC - in response to Message 44783.  

ID: 44784 · Report as offensive
Sean

Send message
Joined: 7 Jul 12
Posts: 3
Australia
Message 44786 - Posted: 7 Jul 2012, 9:47:29 UTC - in response to Message 44784.  

Yep, I have tried to follow all the options there, but I still receive:

'XOpenDisplay' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line


Any other thoughts?
ID: 44786 · Report as offensive
Sean

Send message
Joined: 7 Jul 12
Posts: 3
Australia
Message 44807 - Posted: 10 Jul 2012, 2:59:46 UTC - in response to Message 44786.  

I managed to fix the problem.

I used the command:

 ./configure -C --disable-server  --with-x LDFLAGS='-L/usr/lib64  -lX11'


All is compiling now. Whether I should have to put a flag in the configure script is another matter.

Thanks
ID: 44807 · Report as offensive

Message boards : BOINC client : compiling for Fedora 16 - issues

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.