libdebian-installer: FTBFS (amd64/gcc-4.0):

Bug #15324 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
libdebian-installer (Debian)
Fix Released
Unknown
libdebian-installer (Ubuntu)
Fix Released
High
Colin Watson

Bug Description

Automatically imported from Debian bug report #287384 http://bugs.debian.org/287384

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #287384 http://bugs.debian.org/287384

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 27 Dec 2004 14:22:21 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: libdebian-installer: FTBFS (amd64/gcc-4.0):

Package: libdebian-installer
Severity: normal
Tags: patch

When building 'libdebian-installer' on amd64 with gcc-4.0,
I get the following error:

 x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I../include/debian-installer -I../../include -Wall -W -Werror -gstabs -Wmissing-declarations -Os -fomit-frame-pointer -MT log.lo -MD -MP -MF .deps/log.Tpo -c ../../src/log.c -fPIC -DPIC -o .libs/log.o
cc1: warnings being treated as errors
../../src/log.c: In function 'di_vlog':
../../src/log.c:225: warning: 'user_data' may be used uninitialized in this function
make[4]: *** [log.lo] Error 1
make[4]: Leaving directory `/libdebian-installer-0.29/build/src'

With the attached patch 'libdebian-installer' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libdebian-installer-0.29/src/log.c ./src/log.c
--- ../tmp-orig/libdebian-installer-0.29/src/log.c 2004-03-22 17:37:05.000000000 +0100
+++ ./src/log.c 2004-12-27 14:03:17.668273024 +0100
@@ -222,7 +222,7 @@
   char buf[1024];
   int fatal = log_level & DI_LOG_FATAL_MASK;
   di_log_handler *log_func;
- void *user_data;
+ void *user_data=0;

   vsnprintf (buf, sizeof (buf), format, args);

Revision history for this message
In , Colin Watson (cjwatson) wrote : tagging 287384

# Automatically generated email from bts, devscripts version 2.8.14
tags 287384 pending

Revision history for this message
Colin Watson (cjwatson) wrote :

Already fixed in upstream SVN, but that includes a soname bump so we'll need to
patch it locally for a while.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Tue, 12 Apr 2005 16:09:47 +0100
From: Colin Watson <email address hidden>
To: <email address hidden>
Subject: tagging 287384

# Automatically generated email from bts, devscripts version 2.8.14
tags 287384 pending

Revision history for this message
Colin Watson (cjwatson) wrote :

libdebian-installer (0.29ubuntu1) breezy; urgency=low

  * Backport from trunk (Joey Hess, closes: Ubuntu #9015):
    - Patch log.c to build under gcc 4.0. Closes: #287384

 -- Colin Watson <email address hidden> Wed, 13 Apr 2005 14:19:37 +0100

Revision history for this message
In , Colin Watson (cjwatson) wrote : Bug#287384: fixed in libdebian-installer 0.30
Download full text (3.9 KiB)

Source: libdebian-installer
Source-Version: 0.30

We believe that the bug you reported is fixed in the latest version of
libdebian-installer, which is due to be installed in the Debian FTP archive:

libdebian-installer-extra4-udeb_0.30_powerpc.udeb
  to pool/main/libd/libdebian-installer/libdebian-installer-extra4-udeb_0.30_powerpc.udeb
libdebian-installer-extra4_0.30_powerpc.deb
  to pool/main/libd/libdebian-installer/libdebian-installer-extra4_0.30_powerpc.deb
libdebian-installer4-dev_0.30_powerpc.deb
  to pool/main/libd/libdebian-installer/libdebian-installer4-dev_0.30_powerpc.deb
libdebian-installer4-udeb_0.30_powerpc.udeb
  to pool/main/libd/libdebian-installer/libdebian-installer4-udeb_0.30_powerpc.udeb
libdebian-installer4_0.30_powerpc.deb
  to pool/main/libd/libdebian-installer/libdebian-installer4_0.30_powerpc.deb
libdebian-installer_0.30.dsc
  to pool/main/libd/libdebian-installer/libdebian-installer_0.30.dsc
libdebian-installer_0.30.tar.gz
  to pool/main/libd/libdebian-installer/libdebian-installer_0.30.tar.gz

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <email address hidden> (supplier of updated libdebian-installer package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 25 May 2005 12:49:09 +0100
Source: libdebian-installer
Binary: libdebian-installer4 libdebian-installer-extra4 libdebian-installer4-udeb libdebian-installer-extra4-udeb libdebian-installer4-dev
Architecture: source powerpc
Version: 0.30
Distribution: unstable
Urgency: low
Maintainer: Debian Install System Team <email address hidden>
Changed-By: Colin Watson <email address hidden>
Description:
 libdebian-installer-extra4 - Library of some extra debian-installer functions
 libdebian-installer-extra4-udeb - Library of some extra debian-installer functions (udeb)
 libdebian-installer4 - Library of common debian-installer functions
 libdebian-installer4-dev - Library of common debian-installer functions
 libdebian-installer4-udeb - Library of common debian-installer functions (udeb)
Closes: 258176 287384
Changes:
 libdebian-installer (0.30) unstable; urgency=low
 .
   * Bastian Blank
     - Bump shared library revision to 4.
     - Deprecate di_prebaseconfig_append and di_system_prebaseconfig_append.
     - Add di_exec_path(_full) (execvp wrapper).
   * Joey Hess
     - Patch log.c to build under gcc 4.0. Closes: #287384
   * Colin Watson
     - doxygen doesn't work yet on the Hurd, so avoid building documentation
       there.
     - Add myself to Uploaders.
   * Matt Zimmerman
     - Add devfs-mapping support for UML ubd devices (closes: #258176).
Files:
 ce6fc970ee9bbeb8eeca78f3a4aa9df4 811 libs optional libdebian-installer_0.30.dsc
 9887408baeae952100ec130e9ca4a...

Read more...

Changed in libdebian-installer:
status: Unknown → 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.