[asterisk-bugs] [DAHDI-linux 0014161]: DAHDI-linux failed to compile on Sparc64 - ubuntu 8.04 Server
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Jan 8 03:09:15 CST 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14161
======================================================================
Reported By: etn
Assigned To:
======================================================================
Project: DAHDI-linux
Issue ID: 14161
Category: General
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2009-01-02 09:29 CST
Last Modified: 2009-01-08 03:09 CST
======================================================================
Summary: DAHDI-linux failed to compile on Sparc64 - ubuntu
8.04 Server
Description:
root at sl06:/# uname -a
Linux sl06 2.6.22-16-sparc64-smp http://bugs.digium.com/view.php?id=1 SMP Mon
Nov 24 23:21:07 GMT 2008
sparc64 GNU/Linux
root at sl06:/usr/src/dahdi-linux-2.1.0.3# make
make -C /lib/modules/2.6.22-16-sparc64-smp/build ARCH=sparc64
SUBDIRS=/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi
DAHDI_INCLUDE=/usr/src/dahdi-linux-2.1.0.3/include DAHDI_MODULES_EXTRA=" "
HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory
`/usr/src/linux-headers-2.6.22-16-sparc64-smp'
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi-base.o
LD [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dummy.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dynamic.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dynamic_loc.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dynamic_eth.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_transcode.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctdm.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct1xxp.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wcte11xp.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wcfxo.o
gcc -o /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/makefw
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/makefw.c
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/makefw
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/tormenta2.rbt tor2fw >
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/tor2fw.h
Loaded 69900 bytes from file
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/tor2.o
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/makefw
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/pciradio.rbt radfw >
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/radfw.h
Loaded 42096 bytes from file
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/pciradio.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_echocan_jpah.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_echocan_sec.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_echocan_sec2.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_echocan_kb1.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_echocan_mg2.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wcb4xxp/base.o
LD [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wcb4xxp/wcb4xxp.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/base.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/vpm450m.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_adpcm_chan.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_channel.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_open.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_chip_stats.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_conf_bridge.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_debug.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_events.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_interrupts.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_memory.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_miscellaneous.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_mixer.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_phasing_tsst.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_playout_buf.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_remote_debug.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tlv.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o
CC [M]
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/../oct612x/apilib/llman/octapi_llman.o
LD [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wct4xxp/wct4xxp.o
CC [M] /usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.o
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c: In function
‘wctc4xxp_cleanup_descriptor_ring’:
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:1265: warning:
implicit declaration of function ‘dma_unmap_single’
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c: In function
‘wctc4xxp_init_one’:
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:3001: error:
‘DMA_32BIT_MASK’ undeclared (first use in this function)
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:3001: error:
(Each undeclared identifier is reported only once
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:3001: error:
for each function it appears in.)
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:3014: error:
‘DMA_TO_DEVICE’ undeclared (first use in this function)
/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.c:3024: error:
‘DMA_FROM_DEVICE’ undeclared (first use in this function)
make[3]: *** [/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp/base.o]
Error 1
make[2]: *** [/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi/wctc4xxp] Error
2
make[1]: *** [_module_/usr/src/dahdi-linux-2.1.0.3/drivers/dahdi] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.22-16-sparc64-smp'
make: *** [modules] Error 2
I just tried to compile dahdi-dummy but in all case i got this issue.
======================================================================
----------------------------------------------------------------------
(0097190) etn (reporter) - 2009-01-08 03:09
http://bugs.digium.com/view.php?id=14161#c97190
----------------------------------------------------------------------
I tried this this :
In /dahdi-linux-2.1.0.3/drivers/dahdi/Kbuild file:
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI) += dahdi.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DUMMY) += dahdi_dummy.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC) += dahdi_dynamic.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_LOC) += dahdi_dynamic_loc.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_DYNAMIC_ETH) += dahdi_dynamic_eth.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_TRANSCODE) += dahdi_transcode.o
#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP) += wct4xxp/
#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/
#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp/
#obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM) += wctdm.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCB4XXP) += wcb4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT1XXP) += wct1xxp.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE11XP) += wcte11xp.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCFXO) += wcfxo.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_TOR2) += tor2.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_PCIRADIO) += pciradio.o
(..)
It compiles modules, good point.
I can insert dahdy_dummy before Asterisk compilation, good point too but
when i tried to launch asterisk compiled with dahdi support with
dadhi_dummy module loaded i can't start asterisk:
root at sl06:/# asterisk -vvvvvv
Asterisk 1.4.22, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster at digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for
details.
This is free software, with components licensed under the GNU General
Public
License version 2 and other licenses; you are welcome to redistribute it
under
certain conditions. Type 'core show license' for details.
=========================================================================
== Parsing '/etc/asterisk/asterisk.conf': Found
== Parsing '/etc/asterisk/extconfig.conf': Found
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
[Jan 8 10:04:45] ERROR[4984]: asterisk.c:3022 main: You have DAHDI built
and drivers loaded, but the DAHDI timer test failed to set
DAHDI_TIMERCONFIG to 160.
Do you have an another idea...?
Thanks a lot
Etienne
Issue History
Date Modified Username Field Change
======================================================================
2009-01-08 03:09 etn Note Added: 0097190
======================================================================
More information about the asterisk-bugs
mailing list