slurm version 0.3.3-2 failed to build in oneiric

Bug #832924 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
slurm (Debian)
Fix Released
Unknown
slurm (Ubuntu)
Fix Released
High
Unassigned
Oneiric
Fix Released
High
Unassigned

Bug Description

slurm version 0.3.3-2 failed to build in oneiric
Link to failed build: https://launchpad.net/ubuntu/+archive/test-rebuild-20110816/+build/2711659

Details about the rebuild:
http://people.ubuntuwire.org/~wgrant/rebuild-ftbfs-test/test-rebuild-20110816-oneiric.html

Direct link to the build log: https://launchpad.net/ubuntu/+archive/test-rebuild-20110816/+build/2711659/+files/buildlog_ubuntu-oneiric-amd64.slurm_0.3.3-2_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 515 lines into the build log:

/build/buildd/slurm-0.3.3/slurm.c:1406: undefined reference to `init_pair'
/build/buildd/slurm-0.3.3/slurm.c:1407: undefined reference to `init_pair'
/build/buildd/slurm-0.3.3/slurm.c:1408: undefined reference to `init_pair'
/build/buildd/slurm-0.3.3/slurm.c:1409: undefined reference to `stdscr'
/build/buildd/slurm-0.3.3/slurm.c:1481: undefined reference to `stdscr'
/build/buildd/slurm-0.3.3/slurm.c:1481: undefined reference to `wmove'
/build/buildd/slurm-0.3.3/slurm.c:1488: undefined reference to `stdscr'
/build/buildd/slurm-0.3.3/slurm.c:1488: undefined reference to `wgetch'
collect2: ld returned 1 exit status
make[2]: *** [slurm] Error 1
make[2]: Leaving directory `/build/buildd/slurm-0.3.3'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/slurm-0.3.3'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110823-1922
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/slurm-0.3.3

Tags: ftbfs oneiric

Related branches

Matthias Klose (doko)
Changed in slurm (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Matthias Schmitz (matthias-sigxcpu) wrote :

I can reproduced the problem here with a Oneiric chroot and cowbuilder . But the problem also appears with a small testcase so something must be broken in libncurses5-dev.

root@x200:~# cat ncurses-test.c
#include <curses.h>

int main (void) {
        initscr();

        return(0);
}
root@x200:~# gcc -lncurses ncurses-test.c
/tmp/ccDnNL1b.o: In function `main':
ncurses-test.c:(.text+0x5): undefined reference to `initscr'
collect2: ld returned 1 exit status
root@x200:~#

Revision history for this message
Matthias Klose (doko) wrote :

no. see ld(1) --as-needed. move the library after the objects/sources

Revision history for this message
Matthias Schmitz (matthias-sigxcpu) wrote :

Ahh! Thanks for this pointer.
The package build works with "LDFLAGS=-Wl,--as-needed".
Fixed package version is coming ... :-)

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 832924] Re: slurm version 0.3.3-2 failed to build in oneiric

On 08/29/2011 09:13 AM, Matthias Schmitz wrote:
> Ahh! Thanks for this pointer.
> The package build works with "LDFLAGS=-Wl,--as-needed".
> Fixed package version is coming ... :-)

no, this doesn't make sense. Please re-order the arguments instead.

Revision history for this message
Julian Taylor (jtaylor) wrote :

you must use LIBS instead of LDFLAGS for the libraries in configure.in, see the patch in the debian bug

Changed in slurm (Debian):
status: Unknown → New
Revision history for this message
Matthias Schmitz (matthias-sigxcpu) wrote :

I uploaded a new version of slurm to mentors.debian.net. It uses now scons as build system and builds fine on Oneiric and Sid.

I would be glad if someone uploaded this package for me. :-)

 http://mentors.debian.net/package/slurm

Revision history for this message
Julian Taylor (jtaylor) wrote :

thanks that you fixed it.
Its too late to add the new version to ubuntu oneiric now, so I proposed to merge my patch:
https://code.launchpad.net/~jtaylor/ubuntu/oneiric/slurm/fix-832924/+merge/74307

in the next cycle we can sync back the unchanged debian package with the new build system.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

I agree, with jtaylor, as a first step, let's try to merge this one (it's late for oneiric, we try to avoid build system change at this stage of the release), and we will sync back the debian changes next cycle.
Thanks both of you! :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package slurm - 0.3.3-2ubuntu1

---------------
slurm (0.3.3-2ubuntu1) oneiric; urgency=low

  * use dh_autoreconf
  * debian/patches/0004-fix-as-needed-build.patch: (LP: #832924)
    - fix build with ld --as-needed by using LIBS instead of LDFLAGS for links
 -- Julian Taylor <email address hidden> Sat, 03 Sep 2011 15:15:51 +0200

Changed in slurm (Ubuntu Oneiric):
status: Confirmed → Fix Released
Changed in slurm (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.