Debian Bug report logs - #383829
cmake: broke compatibility between 2.2 and 2.4

version graph

Package: cmake; Maintainer for cmake is Modestas Vainius <modax@debian.org>; Source for cmake is src:cmake.

Reported by: Julien Danjou <acid@debian.org>

Date: Sat, 19 Aug 2006 20:48:14 UTC

Severity: normal

Found in version 2.4.3-1

Done: Pierre HABOUZIT <madcoder@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andres Salomon <dilinger@debian.org>:
Bug#383829; Package libapache2-mod-xmlrpc2. Full text and rfc822 format available.

Acknowledgement sent to Julien Danjou <acid@debian.org>:
New Bug report received and forwarded. Copy sent to Andres Salomon <dilinger@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Julien Danjou <acid@debian.org>
To: submit@bugs.debian.org
Subject: libapache2-mod-xmlrpc2: FTBFS: missing build-dep ?
Date: Sat, 19 Aug 2006 22:18:39 +0200
[Message part 1 (text/plain, inline)]
Package: libapache2-mod-xmlrpc2
Version: 2.2.1-2
Severity: serious

Hello,

There was a problem while autobuilding your package:

> Automatic build of libapache2-mod-xmlrpc2_2.2.1-2 on avidan by sbuild/i386 0.49
> Build started at 20060819-2154
> ******************************************************************************
...
> /usr/bin/make -f CMakeFiles/Makefile2 all
> make[2]: Entering directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> /usr/bin/make -f CMakeFiles/mod_xmlrpc.dir/build.make CMakeFiles/mod_xmlrpc.dir/depend
> make[3]: Entering directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> Scanning dependencies of target mod_xmlrpc
> cd /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /build/buildd/libapache2-mod-xmlrpc2-2.2.1 /build/buildd/libapache2-mod-xmlrpc2-2.2.1 /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build/CMakeFiles/mod_xmlrpc.dir/DependInfo.cmake
> make[3]: Leaving directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> /usr/bin/make -f CMakeFiles/mod_xmlrpc.dir/build.make CMakeFiles/mod_xmlrpc.dir/build
> make[3]: Entering directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> /usr/bin/cmake -E cmake_progress_report /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build/CMakeFiles 1
> [ 16%] Building C object CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o
> /usr/bin/gcc  -Dmod_xmlrpc_EXPORTS   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY -fPIC -I/build/buildd/libapache2-mod-xmlrpc2-2.2.1   -o CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o   -c /build/buildd/libapache2-mod-xmlrpc2-2.2.1/mod_xmlrpc.c
> /usr/bin/cmake -E cmake_progress_report /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build/CMakeFiles 2
> [ 33%] Building C object CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o
> /usr/bin/gcc  -Dmod_xmlrpc_EXPORTS   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY -fPIC -I/build/buildd/libapache2-mod-xmlrpc2-2.2.1   -o CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o   -c /build/buildd/libapache2-mod-xmlrpc2-2.2.1/mod_xmlrpc_c.c
> /usr/bin/cmake -E cmake_progress_report /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build/CMakeFiles 3
> [ 50%] Building C object CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o
> /usr/bin/gcc  -Dmod_xmlrpc_EXPORTS   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY -fPIC -I/build/buildd/libapache2-mod-xmlrpc2-2.2.1   -o CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o   -c /build/buildd/libapache2-mod-xmlrpc2-2.2.1/mod_xmlrpc_rb.c
> /usr/bin/cmake -E cmake_progress_report /build/buildd/libapache2-mod-xmlrpc2-2.2.1/build/CMakeFiles 4
> [ 66%] Building C object CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o
> /usr/bin/gcc  -Dmod_xmlrpc_EXPORTS   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY -fPIC -I/build/buildd/libapache2-mod-xmlrpc2-2.2.1   -o CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o   -c /build/buildd/libapache2-mod-xmlrpc2-2.2.1/mod_xmlrpc_server.c
> Linking C shared library mod_xmlrpc.so
> /usr/bin/cmake -P CMakeFiles/mod_xmlrpc.dir/cmake_clean_target.cmake
> /usr/bin/cmake -E cmake_link_script CMakeFiles/mod_xmlrpc.dir/link.txt --verbose=1
> /usr/bin/gcc  -fPIC   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY  `/usr/bin/xmlrpc-c-config --libs` `/usr/bin/apr-config --libs` `/usr/bin/apxs2 -q LDFLAGS` -lpthread -ldl -lcrypt -lm   -lc -lruby1.8 -shared -Wl,-soname,mod_xmlrpc.so -o mod_xmlrpc.so "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o" 
> gcc: `/usr/bin/xmlrpc-c-config: No such file or directory
> gcc: `/usr/bin/apr-config: No such file or directory
> gcc: `/usr/bin/apxs2: No such file or directory
> gcc: CFLAGS`: No such file or directory
> gcc: INCLUDEDIR`: No such file or directory
> gcc: `/usr/bin/xmlrpc-c-config: No such file or directory
> gcc: `/usr/bin/apr-config: No such file or directory
> gcc: `/usr/bin/apxs2: No such file or directory
> gcc: LDFLAGS`: No such file or directory
> gcc: unrecognized option '-q'
> gcc: unrecognized option '-q'
> gcc: unrecognized option '-q'
> make[3]: *** [mod_xmlrpc.so] Error 1
> make[3]: Leaving directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> make[2]: *** [CMakeFiles/mod_xmlrpc.dir/all] Error 2
> make[2]: Leaving directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/build/buildd/libapache2-mod-xmlrpc2-2.2.1/build'
> make: *** [debian/stamp-makefile-build] Error 2
> ******************************************************************************
> Build finished at 20060819-2155
> FAILED [dpkg-buildpackage died]
> ------------------------------------------------------------------------------

Cheers,
-- 
Julien Danjou
.''`.  Debian Developer
: :' : http://julien.danjou.info
`. `'  http://people.debian.org/~acid
  `-   9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#383829; Package libapache2-mod-xmlrpc2. Full text and rfc822 format available.

Acknowledgement sent to Andres Salomon <dilinger@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at submit@bugs.debian.org (full text, mbox):

From: Andres Salomon <dilinger@debian.org>
To: Julien Danjou <acid@debian.org>, 383829@bugs.debian.org
Cc: submit@bugs.debian.org
Subject: Re: Bug#383829: libapache2-mod-xmlrpc2: FTBFS: missing build-dep ?
Date: Sat, 19 Aug 2006 17:11:43 -0400
On Sat, 2006-08-19 at 22:18 +0200, Julien Danjou wrote:
> Package: libapache2-mod-xmlrpc2
> Version: 2.2.1-2
> Severity: serious
> 
[...]
> > /usr/bin/gcc  -fPIC   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY  `/usr/bin/xmlrpc-c-config --libs` `/usr/bin/apr-config --libs` `/usr/bin/apxs2 -q LDFLAGS` -lpthread -ldl -lcrypt -lm   -lc -lruby1.8 -shared -Wl,-soname,mod_xmlrpc.so -o mod_xmlrpc.so "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o" 
> > gcc: `/usr/bin/xmlrpc-c-config: No such file or directory
> > gcc: `/usr/bin/apr-config: No such file or directory

I don't think it's missing a build-dep; I can reproduce the error in a
chroot, but everything needed to compile that is there.  It's somewhere
weird w/ the quoting.  If I run the above line manually from the build/
directory, it works..





Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#383829; Package libapache2-mod-xmlrpc2. Full text and rfc822 format available.

Acknowledgement sent to Andres Salomon <dilinger@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Andres Salomon <dilinger@debian.org>:
Bug#383829; Package libapache2-mod-xmlrpc2. Full text and rfc822 format available.

Acknowledgement sent to Damián Viano <debian@damianv.com.ar>:
Extra info received and forwarded to list. Copy sent to Andres Salomon <dilinger@debian.org>. Full text and rfc822 format available.

Message #20 received at 383829@bugs.debian.org (full text, mbox):

From: Damián Viano <debian@damianv.com.ar>
To: 383829@bugs.debian.org
Cc: control@bugs.debian.org
Subject: This is a cmake bug
Date: Sun, 20 Aug 2006 12:13:11 -0300
reassign 383829 cmake 2.4.3-1
# set severity to critical since it brake others package(s?)
severity 383829 critical
notfound 383829 2.2.3-1
thanks, control, you are my reassigning bitch ;-p

This is a bug/regression in cmake, as this package compiles fine with
cmake 2.2.3-1. I'll be looking into it and report later today.

	Hope to help,

-- 
Damián Viano(Des)              ¯ ¯ - _           _ - ¯ ¯
GPG: 0x6EB95A6F                 Debian ¯-_GNU_-¯ Linux
Web: http://damianv.com.ar/               ¯-¯



Bug reassigned from package `libapache2-mod-xmlrpc2' to `cmake'. Request was from Damián Viano <debian@damianv.com.ar> to control@bugs.debian.org. Full text and rfc822 format available.

