[Pkg-alsa-devel] Bug#300792: marked as done (alsa-lib: FTBFS (ppc64/gcc-4.0): static declaration of 'shm_sum_discard' follows non-static declaration)

Debian Bug Tracking System owner@bugs.debian.org
Sun, 05 Jun 2005 19:48:22 -0700


Your message dated Sun, 05 Jun 2005 22:32:07 -0400
with message-id <E1Df7PL-0007x0-00@newraff.debian.org>
and subject line Bug#300792: fixed in alsa-lib 1.0.9-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; 21 Mar 2005 21:42:02 +0000
>From aj@andaco.de Mon Mar 21 13:42:02 2005
Return-path: <aj@andaco.de>
Received: from c223012.adsl.hansenet.de (localhost.localdomain) [213.39.223.12] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DDUev-0002u3-00; Mon, 21 Mar 2005 13:42:02 -0800
Received: from aj by localhost.localdomain with local (Exim 4.44)
	id 1DDUeu-0001zf-Ll; Mon, 21 Mar 2005 22:42:00 +0100
To: Debian Bug Tracking System <submit@bugs.debian.org>
From: Andreas Jochens <aj@andaco.de>
Subject: alsa-lib: FTBFS (ppc64/gcc-4.0): static declaration of 'shm_sum_discard' follows non-static declaration
Message-Id: <E1DDUeu-0001zf-Ll@localhost.localdomain>
Date: Mon, 21 Mar 2005 22:42:00 +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: alsa-lib
Severity: normal
Tags: patch

When building 'alsa-lib' on ppc64 with gcc-4.0,
I get the following error:

