Skip to contentSkip to conversation

: pcm_file.c compilation fails during lib make install using gcc 2.95.4

ALSA - lib 0001583 [email protected] 1 participant 1 message Nov 21, 2005

lore
Share & tools
lore
#0 lore raw

The following issue has been CLOSED
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1583>
======================================================================
Reported By: DavidB
Assigned To:
======================================================================

Project:                    ALSA - lib
Issue ID:                   1583
Category:                   0_general
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
======================================================================
Date Submitted:             11-20-2005 16:14 CET
Last Modified:              11-21-2005 08:43 CET

======================================================================
Summary: pcm_file.c compilation fails during lib make install
using gcc 2.95.4
Description:
Version 1.0.10 of library obtained on 2005-11-21 ("stable" on that date), compiled with gcc 2.95.4 (still the recommended compiler for 2.4 kernels; see Documentation/Changes in the kernel tree), fails as follows during "make install":

gcc-2.95 -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -g -O2
-c pcm_file.c -Wp,-MD,.deps/pcm_file.TPlo -fPIC -DPIC -o .libs/pcm_file.o
pcm_file.c: In function `snd_pcm_file_forward':
pcm_file.c:191: parse error before `n'
make[2]: *** [pcm_file.lo] Error 1

The failure occurs because the relevant line is not valid C; a declaration is introduced after a non-declaration statement in a block:

	if (err > 0) {
		file->appl_ptr = (file->appl_ptr + err) % file->wbuf_size;
		snd_pcm_uframes_t n = snd_pcm_frames_to_bytes(pcm, err);

======================================================================
Relationships ID Summary
----------------------------------------------------------------------
duplicate of 0001565 Compilation problem of src/pcm/pcm_file.c
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
11-20-05 16:14 DavidB New Issue
11-20-05 16:14 DavidB File Added: pcm_file.c.diff
11-21-05 08:43 Clemens LadischRelationship added duplicate of 0001565
11-21-05 08:43 Clemens LadischStatus new => closed
======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click