[Home]

Summary:ASTERISK-14312: res_agi.c:2299: error: '__WORDSIZE' undeclared
Reporter:Mike Walker (smw420)Labels:
Date Opened:2009-06-14 18:40:19Date Closed:2009-06-15 10:02:24
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:Resources/res_agi
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:On FreeBSD 7.2 x64, I get the following compilation error...

sdev# gmake
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
gmake[1]: Entering directory `/root/asterisk-1.4.26-rc2/utils'
  [CC] astman.c -> astman.o
  [CC] md5.c -> md5.o
  [LD] astman.o md5.o -> astman
  [CC] smsq.c -> smsq.o
  [CC] strcompat.c -> strcompat.o
  [LD] smsq.o strcompat.o -> smsq
  [CC] stereorize.c -> stereorize.o
  [CC] frame.c -> frame.o
  [LD] stereorize.o frame.o -> stereorize
  [CC] streamplayer.c -> streamplayer.o
  [LD] streamplayer.o -> streamplayer
  [CC] muted.c -> muted.o
  [LD] muted.o -> muted
gmake[1]: Leaving directory `/root/asterisk-1.4.26-rc2/utils'
gmake[1]: Entering directory `/root/asterisk-1.4.26-rc2/agi'
  [CC] eagi-test.c -> eagi-test.o
  [CC] strcompat.c -> strcompat.o
  [LD] eagi-test.o strcompat.o -> eagi-test
  [CC] eagi-sphinx-test.c -> eagi-sphinx-test.o
  [LD] eagi-sphinx-test.o -> eagi-sphinx-test
gmake[1]: Leaving directory `/root/asterisk-1.4.26-rc2/agi'
gmake[1]: Entering directory `/root/asterisk-1.4.26-rc2/res'
  [CC] res_adsi.c -> res_adsi.o
  [LD] res_adsi.o -> res_adsi.so
  [CC] res_agi.c -> res_agi.o
res_agi.c: In function 'load_module':
res_agi.c:2299: error: '__WORDSIZE' undeclared (first use in this function)
res_agi.c:2299: error: (Each undeclared identifier is reported only once
res_agi.c:2299: error: for each function it appears in.)
gmake[1]: *** [res_agi.o] Error 1
gmake[1]: Leaving directory `/root/asterisk-1.4.26-rc2/res'
gmake: *** [res] Error 2

****** ADDITIONAL INFORMATION ******

All builds up to and including 1.4.26-rc1 compile without error.
Comments:By: Mark Michelson (mmichelson) 2009-06-15 10:02:24

This has already been fixed in the 1.4 branch of Asterisk by replacing __WORDSIZE with sizeof(void *).