[asterisk-bugs] [DAHDI-linux 0014161]: DAHDI-linux failed to compile on Sparc64 - ubuntu 8.04 Server

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Jan 9 08:46:27 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-09 08:46 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.


====================================================================== 

---------------------------------------------------------------------- 
 (0097294) etn (reporter) - 2009-01-09 08:46
 http://bugs.digium.com/view.php?id=14161#c97294 
---------------------------------------------------------------------- 
#elif defined(HAVE_DAHDI)
3016 {
3017                 int fd;
3018                 int x = 160;
3019                 fd = open("/dev/dahdi/timer", O_RDWR);
3020                 if (fd >= 0) {
3021                         if (ioctl(fd, DAHDI_TIMERCONFIG, &x)) {
3022                                 ast_log(LOG_ERROR, "You have DAHDI
built and drivers loaded, but the DAHDI timer test failed to
      set DAHDI_TIMERCONFIG to %d.\n", x);
3023                                 exit(1);
3024                         }
3025                         if ((x = ast_wait_for_input(fd, 300)) < 0) {
3026                                 ast_log(LOG_ERROR, "You have DAHDI
built and drivers loaded, but the DAHDI timer could not be p
     olled during the DAHDI timer test.\n");
3027                                 exit(1);
3028                         }
3029                         if (!x) {
3030                                 const char dahdi_timer_error[] = {
3031                                         "Asterisk has detected a
problem with your DAHDI configuration and will shutdown for yo
     ur protection.  You have options:"
3032                                         "\n\t1. You only have to
compile DAHDI support into Asterisk if you need it.  One optio
     n is to recompile without DAHDI support."
3033                                         "\n\t2. You only have to load
DAHDI drivers if you want to take advantage of DAHDI serv
     ices.  One option is to unload DAHDI modules if you don't need
them."
3034                                         "\n\t3. If you need DAHDI
services, you must correctly configure DAHDI."
3035                                 };
3036                                 ast_log(LOG_ERROR, "%s\n",
dahdi_timer_error);
3037                                 exit(1);
3038                         }
3039                         close(fd);
3040                 }
3041         }
3042 
3043 #endif


Ioctl function seems to be in fault. An idea: Could it be linked with
Sparc 64 bits processor...?  I think that this function doesn't return same
thing than on 32 bits... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-09 08:46 etn            Note Added: 0097294                          
======================================================================




More information about the asterisk-bugs mailing list