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: Denis C. <dar...@fr...> - 2007-06-18 18:58:39
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
Adam Williamson a écrit :
> Hi, all. I am trying to build current SVN kdar for Mandriva. I know it's
> not much use currently, but at the moment we have a package that's
> entirely useless since it's built against libdar3, so anything would be
> an improvement.
>
> Anyway, the build fails because of an apparent problem in a libdar
> header file. Does anyone know what the issue is here? Thanks!
>
> [ 11%] Building CXX object
> src/kdar_part/CMakeFiles/kdarpart.dir/kdar_part.o
> /usr/bin/c++ -Dkdarpart_EXPORTS -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fomit-frame-pointer -march=i586 -mtune=generic
> -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi
> -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith
> -Wformat-security -fno-exceptions -fno-check-new -fno-common
> -fvisibility=hidden -O2 -g -fPIC
> -I/home/adamw/rpm/BUILD/kdar/build/src/kdar_part
> -I/home/adamw/rpm/BUILD/kdar/src/kdar_part -I/usr/lib/qt4/include
> -I/usr/lib/qt4/include/Qt -I/usr/lib/qt4/mkspecs/default
> -I/usr/lib/qt4/include/QtCore -I/usr/lib/qt4/include/QtGui
> -I/usr/lib/qt4/include/Qt3Support -I/usr/lib/qt4/include/QtAssistant
> -I/usr/lib/qt4/include/QtDesigner -I/usr/lib/qt4/include/QtNetwork
> -I/usr/lib/qt4/include/QtOpenGL -I/usr/lib/qt4/include/QtSql
> -I/usr/lib/qt4/include/QtXml -I/usr/lib/qt4/include/QtSvg
> -I/usr/lib/qt4/include/QtScript -I/usr/lib/qt4/include/QtUiTools
> -I/usr/lib/qt4/include/QtTest -I/usr/lib/qt4/include/QtDBus
> -I/opt/kde4/include -I/opt/kde4/include/KDE -I/usr/local/include
> -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE
> -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS
> -fexceptions -DLIBDAR_MODE= -DVERSION=3.0 -DGCC_HASCLASSVISIBILITY
> -fvisibility=default -o
> src/kdar_part/CMakeFiles/kdarpart.dir/kdar_part.o
> -c /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp
> In file included from /usr/include/dar/compressor.hpp:32,
> from /usr/include/dar/libdar.hpp:63,
>
> from /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdarbrowser.h:44,
>
> from /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp:22:
> /usr/include/dar/infinint.hpp:32:17: error: operator '==' has no left
> operand
> /usr/include/dar/infinint.hpp:37:17: error: operator '==' has no left
> operand
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 ...
Regards,
Denis.
> /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp:246:6: warning:
> #warning TODO how should we set the cursor state? Which widgets will
> show the hourglass?
> /usr/include/dar/storage.hpp:67: error: expected ',' or '...' before '&'
> token
> /usr/include/dar/storage.hpp:70: error: expected ',' or '...' before '&'
> token
> /usr/include/dar/storage.hpp:89: error: declaration of 'operator[]' as
> non-function
> /usr/include/dar/storage.hpp:89: error: expected ';' before '(' token
> /usr/include/dar/storage.hpp:90: error: expected ',' or '...' before '&'
> token
> /usr/include/dar/storage.hpp:91: error: 'infinint' does not name a type
> /usr/include/dar/storage.hpp:119: error: 'infinint' has not been
> declared
> /usr/include/dar/storage.hpp:120: error: 'infinint' does not name a type
> /usr/include/dar/storage.hpp:174: error: 'infinint' has not been
> declared
> /usr/include/dar/storage.hpp:193: error: 'infinint' has not been
> declared
> /usr/include/dar/real_infinint.hpp: In member function 'libdar::infinint
> libdar::infinint::get_storage_size() const':
> /usr/include/dar/real_infinint.hpp:121: error: 'class libdar::storage'
> has no member named 'size'
> /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp: At global scope:
> /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp:566: warning:
> unused parameter 'archiveName'
> /home/adamw/rpm/BUILD/kdar/src/kdar_part/kdar_part.cpp:574: warning:
> unused parameter 'archiveName'
> make[2]: *** [src/kdar_part/CMakeFiles/kdarpart.dir/kdar_part.o] Error 1
> make[2]: Leaving directory `/home/adamw/rpm/BUILD/kdar/build'
> make[1]: *** [src/kdar_part/CMakeFiles/kdarpart.dir/all] Error 2
> make[1]: Leaving directory `/home/adamw/rpm/BUILD/kdar/build'
> make: *** [all] Error 2
> error: Bad exit status from /home/adamw/rpm/tmp/rpm-tmp.88093 (%build)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGdtXZpC5CI8gYGlIRAqJGAKDHEJsSexITdNiuouejFoU5LTI8IQCfVR8Y
cE6i+UBqB7IywEpaZ00wmsc=
=OrSu
-----END PGP SIGNATURE-----
|