Summary:ASTERISK-08488: codec_zap no longer compiles as it can't find zaptel/zaptel.h in nonstandard place
Reporter:Michael Gernoth (mgernoth)Labels:
Date Opened:2007-01-04 15:23:00.000-0600Date Closed:2007-01-05 17:22:36.000-0600
Versions:Frequency of
Description:After updating codec_zap.c to revision 49102 it can no longer be compiled when zaptel is installed in a nonstandard location as the ZAPTEL_INCLUDE variable is no ignored.
If I change <depend>zaptel_transcode</depend> to <depend>zaptel</depend> in codec_zap.c again, it can be compiled succesfully again.


stargate [/local/asterisk-1.4/src/asterisk]> grep ZAPTEL_INCLUDE makeopts
stargate [/local/asterisk-1.4/src/asterisk]> ls -l /local/asterisk-1.4/usr/include/zaptel/zaptel.h
-rw-r--r-- 1 michael michael 54085 Jan  3 19:05 /local/asterisk-1.4/usr/include/zaptel/zaptel.h
stargate [/local/asterisk-1.4/src/asterisk]> make NOISY_BUILD=1
menuselect/menuselect --check-deps   menuselect.makeopts
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
gcc -o codec_zap.o -c codec_zap.c -I/local/asterisk-1.4/src/asterisk-1.4/include -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include /local/asterisk-1.4/src/asterisk-1.4/include/asterisk/autoconfig.h -march=i686  -O6 -fPIC -DAST_MODULE=\"codec_zap\"
codec_zap.c:46:27: error: zaptel/zaptel.h: No such file or directory
codec_zap.c: In function 'zap_framein':
codec_zap.c:98: error: dereferencing pointer to incomplete type
Comments:By: Jason Parker (jparker) 2007-01-05 15:40:57.000-0600

Do you have the latest revision of zaptel installed?

By: Michael Gernoth (mgernoth) 2007-01-05 16:33:33.000-0600

Yes, I have (revision 1786). The problem is that the asterisk configure does not produce the correct dependencies for "zaptel_transcode" but only for "zaptel", so the change introduced in asterisk SVN revision 49102 breaks compile when the zaptel headers are not installed in /usr/include/zaptel but another place which is explicitly specified to configure with --with-zaptel=/path/to/include.

By: Jason Parker (jparker) 2007-01-05 17:18:27.000-0600

Fixed in svn branch 1.4 in revision 49705 and svn trunk revision 49706.