Compile Error With Libpri 1.4.15
I am getting this:
make gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2
-MD -MT pritest.o -MF .pritest.o.d -MP -c -o pritest.o pritest.c pritest.c:50:28: fatal error: dahdi/tonezone.h: No such file or directory
#include
I am using dahdi-linux-complete-2.11.0+2.11.0
I did “find . | grep timezone.h” from the dahdi root and its not there.
LIBPRI is 1.4.15
DAHDI version is mentioned above
What might I be missing?
Thanks,
Jerry
5 thoughts on - Compile Error With Libpri 1.4.15
In article, Jerry Geis wrote:
It’s tonezone.h, not timezone.h
And it is being looked for in /usr/include/dahdi/tonezone.h, not in the dahdi source directory.
You need to have installed DAHDI before compiling libpri or asterisk.
Cheers Tony
Thanks Tony,
in fact I have compiled DAHDI complete 2.11.0+2.11.0 – It did not show any errors. I did make; make install on the DAHDI source
crazy typo… π in fact I do have tonezone.h in the dahdi source tree. but not in /usr/include find /usr/include/dahdi/
/usr/include/dahdi/
/usr/include/dahdi/kernel.h
/usr/include/dahdi/user.h
/usr/include/dahdi/fasthdlc.h
/usr/include/dahdi/wctdm_user.h
/usr/include/dahdi/dahdi_config.h
What up?
jerry
In article, Jerry Geis wrote:
Maybe it didn’t install properly? Try doing “make install” in DAHDI again
(as root, of course) and watch it closely. I haven’t tried 2.11.0. On my boxes with 2.10.0.1, /usr/include/dahdi/tonezone.h does exist.
Cheers Tony
I am getting an error on DAHDI
The make seems OK, its the make install that shows issues.
make install | grep tools
WARNING: could not find
/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_64.o.cmd for
/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o
(cd tools && [ -f config.status ] || ./configure –with-dahdi=../linux)
make -C tools all make[1]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[2]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[4]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[4]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[4]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[4]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/doc’
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/doc’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/hotplug’
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/hotplug’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[4]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[4]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[2]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[1]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
WARNING: could not find
/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/linux/drivers/dahdi/vpmadt032_loader/.vpmadt032_x86_64.o.cmd for
/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/linux/drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o build_tools/uninstall-modules dahdi 3.10.0-327.3.1.el7.x86_64
### dahdi-tools. make -C tools install make[1]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make[2]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[4]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[4]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp/perl_modules’
make[3]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[4]: Entering directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
/usr/bin/install: cannot stat β./dahdi_registration.8β: No such file or directory
/usr/bin/install: cannot stat β./xpp_sync.8β: No such file or directory
/usr/bin/install: cannot stat β./lsdahdi.8β: No such file or directory
/usr/bin/install: cannot stat β./xpp_blink.8β: No such file or directory
/usr/bin/install: cannot stat β./dahdi_genconf.8β: No such file or directory
/usr/bin/install: cannot stat β./dahdi_hardware.8β: No such file or directory
/usr/bin/install: cannot stat β./twinstar.8β: No such file or directory make[4]: *** [install-man8] Error 1
make[4]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[3]: *** [install-am] Error 2
make[3]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools/xpp’
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory
`/home/silentm/LayeredSolutions/digium/dahdi-linux-complete-2.11.0+2.11.0/tools’
make: *** [install] Error 2
This always worked before….
I grabbed dahdi-linux-complete-2.10.0+2.10.0 and did the make and make install and I get NO errors and I get the tonezone.h file also…
Is this something I am doing wrong or some issue with 2.11.0 ?
Thanks,
jerry
Those should have been generated by pod2man. Look for ‘%.8: %’ in xpp/Makefile.am .
So it seems that a check for pod2man needs to be added to the configure script. For now, generate a dummy pod2man binary somewhere in your path. Or just install perl-doc or whatever it is called.
For instance:
ln -s /bun/true /usr/local/bin/pod2man # Results in empty man pages
I stress that this is a TEMPORARY WORKAROUND until the configure script is adapted.
—
Tzafrir Cohen icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com
—