cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Build using CMake

From: Sukender <suky0001_at_free.fr>
Date: Mon, 23 Mar 2009 17:15:46 +0100

Thanks for testing!

> Let me mention that we have support for 4-5 different SSL libraries. The
> current file seems to assume only OpenSSL.

Alright. I think I'll add SSL suport later then! :D Joking apart, Which ones are we supposed to support?

> And why does it add -D_USRDLL ?

Sorry, _USRDLL is for MSVC (or Win32?) only. It seems you get some trouble in creating a .lib without this define when you don't specify things like __declspec(export) / __declspec(import) in your code.
I'll add an "if(WIN32)" in a first time.

About your errors, it seems setup_once.h is included multiple times... But I can't figure out why/where. If you got more info, I'll be happy. Maybe putting a #ifndef __SETUP_ONCE into the setup_once.h could be an idea?

I'll post a v0.3 soon (with tests/libtest and tests/server).

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

Le Mon, 23 Mar 2009 16:57:39 +0100, Daniel Stenberg <daniel_at_haxx.se> a écrit:

> On Mon, 23 Mar 2009, Sukender wrote:
>
>> Build successful:
>> - Win32 / MSVC 8 (Express)
>> - cURL 7.19.4
>> - With or without Windows SSPI
>> - With or without zlib (Not tested against SSL yet)
>
> Let me mention that we have support for 4-5 different SSL libraries. The
> current file seems to assume only OpenSSL.
>
> And why does it add -D_USRDLL ?
>
>> Please test with as many compilers/platforms as possible and report anything
>> useful.
>
> On my debian unstable Linux using cmake version 2.6-patch 3:
>
> % cmake .
> % make
>
> [ 1%] Building C object lib/CMakeFiles/libcurl.dir/file.c.o
> In file included from /home/daniel/src/curl-alt/lib/setup.h:473,
> from /home/daniel/src/curl-alt/lib/file.c:24:
> /home/daniel/src/curl-alt/lib/setup_once.h:82: error: redefinition of 'struct
> timeval'
> /home/daniel/src/curl-alt/lib/setup_once.h:164: error: expected '=', ',', ';',
> 'asm' or '__attribute__' before 'Missing_definition_of_macro_sread'
> In file included from /home/daniel/src/curl-alt/lib/urldata.h:54,
> from /home/daniel/src/curl-alt/lib/file.c:75:
> /home/daniel/src/curl-alt/lib/cookie.h:45: error: expected
> specifier-qualifier-list before 'bool'
> /home/daniel/src/curl-alt/lib/cookie.h:61: error: expected
> specifier-qualifier-list before 'bool'
> /home/daniel/src/curl-alt/lib/cookie.h:88: error: expected declaration
> specifiers or '...' before 'bool'
> /home/daniel/src/curl-alt/lib/cookie.h:92: error: expected declaration
> specifiers or '...' before 'bool'
> /home/daniel/src/curl-alt/lib/cookie.h:94: error: expected declaration
> specifiers or '...' before 'bool'
> /home/daniel/src/curl-alt/lib/cookie.h:95: error: expected declaration
> specifiers or '...' before 'bool'
>
> (totally about 130 lines of errors)
Received on 2009-03-23