Bug#297561: marked as done (asterisk: FTBFS (amd64/gcc-4.0): static declaration of 'uniquelock' follows non-static declaration)

Debian Bug Tracking System owner@bugs.debian.org
Sat, 19 Mar 2005 18:03:33 -0800


Your message dated Sat, 19 Mar 2005 20:47:08 -0500
with message-id <E1DCpX2-0006PO-00@newraff.debian.org>
and subject line Bug#297561: fixed in asterisk 1:1.0.7-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Mar 2005 14:31:59 +0000
>From aj@andaco.de Tue Mar 01 06:31:59 2005
Return-path: <aj@andaco.de>
Received: from c187024.adsl.hansenet.de (localhost.localdomain) [213.39.187.24] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1D68Pm-00007f-00; Tue, 01 Mar 2005 06:31:59 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1D69M7-00046F-2A; Tue, 01 Mar 2005 16:32:15 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: asterisk: FTBFS (amd64/gcc-4.0): static declaration of 'uniquelock' follows non-static declaration
Message-Id: <E1D69M7-00046F-2A@localhost.localdomain>
Date: Tue, 01 Mar 2005 16:32:15 +0100
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: asterisk
Severity: normal
Tags: patch

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

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O2    -DZAPTEL_OPTIMIZATIONS -DASTERISK_VERSION=\"1.0.5-BRIstuffed-0.2.0-RC7e\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run/asterisk\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTDATADIR=\"/usr/share/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/usr/share/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN        -c -o channel.o channel.c
channel.c:63: error: static declaration of 'uniquelock' follows non-static declaration
include/asterisk/channel.h:58: error: previous declaration of 'uniquelock' was here
make[1]: *** [channel.o] Error 1
make[1]: Leaving directory `/asterisk-1.0.5'
make: *** [build-arch-stamp] Error 2

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/asterisk-1.0.5/debian/patches/97_bristuff.dpatch ./debian/patches/97_bristuff.dpatch
--- ../tmp-orig/asterisk-1.0.5/debian/patches/97_bristuff.dpatch	2005-03-01 15:49:10.499076547 +0100
+++ ./debian/patches/97_bristuff.dpatch	2005-03-01 15:48:56.090857599 +0100
@@ -2985,7 +2985,7 @@
  	int (*generate)(struct ast_channel *chan, void *data, int len, int samples);
  };
  
-+extern ast_mutex_t uniquelock;			
++			
 +
  //! Main Channel structure associated with a channel.
  /*! 

---------------------------------------
Received: (at 297561-close) by bugs.debian.org; 20 Mar 2005 01:54:10 +0000
>From katie@ftp-master.debian.org Sat Mar 19 17:54:10 2005
Return-path: <katie@ftp-master.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DCpdp-0008D3-00; Sat, 19 Mar 2005 17:54:09 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1DCpX2-0006PO-00; Sat, 19 Mar 2005 20:47:08 -0500
From: Kilian Krause <kk@nyx.verfaction.de>
To: 297561-close@bugs.debian.org
X-Katie: $Revision: 1.55 $
Subject: Bug#297561: fixed in asterisk 1:1.0.7-1
Message-Id: <E1DCpX2-0006PO-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 19 Mar 2005 20:47:08 -0500
Delivered-To: 297561-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

Source: asterisk
Source-Version: 1:1.0.7-1

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

asterisk-config_1.0.7-1_all.deb
  to pool/main/a/asterisk/asterisk-config_1.0.7-1_all.deb
asterisk-dev_1.0.7-1_all.deb
  to pool/main/a/asterisk/asterisk-dev_1.0.7-1_all.deb
asterisk-doc_1.0.7-1_all.deb
  to pool/main/a/asterisk/asterisk-doc_1.0.7-1_all.deb
asterisk-gtk-console_1.0.7-1_i386.deb
  to pool/main/a/asterisk/asterisk-gtk-console_1.0.7-1_i386.deb
asterisk-h323_1.0.7-1_i386.deb
  to pool/main/a/asterisk/asterisk-h323_1.0.7-1_i386.deb
asterisk-sounds-main_1.0.7-1_all.deb
  to pool/main/a/asterisk/asterisk-sounds-main_1.0.7-1_all.deb
asterisk-web-vmail_1.0.7-1_all.deb
  to pool/main/a/asterisk/asterisk-web-vmail_1.0.7-1_all.deb
asterisk_1.0.7-1.diff.gz
  to pool/main/a/asterisk/asterisk_1.0.7-1.diff.gz
asterisk_1.0.7-1.dsc
  to pool/main/a/asterisk/asterisk_1.0.7-1.dsc
asterisk_1.0.7-1_i386.deb
  to pool/main/a/asterisk/asterisk_1.0.7-1_i386.deb
asterisk_1.0.7.orig.tar.gz
  to pool/main/a/asterisk/asterisk_1.0.7.orig.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 297561@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Kilian Krause <kk@nyx.verfaction.de> (supplier of updated asterisk 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 ftpmaster@debian.org)


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

Format: 1.7
Date: Sat, 19 Mar 2005 22:26:45 +0100
Source: asterisk
Binary: asterisk-sounds-main asterisk-h323 asterisk-web-vmail asterisk-gtk-console asterisk asterisk-config asterisk-dev asterisk-doc
Architecture: source all i386
Version: 1:1.0.7-1
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Changed-By: Kilian Krause <kk@nyx.verfaction.de>
Description: 
 asterisk   - open source Private Branch Exchange (PBX)
 asterisk-config - config files for asterisk
 asterisk-dev - development files for asterisk
 asterisk-doc - documentation for asterisk
 asterisk-gtk-console - gtk based console for asterisk
 asterisk-h323 - asterisk H.323 VoIP channel
 asterisk-sounds-main - sound files for asterisk
 asterisk-web-vmail - web based (GCI) voice mail interface for asterisk
Closes: 287260 297561 299184 300370 300373 300403
Changes: 
 asterisk (1:1.0.7-1) unstable; urgency=low
 .
   * New upstream release. (Closes: #300403)
      + Fixed music on hold. (Closes: #300370)
   * Re-enabled speex codec. (Closes: #300373)
   * As asterisk-h323 is empty, we are no longer depending on openh323, so
     we don't have build conflicts between asterisk and zaptel. (Closes: #287260)
   * debian/rules: Fixed duplicate execution of configure and unrepresentable
     changes to source. (Closes: #299184)
   * debian/patches/80_skinny.dpatch: removed. Incorporated in the 1.0.7
     release.
   * debian/patches/97_bristuff.dpatch: fixed problems to build on AMD64 with
     gcc-4.0 (Closes: #297561)
Files: 
 55c436cf71110a45208a633e2d24e252 1226 comm optional asterisk_1.0.7-1.dsc
 8277cc76914fa1e8469ad1333808b538 2929508 comm optional asterisk_1.0.7.orig.tar.gz
 e2f9103abd227cad8cb04c82190f6165 66995 comm optional asterisk_1.0.7-1.diff.gz
 c1e4d99e26f2f485b212dc425c055f64 1546662 doc optional asterisk-doc_1.0.7-1_all.deb
 350197273e0dd617ba683307a6d361cd 82838 devel optional asterisk-dev_1.0.7-1_all.deb
 aa7a3fb3daaab8d386c30226308bdb44 1179580 comm optional asterisk-sounds-main_1.0.7-1_all.deb
 c7e71cae0f6b5067995666f19ed8bd3b 27714 comm optional asterisk-web-vmail_1.0.7-1_all.deb
 9026e0d5c316b63faafecbd230f3b123 61064 comm optional asterisk-config_1.0.7-1_all.deb
 ca2964f9ca18cd8d2b001e1971f7cd93 1174766 comm optional asterisk_1.0.7-1_i386.deb
 da05c42ab16f3b2c92e90f94c498cdd8 20904 comm optional asterisk-h323_1.0.7-1_i386.deb
 7f5a52937e11b5917c46856ed3525f7f 29330 comm optional asterisk-gtk-console_1.0.7-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCPNBHoCzanz0IthIRAiViAJ9TBIOZXaTKHIoDOJb4akFIw81kaQCbBpr7
Wj00gL3dL+wjIHzuk5/3o3A=
=Yi9I
-----END PGP SIGNATURE-----