Re: Problem building current SVN kdar against dar 2.3.3

Adam Williamson <awilliamson-4qZELD6FgxhWk0Htik3J/[email protected]> Mon, 18 Jun 2007 12:19:22 -0700
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Organization Mandriva
Message-ID <[email protected]>
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


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/