Severity set to `critical' from `serious' Request was from Damián Viano <debian@damianv.com.ar> to control@bugs.debian.org. Full text and rfc822 format available.

Bug marked as not found in version 2.2.3-1. Request was from Damián Viano <debian@damianv.com.ar> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#383829; Package cmake. Full text and rfc822 format available.

Acknowledgement sent to Damián Viano <dviano@fi.uba.ar>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). Full text and rfc822 format available.

Message #31 received at 383829@bugs.debian.org (full text, mbox):

From: Damián Viano <dviano@fi.uba.ar>
To: 383829@bugs.debian.org
Subject: moreinfo
Date: Sun, 20 Aug 2006 19:44:21 -0300
Ok, I've been looking this for a while now and I'm not sure what to do.
The problem is that cmake changed the way it links binaries between 2.2
and 2.4, before the linking line was directly included in the Makefiles,
like: 

mod_xmlrpc.so: CMakeFiles/mod_xmlrpc.dir/build.make
        @echo "Linking C shared library mod_xmlrpc.so"
        $(CMAKE_COMMAND) -E remove -f libmod_xmlrpc.a mod_xmlrpc.so
        gcc -fPIC  `/usr/bin/xmlrpc-c-config --libs` `/usr/bin/apr-config --libs` `/usr/bin/apxs2 -q LDFLAGS` -lpthread -ldl -lcrypt -lm   -lc -lruby1.8 -shared -Wl,-soname,mod_xmlrpc.so -o mod_xmlrpc.so $(mod_xmlrpc_OBJECTS) $(mod_xmlrpc_EXTERNAL_OBJECTS)

