Message boards : BOINC client : Build issues - libcurl
Message board moderation
Author | Message |
---|---|
Send message Joined: 22 Jan 14 Posts: 3 |
I am trying to build the client at the moment in cygwin but getting an error to do with libcurl which I cant quite understand. Everything is fine in the configure until this point: ... ... checking library extension... a checking shared object extension... dll checking for gawk... (cached) /usr/bin/gawk checking for curl-config... /usr/bin/curl-config checking for the version of libcurl... 7.34.0 checking for libcurl >= version 7.17.1... yes checking whether libcurl is usable... no configure: error: ================================================================================ ERROR: could not find (recent enough) development-libs for libcurl. This library is required to build the boinc-client. (If you don't want to build the client, use --disable-client with configure. If libcurl-dev is installed on your system, make sure that the script 'curl-config' is found in your PATH, and that 'curl-config --version' gives something recent enough (see above). You can download libcurl from: http://curl.haxx.se/ ================================================================================ from config.log: configure:23578: result: 7.34.0 configure:23585: checking for libcurl >= version 7.17.1 configure:23598: result: yes configure:24200: checking whether libcurl is usable configure:24233: gcc -o conftest.exe -I/usr/include/w32api -D_WIN32 -DWIN32 -g -O2 -Wall -I/usr/include/w32api -D_WIN32 -DWIN32 conftest.c -L/usr/lib/w32api -lcurl >&5 In file included from conftest.c:29:0: /usr/include/curl/curl.h:116:1: error: unknown type name 'SOCKET' typedef SOCKET curl_socket_t; ^ conftest.c: In function 'main': conftest.c:36:5: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x; ^ configure:24233: $? = 1 Anyone got ideas on how to either further diagnose or fix? Thanks! |
Send message Joined: 4 Jul 12 Posts: 321 |
I have no problem compiling the Client under Debian with the same libcurl version installed. Maybe you are lacking the header files in your cygwin environment? |
Send message Joined: 20 Nov 12 Posts: 801 |
SOCKET seems to be something defined in Windows headers. Do you have Platform SDK (or Windows SDK) installed and is it in /usr/include/w32api ? |
Send message Joined: 22 Jan 14 Posts: 3 |
Maybe you are lacking the header files in your cygwin environment? Thanks for the response Could you expand upon this at all? What headers are you referring to? |
Send message Joined: 22 Jan 14 Posts: 3 |
Do you have Platform SDK (or Windows SDK) installed and is it in /usr/include/w32api Thanks for your reply I have the directory and it has a load of files in. Am I looking for anything specific? |
Send message Joined: 20 Nov 12 Posts: 801 |
Ok, I guess I was wrong with that Platform SDK. Looks like you need to install win32api* package to compile Windows programs. Since you have that directory I think it's installed just fine. So the SOCKET is defined in winsock.h/winsock2.h. curl.h includes that if you have WIN32 defined and __CYGWIN__ is not defined. If you have both WIN32 and __CYGWIN__ defined you don't get SOCKET defined but a few lines later curl.h assumes SOCKET is defined. WIN32 gets defined in m4/boinc_check_cygwin.m4 macro. I'm not sure if this is a bug in CURL or in BOINC. You could try renaming boinc_check_cygwin.m4. After that run _autosetup and configure again. I don't think Cygwin is used much in BOINC world so there's good chances you need'll to fix something else. |
Send message Joined: 5 Feb 14 Posts: 2 |
I'm having the same issues on cygwin64. Haven't tried compiling on cygwin32 yet, but I'm guessing it'll be the same. here is the chuck-out checking for curl-config... /usr/local/bin/curl-config using the latest GIT Repo (http://boinc.berkeley.edu/git/boinc-v2.git boinc_repo) |
Send message Joined: 5 Feb 14 Posts: 2 |
Juha wrote: ...You could try renaming boinc_check_cygwin.m4. After that run _autosetup and configure again. That passed the "./configure" build :) however... failed the "make" :( Here is the chuck-out: cd . && sh generate_svn_version.sh any ideas? |
Send message Joined: 20 Nov 12 Posts: 801 |
CXXLD libboinc_api.la This might mean troubles ahead. shmem.cpp: In function 'int create_shmem(key_t, int, gid_t, void**)': Try replacing SHM_R|SHM_W with S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP --- If I may ask, why Cygwin? |
Copyright © 2025 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.