Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252378 - net-misc/asterisk-spandsp_codec_g726 fails to build against latest media-libs/spandsp
Summary: net-misc/asterisk-spandsp_codec_g726 fails to build against latest media-libs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-24 13:06 UTC by Bruno Redondi
Modified: 2008-12-25 10:18 UTC (History)
1 user (show)

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


Attachments
patch to fix compilation (spandsp-0.0.2pre26_codec_g726.c.diff,460 bytes, patch)
2008-12-24 13:08 UTC, Bruno Redondi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Redondi 2008-12-24 13:06:26 UTC
after upgrading to spandsp-0.0.6_pre3 asterisk-spandsp_codec_g726 fails to rebuild


Reproducible: Always

Actual Results:  
>>> Compiling source in /var/portagetmp/portage/net-misc/asterisk-spandsp_codec_g726-0.0.2_pre26/work ...
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -fPIC -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,-O1 -lspandsp -lm -shared -o codec_g726-32.so codec_g726-32.c
In file included from /usr/include/asterisk/translate.h:33,
                 from codec_g726-32.c:39:
/usr/include/asterisk/plc.h:129: error: conflicting types for ‘plc_state_t’
/usr/include/spandsp/plc.h:128: error: previous declaration of ‘plc_state_t’ was here
/usr/include/asterisk/plc.h:142: error: conflicting types for ‘plc_rx’
/usr/include/spandsp/plc.h:142: error: previous declaration of ‘plc_rx’ was here
/usr/include/asterisk/plc.h:150: error: conflicting types for ‘plc_fillin’
/usr/include/spandsp/plc.h:150: error: previous declaration of ‘plc_fillin’ was here
/usr/include/asterisk/plc.h:156: error: conflicting types for ‘plc_init’
/usr/include/spandsp/plc.h:156: error: previous declaration of ‘plc_init’ was here
codec_g726-32.c:91: error: field ‘g726_state’ has incomplete type
codec_g726-32.c:104: error: field ‘g726_state’ has incomplete type



defining SPANDSP_EXPOSE_INTERNAL_STRUCTURES before the inclusion ov spandsp.h and defining _PLC_H_ before the inclusion of asterisk.h solve the problem
Comment 1 Bruno Redondi 2008-12-24 13:08:19 UTC
Created attachment 176292 [details, diff]
patch to fix compilation
Comment 2 Wormo (RETIRED) gentoo-dev 2008-12-25 06:49:04 UTC
Thanks for the report and for posting your fix. Assigning to maintainers.
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2008-12-25 10:18:05 UTC
Thank you Bruno for this patch. Fixed in the tree.