Hi Rom,

> What does it do when you execute configure without the --with-ssl
> parameter?
Thanks. It was actually the CFLAGS (your hint led me to it).

Perhaps the makefiles should work with BOINC_CFLAGS, SSL_CFLAGS, etc.
Then, at the very end, merge user settings passed via arguments with
the project's required flags such as include directories like
.../.lib/.libs/... (you gotta love libtool - output artifacts in
hidden directories). To do so, I believe you would use make's
'override' keyword.

We use a similar strategy at OWASP's ESAPI project.From our Makefile
(http://code.google.com/p/owasp-esapi-cplusplus/source/browse/trunk/Makefile)
near line 400. (Its not as complicated as Boinc's Makefiles, so try
not to laugh too hard :)

    # Merge ESAPI flags with user supplied flags.
    override CFLAGS += $(ESAPI_CXXFLAGS)
    override CXXFLAGS += $(ESAPI_CXXFLAGS)
    override LDFLAGS += $(ESAPI_LDFLAGS)

The ESAPI project also uses additional C++ warning flags. Perhaps some
would be a benefit to Boinc? For example, -Woverloaded-virtual and
-Wreorder. Let the tools do the work for you :)

By the way, do you guys want patches? Or do you just fix issues as
they are reported?

Jeff

On Tue, Jan 22, 2013 at 8:44 PM, Rom Walton <[email protected]> wrote:
> What does it do when you execute configure without the --with-ssl
> parameter?
>
> Is there a /usr/lib/pkgconfig directory on your machine?  Does libssl.pc
> and libcrypto.pc exist in that directory?
>
> ----- Rom
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Jeffrey Walton
> Sent: Tuesday, January 22, 2013 7:05 PM
> To: [email protected]
> Subject: [boinc_dev] Issues Building Boinc on Linux x64 (Unresolved)
>
> Hi All,
>
> I fetched the latest Boinc from GIT today. I configured with
> `./configure --disable-server --enable-client CFLAGS="-Os "
> CXXFLAGS="-Os " --with-ssl=/usr/local/ssl/linux-x64`
>
> I am not able to build on Fedora 18, x64. Output is below.
>
> I'm not sure how to solve a missing lib problem from the project. Any
> ideas?
>
> Jeff
>
> $ make
> cd . && sh generate_svn_version.sh
> make  all-recursive
> make[1]: Entering directory `/home/jeffrey/boinc'
> Making all in m4
> make[2]: Entering directory `/home/jeffrey/boinc/m4'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/jeffrey/boinc/m4'
> Making all in api
> make[2]: Entering directory `/home/jeffrey/boinc/api'
>   CXX      boinc_api.lo
>   CXX      graphics2_util.lo
>   CXX      reduce_main.lo
>   CXXLD    libboinc_api.la
>   CXX      boinc_opencl.lo
>   CXXLD    libboinc_opencl.la
> rm -f libboinc_api.a
> /usr/bin/ln .libs/libboinc_api.a .
> rm -f libboinc_opencl.a
> /usr/bin/ln .libs/libboinc_opencl.a .
> make[2]: Leaving directory `/home/jeffrey/boinc/api'
> Making all in lib
> make[2]: Entering directory `/home/jeffrey/boinc/lib'
>   CXX      libboinc_la-app_ipc.lo
>   CXX      libboinc_la-base64.lo
>   CXX      libboinc_la-cc_config.lo
>   CXX      libboinc_la-cert_sig.lo
>   CXX      libboinc_la-coproc.lo
>   CXX      libboinc_la-diagnostics.lo
>   CXX      libboinc_la-filesys.lo
>   CXX      libboinc_la-gui_rpc_client.lo
>   CXX      libboinc_la-gui_rpc_client_ops.lo
>   CXX      libboinc_la-gui_rpc_client_print.lo
>   CXX      libboinc_la-hostinfo.lo
>   CC       libboinc_la-md5.lo
>   CXX      libboinc_la-md5_file.lo
>   CXX      libboinc_la-mem_usage.lo
>   CXX      libboinc_la-mfile.lo
>   CXX      libboinc_la-miofile.lo
>   CXX      libboinc_la-msg_log.lo
>   CXX      libboinc_la-network.lo
>   CXX      libboinc_la-notice.lo
>   CXX      libboinc_la-parse.lo
>   CXX      libboinc_la-prefs.lo
>   CXX      libboinc_la-procinfo.lo
>   CXX      libboinc_la-proc_control.lo
>   CXX      libboinc_la-proxy_info.lo
>   CXX      libboinc_la-shmem.lo
>   CXX      libboinc_la-str_util.lo
>   CXX      libboinc_la-synch.lo
>   CXX      libboinc_la-unix_util.lo
>   CXX      libboinc_la-url.lo
>   CXX      libboinc_la-util.lo
>   CXX      libboinc_la-procinfo_unix.lo
>   CXXLD    libboinc.la
> ar: libboinc_la-app_ipc.o: No such file or directory
> make[2]: *** [libboinc.la] Error 1
> make[2]: Leaving directory `/home/jeffrey/boinc/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/jeffrey/boinc'
> make: *** [all] Error 2
> [jeffrey@localhost boinc]$ sudo yum install ar Loaded plugins:
> langpacks, presto, refresh-packagekit No package ar available.
> Error: Nothing to do
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.

Reply via email to