while 2.4 does it like: 

mod_xmlrpc.so: CMakeFiles/mod_xmlrpc.dir/build.make
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --red --bold "Linking C shared library mod_xmlrpc.so"
        $(CMAKE_COMMAND) -P CMakeFiles/mod_xmlrpc.dir/cmake_clean_target.cmake
        $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/mod_xmlrpc.dir/link.txt --verbose=$(VERBOSE)

and link.txt contains:

/usr/bin/gcc  -fPIC   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY  `/usr/bin/xmlrpc-c-config --libs` `/usr/bin/apr-config --libs` `/usr/bin/apxs2 -q LDFLAGS` -lpthread -ldl -lcrypt -lm   -lc -lruby1.8 -shared -Wl,-soname,mod_xmlrpc.so -o mod_xmlrpc.so "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o"

The problem lays in that Makefile lines are interpreted by a shell while cmake
directly exec them. Wether this change in the behaviour of cmake is a bug or
not I'll leave it to the maintainer to figure it out, because you probably
shouldn't depend on that on rules of a 'cross-platform make'.

	Meanwhile I tested to compile every cmake build-rdep with 2.4 and found this:
boson 0
cableswig 0
gccxml 0
libapache2-mod-xmlrpc2 100
octaviz 0
strigi 100
strigiapplet 0
vtk 100
yodl 0

Both strigi and libapache2-mod-xmlrpc2 seems broken by this change, the vtk
problem doesn't seem related. I have patches for those two bugs and will be
filling bugs with patches for them.

	Damián(Des).



Changed Bug title. Request was from Damián Viano <debian@damianv.com.ar> to control@bugs.debian.org. Full text and rfc822 format available.