pcm_dmix.c: At top level:
pcm_dmix.c:92: error: static declaration of 'shm_sum_discard' follows non-static declaration
pcm_dmix.c:84: error: previous implicit declaration of 'shm_sum_discard' was here
pcm_dmix.c:221:2: warning: #warning Please, recode mix_areas1() routine to your architecture...
pcm_dmix.c: In function 'mix_areas1':
pcm_dmix.c:247: error: invalid lvalue in assignment
pcm_dmix.c:248: error: invalid lvalue in assignment
pcm_dmix.c:249: error: invalid lvalue in assignment
pcm_dmix.c:253:2: warning: #warning Please, recode mix_areas2() routine to your architecture...
pcm_dmix.c: In function 'mix_areas2':
pcm_dmix.c:279: error: invalid lvalue in assignment
pcm_dmix.c:280: error: invalid lvalue in assignment
pcm_dmix.c:281: error: invalid lvalue in assignment
make[3]: *** [pcm_dmix.lo] Error 1
make[3]: Leaving directory `/alsa-lib-1.0.8/src/pcm'

With the attached patch 'alsa-lib' can be compiled
on ppc64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/alsa-lib-1.0.8/src/conf.c ./src/conf.c
--- ../tmp-orig/alsa-lib-1.0.8/src/conf.c	2004-10-05 17:33:04.000000000 +0200
+++ ./src/conf.c	2005-03-21 22:30:08.619865849 +0100
@@ -2486,6 +2486,8 @@
 				snd_config_searcha, snd_config_searchva);
 }
 
+static int snd_config_hooks(snd_config_t *config, snd_config_t *private_data);
+
 /**
  * \brief Searches for a node in a configuration tree and expands hooks.
  * \param config Handle to the root of the configuration (sub)tree to search.
@@ -2496,7 +2498,6 @@
  */
 int snd_config_search_hooks(snd_config_t *config, const char *key, snd_config_t **result)
 {
-	static int snd_config_hooks(snd_config_t *config, snd_config_t *private_data);
 	SND_CONFIG_SEARCH(config, key, result, \
 					err = snd_config_hooks(config, NULL); \
 					if (err < 0) \
@@ -2504,6 +2505,8 @@
 			 );
 }
 
+static int snd_config_hooks(snd_config_t *config, snd_config_t *private_data);
+
 /**
  * \brief Searches for a node in a configuration tree, expanding aliases and hooks.
  * \param root Handle to the root configuration node containing alias
@@ -2516,7 +2519,6 @@
  */
 int snd_config_searcha_hooks(snd_config_t *root, snd_config_t *config, const char *key, snd_config_t **result)
 {
-	static int snd_config_hooks(snd_config_t *config, snd_config_t *private_data);
 	SND_CONFIG_SEARCHA(root, config, key, result,
 					snd_config_searcha_hooks,
 					err = snd_config_hooks(config, NULL); \
diff -urN ../tmp-orig/alsa-lib-1.0.8/src/pcm/pcm_dmix.c ./src/pcm/pcm_dmix.c
--- ../tmp-orig/alsa-lib-1.0.8/src/pcm/pcm_dmix.c	2005-01-11 18:42:49.000000000 +0100
+++ ./src/pcm/pcm_dmix.c	2005-03-21 22:07:17.000000000 +0100
@@ -53,12 +53,13 @@
  *
  */
 
+static int shm_sum_discard(snd_pcm_direct_t *dmix);
+
 /*
  *  sum ring buffer shared memory area 
  */
 static int shm_sum_create_or_connect(snd_pcm_direct_t *dmix)
 {
-	static int shm_sum_discard(snd_pcm_direct_t *dmix);
 	struct shmid_ds buf;
 	int tmpid, err;
 	size_t size;
@@ -244,9 +245,9 @@
 		} while (*sum != old_sample);
 		if (!--size)
 			return;
-		((char *)src) += src_step;
-		((char *)dst) += dst_step;
-		((char *)sum) += sum_step;
+		src = ((char *)src) + src_step;
+		dst = ((char *)dst) + dst_step;
+		sum = ((char *)sum) + sum_step;
 	}
 }
 
@@ -276,9 +277,9 @@
 		} while (*sum != old_sample);
 		if (!--size)
 			return;
-		((char *)src) += src_step;
-		((char *)dst) += dst_step;
-		((char *)sum) += sum_step;
+		src = ((char *)src) + src_step;
+		dst = ((char *)dst) + dst_step;
+		sum = ((char *)sum) + sum_step;
 	}
 }
 

---------------------------------------
Received: (at 300792-close) by bugs.debian.org; 6 Jun 2005 02:40:03 +0000
>From katie@ftp-master.debian.org Sun Jun 05 19:40:03 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 1Df7X1-0007Jx-00; Sun, 05 Jun 2005 19:40:03 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1Df7PL-0007x0-00; Sun, 05 Jun 2005 22:32:07 -0400
From: Jordi Mallach <jordi@debian.org>
To: 300792-close@bugs.debian.org
X-Katie: $Revision: 1.56 $
Subject: Bug#300792: fixed in alsa-lib 1.0.9-1
Message-Id: <E1Df7PL-0007x0-00@newraff.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sun, 05 Jun 2005 22:32:07 -0400
Delivered-To: 300792-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: alsa-lib
Source-Version: 1.0.9-1

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

alsa-lib_1.0.9-1.diff.gz
  to pool/main/a/alsa-lib/alsa-lib_1.0.9-1.diff.gz
alsa-lib_1.0.9-1.dsc
  to pool/main/a/alsa-lib/alsa-lib_1.0.9-1.dsc
alsa-lib_1.0.9.orig.tar.gz
  to pool/main/a/alsa-lib/alsa-lib_1.0.9.orig.tar.gz
libasound2-dev_1.0.9-1_i386.deb
  to pool/main/a/alsa-lib/libasound2-dev_1.0.9-1_i386.deb
libasound2-doc_1.0.9-1_all.deb
  to pool/main/a/alsa-lib/libasound2-doc_1.0.9-1_all.deb
libasound2_1.0.9-1_i386.deb
  to pool/main/a/alsa-lib/libasound2_1.0.9-1_i386.deb



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 300792@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jordi Mallach <jordi@debian.org> (supplier of updated alsa-lib 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: Sun,  5 Jun 2005 23:00:51 +0200
Source: alsa-lib
Binary: libasound2-dev libasound2-doc libasound2
Architecture: source all i386
Version: 1.0.9-1
Distribution: unstable
Urgency: low
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Changed-By: Jordi Mallach <jordi@debian.org>
Description: 
 libasound2 - ALSA library
 libasound2-dev - ALSA library development files
 libasound2-doc - ALSA library developer documentation
Closes: 291533 293928 299423 300792 301164 310189
Changes: 
 alsa-lib (1.0.9-1) unstable; urgency=low
 .
   * New upstream release
     - Fix bug that disabled stack protection (CAN-2005-0087)
       (RedHat bug #144518)  (Closes: #301164)
     - Fixes related to mplayer (Closes: #310189)
   * Jordi Mallach
     - debian/rules: bump shlibs to 1.0.9.
 .
 alsa-lib (1.0.8+1.0.9rc3-1) experimental; urgency=low
 .
   * New upstream release
     - Closes: #291533 "ttable in .asoundrc do not accept fractions"
     - Closes: #293928 "wrong routings of channels for 5.1 ICH5"
     - Closes: #299423 "Please include asound_fm.h"
     - Closes: #300792 "FTBFS (ppc64/gcc-4.0): static declaration ..."
     - libasound2-plugins is no longer built from this source package
   * Thomas Hood
     - Remove the control entry, commands in rules, build dependencies
       related to libasound2-plugins
     - Add some mutual Suggestions among the ALSA library packages
     - Drop dpatch applied upstream: 10_conf-space-fix
     - debian/NOTES:
       + Add note about what to do if we ever have libasound3
       + Remove note about building libasound2-plugins
     - Tweak descriptions
Files: 
 83ac6775a0450bb3d2b596fd99089c60 822 libs optional alsa-lib_1.0.9-1.dsc
 beef8e8de83869615c19c42d5d4636b8 958469 libs optional alsa-lib_1.0.9.orig.tar.gz
 703db1455da75d029b3ac1008ab46f37 12657 libs optional alsa-lib_1.0.9-1.diff.gz
 2e67cefbccdfe3f049b6dfc1b22ca6a8 323472 libs optional libasound2_1.0.9-1_i386.deb
 149f80f17607054a063668cdc390dd4c 463622 libdevel optional libasound2-dev_1.0.9-1_i386.deb
 4cf6714f35ab6010e0f1124f61f3e15f 484320 libdevel optional libasound2-doc_1.0.9-1_all.deb

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

iD8DBQFCo4V5JYSUupF6Il4RAu2yAKDyqJcRPUxVv8P6c15NHcvMxB871ACfaIca
2u2KTMci9KwnQYwbthMkjcc=
=aHTD
-----END PGP SIGNATURE-----