Re: [Dar-libdar_api] Problem building current SVN kdar against dar 2.3.3
For full, incremental, compressed and encrypted backups or archives
Brought to you by:
edrusb
|
From: Adam W. <awi...@ma...> - 2007-06-18 19:19:27
|
On Mon, 2007-06-18 at 20:58 +0200, Denis Corbin wrote:
> the missing operand is LIBDAR_MODE's value which is defined to an empty
> string. LIBDAR_MODE must either not be defined or be set to 64 or 32,
> either from CXXFLAGS and LDFLAGS if not using make from the compiler
> command-line.
>
> example:
> export CXXFLAGS=-DLIBDAR_MODE=64
> export LDFLAGS=-DLIBDAR_MODE=64
> make
>
> or
> g++ -DLIBDAR_MODE=64 ...
Just for interest, here's where kdar's broken...
#set the mode definition
STRING(REGEX MATCH "[0-9][0-9]\\.so$" DAR_MODE ${DAR_LIBRARIES})
STRING(REGEX REPLACE "\\.so$" "" DAR_MODE ${DAR_MODE})
set(DAR_DEFINITIONS "-DLIBDAR_MODE=${DAR_MODE}")
SET(DAR_LIB "-ldar${DAR_MODE}")
so it'll only work if the library files are called lib64dar.so.* or
lib32dar.so.* , if I'm reading it right. If the files are called
libdar.so.* (which is likely), it'll set the value to nothing...
That's in cmake/FindDar.cmake in kdar SVN.
--
adamw
|