Bug 383829 cloned as bugs 383955, 383956. Request was from Damián Viano <debian@damianv.com.ar> to control@bugs.debian.org. Full text and rfc822 format available.

Severity set to `normal' from `critical' Request was from "A. Maitland Bottoms" <bottoms@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, bottoms@debian.org (A. Maitland Bottoms):
Bug#383829; Package cmake. Full text and rfc822 format available.

Acknowledgement sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
Extra info received and forwarded to list. Copy sent to bottoms@debian.org (A. Maitland Bottoms). Full text and rfc822 format available.

Message #42 received at 383829@bugs.debian.org (full text, mbox):

From: Lucas Nussbaum <lucas@lucas-nussbaum.net>
To: Andres Salomon <dilinger@debian.org>
Cc: 383829@bugs.debian.org
Subject: Re: Bug#383829: libapache2-mod-xmlrpc2: FTBFS: missing build-dep ?
Date: Thu, 19 Apr 2007 17:54:35 +0200
On 19/08/06 at 17:11 -0400, Andres Salomon wrote:
> On Sat, 2006-08-19 at 22:18 +0200, Julien Danjou wrote:
> > Package: libapache2-mod-xmlrpc2
> > Version: 2.2.1-2
> > Severity: serious
> > 
> [...]
> > > /usr/bin/gcc  -fPIC   -DSUPPORT_C `/usr/bin/xmlrpc-c-config --cflags` `/usr/bin/apr-config --cflags` -I`/usr/bin/apr-config --includedir` `/usr/bin/apxs2 -q CFLAGS` -I`/usr/bin/apxs2 -q INCLUDEDIR` -Wall -g -fno-strict-aliasing -O2  -fPIC -I/usr/lib/ruby/1.8/i486-linux -DSUPPORT_RUBY  `/usr/bin/xmlrpc-c-config --libs` `/usr/bin/apr-config --libs` `/usr/bin/apxs2 -q LDFLAGS` -lpthread -ldl -lcrypt -lm   -lc -lruby1.8 -shared -Wl,-soname,mod_xmlrpc.so -o mod_xmlrpc.so "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_c.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_rb.o" "CMakeFiles/mod_xmlrpc.dir/mod_xmlrpc_server.o" 
> > > gcc: `/usr/bin/xmlrpc-c-config: No such file or directory
> > > gcc: `/usr/bin/apr-config: No such file or directory
> 
> I don't think it's missing a build-dep; I can reproduce the error in a
> chroot, but everything needed to compile that is there.  It's somewhere
> weird w/ the quoting.  If I run the above line manually from the build/
> directory, it works..

Hi Andres,

This bug has been open for a long time, and has a patch. You should
probably remove the patch tag if it doesn't allow to fix the bug ... or
maybe upload a new version of the package, fixing the bug ?

Thank you,
-- 
| Lucas Nussbaum
| lucas@lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr             GPG: 1024D/023B3F4F |



Reply sent to Pierre HABOUZIT <madcoder@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Julien Danjou <acid@debian.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #47 received at 383829-done@bugs.debian.org (full text, mbox):

From: Pierre HABOUZIT <madcoder@debian.org>
To: "A. Maitland Bottoms" <bottoms@debian.org>, 383829-done@bugs.debian.org
Subject: Re: cmake: broke compatibility between 2.2 and 2.4
Date: Fri, 25 May 2007 15:12:02 +0200
[Message part 1 (text/plain, inline)]
On Mon, Sep 04, 2006 at 11:17:56PM -0400, A. Maitland Bottoms wrote:
> severity 383829 normal
> stop
> 
> Since the FTBFS of cmake-using packages have
> valid fixes, I'll lower the severity.
> 
> After all, the reason cmake broke compatibility
> between 2.2 and 2.4 was to solve other problems
> when shell expansions caused failures.
> 
> We'll keep this bug around a bit, since there
> is useful information here...

  It's even "worse" than that, it's clearly documented that this is not
going to work. libapache-modxmlrpc2 is just wrong, backticks should not
be used, and EXEC_PROGRAM or EXECUTE_PROCESS instead.

-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
[Message part 2 (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 23 Jun 2007 07:32:16 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 07:14:56 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.