Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 282339 - net-misc/asterisk-1.6.1.1-r1 breaks on PPC due to missing var
Summary: net-misc/asterisk-1.6.1.1-r1 breaks on PPC due to missing var
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2009-08-22 17:09 UTC by Daniel Díaz
Modified: 2009-09-05 04:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Add missing variable for PPC in app_festival (asterisk-1.6.1.1-ppc-missing-var.patch,343 bytes, patch)
2009-08-22 17:13 UTC, Daniel Díaz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Díaz 2009-08-22 17:09:11 UTC
A variable is not defined within a __PPC__ block in app_festival.c:
   [CC] app_festival.c -> app_festival.o
app_festival.c: In function 'send_waveform_to_fd':
app_festival.c:136: error: 'x' undeclared (first use in this function)
app_festival.c:136: error: (Each undeclared identifier is reported only once
app_festival.c:136: error: for each function it appears in.)
make[1]: *** [app_festival.o] Error 1
make: *** [apps] Error 2

The code block is:
#ifdef __PPC__
        for (x = 0; x < length; x += 2) {
                c = *(waveform + x + 1);
                *(waveform + x + 1) = *(waveform + x);
                *(waveform + x) = c;
        }
#endif


Reproducible: Always

Steps to Reproduce:
emerge =net-misc/asterisk-1.6.1.1-r1
Comment 1 Daniel Díaz 2009-08-22 17:13:05 UTC
Created attachment 201946 [details, diff]
Add missing variable for PPC in app_festival

This patch adds the missing 'x' variable in the PPC-specific section of send_waveform_to_fd() from app_festival.c.
Comment 2 Tony Vroon (RETIRED) gentoo-dev 2009-09-04 11:30:27 UTC
Was this reported upstream (where it belongs) please?
If not, can you rebase for 1.6.1.6?
Comment 3 Daniel Díaz 2009-09-05 04:50:42 UTC
(In reply to comment #2)
> Was this reported upstream (where it belongs) please?
> If not, can you rebase for 1.6.1.6?

It's fixed in SVN.