[asterisk-bugs] [Asterisk 0013754]: dahdi fails compile on powerpc
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Oct 21 13:04:28 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13754
======================================================================
Reported By: shrift
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13754
Category: Channels/chan_dahdi
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-10-21 12:37 CDT
Last Modified: 2008-10-21 13:04 CDT
======================================================================
Summary: dahdi fails compile on powerpc
Description:
I hope this is the right place to report this. : (
When trying to compile dahdi linux-complete from svn I get these errors:
root at asterisk:/usr/local/dahdi# make all
make -C linux all
make[1]: Entering directory `/usr/local/dahdi/linux'
make -C /lib/modules/2.6.24-etchnhalf.1-powerpc-smp/build ARCH=ppc
SUBDIRS=/usr/local/dahdi/linux/drivers/dahdi
DAHDI_INCLUDE=/usr/local/dahdi/linux/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[2]: Entering directory
`/usr/src/linux-headers-2.6.24-etchnhalf.1-powerpc-smp'
CC [M] /usr/local/dahdi/linux/drivers/dahdi/wctdm.o
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c: In function
‘wctdm_receiveprep’:
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c:398: error: request for
member ‘readchunk’ in something not a structure or union
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c:400: error: request for
member ‘readchunk’ in something not a structure or union
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c:402: error: request for
member ‘readchunk’ in something not a structure or union
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c:404: error: request for
member ‘readchunk’ in something not a structure or union
make[3]: *** [/usr/local/dahdi/linux/drivers/dahdi/wctdm.o] Error 1
make[2]: *** [_module_/usr/local/dahdi/linux/drivers/dahdi] Error 2
make[2]: Leaving directory
`/usr/src/linux-headers-2.6.24-etchnhalf.1-powerpc-smp'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/local/dahdi/linux'
make: *** [all] Error 2
After reviewing the errors I opened
/usr/local/dahdi/linux/drivers/dahdi/wctdm.c and commented out the
following lines:
396 /*#ifdef __BIG_ENDIAN
397 if (wc->cardflag & (1 << 3))
398 wc->chans[3].readchunk[x] = (readchunk[x]) &
0xff;
399 if (wc->cardflag & (1 << 2))
400 wc->chans[2].readchunk[x] = (readchunk[x] >>
8) & 0xff;
401 if (wc->cardflag & (1 << 1))
402 wc->chans[1].readchunk[x] = (readchunk[x] >>
16) & 0xff;
403 if (wc->cardflag & (1 << 0))
404 wc->chans[0].readchunk[x] = (readchunk[x] >>
24) & 0xff;
405 #else
406 if (wc->cardflag & (1 << 3))
407 wc->chans[3]->readchunk[x] = (readchunk[x] >>
24) & 0xff;
408 if (wc->cardflag & (1 << 2))
409 wc->chans[2]->readchunk[x] = (readchunk[x] >>
16) & 0xff;
410 if (wc->cardflag & (1 << 1))
411 wc->chans[1]->readchunk[x] = (readchunk[x] >>
8) & 0xff;
412 if (wc->cardflag & (1 << 0))
413 wc->chans[0]->readchunk[x] = (readchunk[x]) &
0xff;
414 #endif*/
After that the compile finished cleanly.
======================================================================
----------------------------------------------------------------------
(0094062) shrift (reporter) - 2008-10-21 13:04
http://bugs.digium.com/view.php?id=13754#c94062
----------------------------------------------------------------------
That did indeed make it behave. : ) Thanks. Will having commented out what
I did cause any issues? Should I recompile and reinstall with this change?
Issue History
Date Modified Username Field Change
======================================================================
2008-10-21 13:04 shrift Note Added: 0094062
======================================================================
More information about the asterisk-bugs
mailing list