Bug#565062: patches for ftbfs
Gonéri Le Bouder
goneri at rulezlan.org
Thu Oct 28 19:31:47 UTC 2010
On Wed, Oct 20, 2010 at 02:22:33PM +0200, Krzysztof Klimonda wrote:
> There are two patches attached, one for ftbfs with gcc 4.5 and another
> for ftbfs related to dso linking.
Hi Krzysztof,
I still have a FTBFS with your patch:
ln -s ../bear-factory/desktop/menu/bf-animation-editor debian/bf-animation-editor.menu
ln -s ../bear-factory/desktop/menu/bf-level-editor debian/bf-level-editor.menu
ln -s ../bear-factory/desktop/menu/bf-model-editor debian/bf-model-editor.menu
touch configure-stamp
dh_testdir
cd /home/goneri/tmp/plee-the-bear-0.4.1/build-tree; /usr/bin/make
make[1]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
Scanning dependencies of target bear_input
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
[ 0%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/input_listener.o
[ 1%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/input_status.o
[ 1%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/joystick.o
In file included from /usr/include/claw/logger.hpp:117:0,
from /home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/core/src/input/code/joystick.cpp:34:
/usr/include/claw/impl/logger.tpp:39:1: error: 'claw::log_system::log_system' names the constructor, not the type
/home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/core/src/input/code/joystick.cpp:41:1: error: expected unqualified-id before 'unsigned'
make[3]: *** [bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/joystick.o] Error 1
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: *** [bear-engine/core/src/input/CMakeFiles/bear_input.dir/all] Error 2
make[2]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc failed
Cheers,
Gonéri
-------------- next part --------------
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: source package plee-the-bear
dpkg-buildpackage: source version 0.4.1-3
dpkg-buildpackage: source changed by Julien Jorge <julien_jorge at yahoo.fr>
dpkg-source --before-build plee-the-bear-0.4.1
dpkg-buildpackage: host architecture kfreebsd-amd64
fakeroot debian/rules clean
dh_testdir
dh_testroot
QUILT_PATCHES=debian/patches quilt pop -a -R || test $? = 2
Removing patch fix_ftbfs_gcc45.patch
Restoring bear-engine/core/src/engine/code/compiled_file.cpp
Restoring bear-factory/bear-editor/src/bf/code/compiled_file.cpp
Removing patch fix_dso_linking.patch
Restoring bear-factory/animation-editor/src/bf/CMakeLists.txt
Restoring bear-factory/CMakeLists.txt
Restoring bear-factory/level-editor/src/bf/CMakeLists.txt
Restoring bear-factory/model-editor/src/bf/CMakeLists.txt
Removing patch editors-menu-section.diff
Restoring bear-factory/desktop/menu/bf-animation-editor
Restoring bear-factory/desktop/menu/bf-level-editor
Restoring bear-factory/desktop/menu/bf-model-editor
Removing patch rpath-game.diff
Restoring bear-engine/core/src/audio/CMakeLists.txt
Restoring bear-engine/core/src/communication/CMakeLists.txt
Restoring bear-engine/core/src/debug/CMakeLists.txt
Restoring bear-engine/core/src/engine/CMakeLists.txt
Restoring bear-engine/core/src/gui/CMakeLists.txt
Restoring bear-engine/core/src/input/CMakeLists.txt
Restoring bear-engine/core/src/time/CMakeLists.txt
Restoring bear-engine/core/src/universe/CMakeLists.txt
Restoring bear-engine/core/src/visual/CMakeLists.txt
Restoring bear-engine/running_bear/CMakeLists.txt
Restoring bear-engine/lib/src/generic_items/CMakeLists.txt
Restoring plee-the-bear/src/ptb/CMakeLists.txt
Removing patch editors-default-dir.diff
Restoring bear-factory/bear-editor/src/bf/code/path_configuration.cpp
Removing patch rpath-editors.diff
Restoring bear-factory/animation-editor/src/bf/CMakeLists.txt
Restoring bear-factory/level-editor/src/bf/CMakeLists.txt
Restoring bear-factory/model-editor/src/bf/CMakeLists.txt
Restoring bear-factory/bear-editor/src/bf/CMakeLists.txt
Removing patch do-not-install-authors-files.diff
Restoring plee-the-bear/data/CMakeLists.txt
No patches applied
rm -f build-stamp configure-stamp
if [ -d /home/goneri/tmp/plee-the-bear-0.4.1/build-tree ]; then cd /home/goneri/tmp/plee-the-bear-0.4.1/build-tree; /usr/bin/make clean; fi
make[1]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[1]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
rm -fr /home/goneri/tmp/plee-the-bear-0.4.1/build-tree
rm -f debian/running-bear.6
rm -f debian/plee-the-bear.6
rm -fr .pc
for f in debian/*.menu; do if [ -L $f ]; then unlink $f; fi; done
dh_clean
dpkg-source -b plee-the-bear-0.4.1
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: info: using source format `1.0'
dpkg-source: info: building plee-the-bear using existing plee-the-bear_0.4.1.orig.tar.gz
dpkg-source: info: building plee-the-bear in plee-the-bear_0.4.1-3.diff.gz
dpkg-source: info: building plee-the-bear in plee-the-bear_0.4.1-3.dsc
debian/rules build
dh_testdir
QUILT_PATCHES=debian/patches quilt push -a || test $? = 2
Applying patch do-not-install-authors-files.diff
patching file plee-the-bear/data/CMakeLists.txt
Applying patch rpath-editors.diff
patching file bear-factory/animation-editor/src/bf/CMakeLists.txt
patching file bear-factory/level-editor/src/bf/CMakeLists.txt
patching file bear-factory/model-editor/src/bf/CMakeLists.txt
patching file bear-factory/bear-editor/src/bf/CMakeLists.txt
Applying patch editors-default-dir.diff
patching file bear-factory/bear-editor/src/bf/code/path_configuration.cpp
Applying patch rpath-game.diff
patching file bear-engine/core/src/audio/CMakeLists.txt
patching file bear-engine/core/src/communication/CMakeLists.txt
patching file bear-engine/core/src/debug/CMakeLists.txt
patching file bear-engine/core/src/engine/CMakeLists.txt
patching file bear-engine/core/src/gui/CMakeLists.txt
patching file bear-engine/core/src/input/CMakeLists.txt
patching file bear-engine/core/src/time/CMakeLists.txt
patching file bear-engine/core/src/universe/CMakeLists.txt
patching file bear-engine/core/src/visual/CMakeLists.txt
patching file bear-engine/running_bear/CMakeLists.txt
patching file bear-engine/lib/src/generic_items/CMakeLists.txt
patching file plee-the-bear/src/ptb/CMakeLists.txt
Hunk #1 succeeded at 146 (offset 1 line).
Applying patch editors-menu-section.diff
patching file bear-factory/desktop/menu/bf-animation-editor
patching file bear-factory/desktop/menu/bf-level-editor
patching file bear-factory/desktop/menu/bf-model-editor
Applying patch fix_dso_linking.patch
(Stripping trailing CRs from patch.)
patching file bear-factory/animation-editor/src/bf/CMakeLists.txt
Hunk #1 succeeded at 32 (offset 6 lines).
(Stripping trailing CRs from patch.)
patching file bear-factory/CMakeLists.txt
(Stripping trailing CRs from patch.)
patching file bear-factory/level-editor/src/bf/CMakeLists.txt
Hunk #1 succeeded at 82 (offset 6 lines).
(Stripping trailing CRs from patch.)
patching file bear-factory/model-editor/src/bf/CMakeLists.txt
Hunk #1 succeeded at 79 (offset 6 lines).
Applying patch fix_ftbfs_gcc45.patch
(Stripping trailing CRs from patch.)
patching file bear-engine/core/src/engine/code/compiled_file.cpp
(Stripping trailing CRs from patch.)
patching file bear-factory/bear-editor/src/bf/code/compiled_file.cpp
Now at patch fix_ftbfs_gcc45.patch
# Perform an out-of-tree build to keep a clean source tree
mkdir /home/goneri/tmp/plee-the-bear-0.4.1/build-tree
cd /home/goneri/tmp/plee-the-bear-0.4.1/build-tree; cmake .. \
-DCMAKE_INSTALL_PREFIX:STRING="/usr" \
-DCMAKE_C_FLAGS:STRING="-g -O2 -DNDEBUG" \
-DBEAR_ENGINE_INSTALL_LIBRARY_DIR:STRING="lib/games/plee-the-bear" \
-DBEAR_ENGINE_INSTALL_EXECUTABLE_DIR:STRING="games" \
-DBEAR_FACTORY_INSTALL_LIBRARY_DIR:STRING="lib/bear-factory" \
-DBEAR_FACTORY_INSTALL_EXECUTABLE_DIR:STRING="games" \
-DCMAKE_SHARED_LINKER_FLAGS:STRING="-Wl,--as-needed" \
-DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--as-needed" \
-DPTB_INSTALL_DATA_DIR:STRING="share/games/plee-the-bear" \
-DPTB_INSTALL_CUSTOM_LIBRARY_DIR:STRING="lib/games/plee-the-bear" \
-DPTB_INSTALL_EXECUTABLE_DIR:STRING="games"
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found JPEG: /usr/lib/libjpeg.so
-- Found ZLIB: /usr/include
-- Found PNG: /usr/lib/libpng.so
-- Found Claw library
-- Boost version: 1.42.0
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- filesystem
-- thread
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Warning (dev) in bear-engine/CMakeLists.txt:
The source directory
/home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/common
does not contain a CMakeLists.txt file.
CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.
Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
"cmake --help-policy CMP0014" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) in bear-engine/core/src/CMakeLists.txt:
The source directory
/home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/core/src/concept
does not contain a CMakeLists.txt file.
CMake does not support this case but it used to work accidentally and is
being allowed for compatibility.
Policy CMP0014 is not set: Input directories must have CMakeLists.txt. Run
"cmake --help-policy CMP0014" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Claw library
-- Found Claw library
-- Boost version: 1.42.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Found wxWidgets: TRUE
-- Configuring done
CMake Warning (dev) at plee-the-bear/src/ptb/CMakeLists.txt:148 (ADD_LIBRARY):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "plee_the_bear" links to some libraries for which the linker
must search:
dl, -lpthread
and other libraries with known full path:
/home/goneri/tmp/plee-the-bear-0.4.1/build-tree/bear-engine/bin/libbear_engine.so
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/goneri/tmp/plee-the-bear-0.4.1/build-tree
ln -s ../plee-the-bear/desktop/menu/plee-the-bear debian/plee-the-bear.menu
ln -s ../bear-factory/desktop/menu/bf-animation-editor debian/bf-animation-editor.menu
ln -s ../bear-factory/desktop/menu/bf-level-editor debian/bf-level-editor.menu
ln -s ../bear-factory/desktop/menu/bf-model-editor debian/bf-model-editor.menu
touch configure-stamp
dh_testdir
cd /home/goneri/tmp/plee-the-bear-0.4.1/build-tree; /usr/bin/make
make[1]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
Scanning dependencies of target bear_input
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[3]: Entering directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
[ 0%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/input_listener.o
[ 1%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/input_status.o
[ 1%] Building CXX object bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/joystick.o
In file included from /usr/include/claw/logger.hpp:117:0,
from /home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/core/src/input/code/joystick.cpp:34:
/usr/include/claw/impl/logger.tpp:39:1: error: 'claw::log_system::log_system' names the constructor, not the type
/home/goneri/tmp/plee-the-bear-0.4.1/bear-engine/core/src/input/code/joystick.cpp:41:1: error: expected unqualified-id before 'unsigned'
make[3]: *** [bear-engine/core/src/input/CMakeFiles/bear_input.dir/code/joystick.o] Error 1
make[3]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[2]: *** [bear-engine/core/src/input/CMakeFiles/bear_input.dir/all] Error 2
make[2]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/goneri/tmp/plee-the-bear-0.4.1/build-tree'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1325:
dpkg-buildpackage -rfakeroot -D -us -uc failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 201 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20101028/37755b42/attachment.pgp>
More information about the Pkg-games-devel
mailing list