[Buildroot] [Bug 14311] New: Cannot compile dahdi (part of Asterisk) for x86 (P1mmx).
bugzilla at busybox.net
bugzilla at busybox.net
Mon Nov 1 18:30:53 UTC 2021
https://bugs.busybox.net/show_bug.cgi?id=14311
Bug ID: 14311
Summary: Cannot compile dahdi (part of Asterisk) for x86
(P1mmx).
Product: buildroot
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: blocker
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: ingineru_de_sistem at yahoo.com
CC: buildroot at uclibc.org
Target Milestone: ---
Tried to compile Asterisk for x86 (got an old PC which is the only one which I
can use for some older ZAPtel cards that need PCI without express).
1st bug got this -
In file included from
/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wctdm24xxp/base.c:73:
/home/qa/buildroot/output/build/dahdi-linux-3.0.0/include/dahdi/kernel.h:71:10:
fatal error: linux/pci-aspm.h: No such file or directory
71 | #include <linux/pci-aspm.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
Found a possible solution at
https://community.asterisk.org/t/dahdi-fails-fatal-error-linux-pci-aspm-h-no-such-file-or-directory/83561
, applied
git clone -b next git://git.asterisk.org/dahdi/linux dahdi-linux
on top of the one that buildroot downloaded, got past that point but now I get
this one:
ERROR: modpost: "__divmoddi4"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/xpp/xpp.ko]
undefined!
ERROR: modpost: "__divdi3"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/xpp/xpp.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_start"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcaxx.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_size"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcaxx.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_128_bin_start"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_064_bin_start"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_128_bin_size"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_064_bin_size"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte43x.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_start"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte13xp.ko]
undefined!
ERROR: modpost: "_binary_dahdi_fw_oct6114_032_bin_size"
[/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/wcte13xp.ko]
undefined!
make[3]: *** [scripts/Makefile.modpost:150:
/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/Module.symvers]
Error 1
make[3]: *** Deleting file
'/home/qa/buildroot/output/build/dahdi-linux-3.0.0/drivers/dahdi/Module.symvers'
make[2]: *** [Makefile:1773: modules] Error 2
make[1]: *** [package/pkg-generic.mk:295:
/home/qa/buildroot/output/build/dahdi-linux-3.0.0/.stamp_built] Error 2
make: *** [Makefile:84: _all] Error 2
Not sure if the patch for the first error provoked the next or what.
Please advise.
Question 2) Can one selectively only compile the Asterisk HW drivers for the
current plaform and a selection of boards ? (i.e. don't try pci express or x64
stuff when compiling for x86_32 nor the Octasic boards since all I have and
need are some old Zaptel PCI boards, including a T1000P compatible - aka
ancient Intel WinModem)
P.S. there was a trivial error before that point:
--2021-10-29 15:34:29-- http://sources.buildroot.net/m4-1.4.19.tar.xz
Resolving sources.buildroot.net (sources.buildroot.net)... 172.67.72.56,
104.26.1.37, 104.26.0.37, ...
Connecting to sources.buildroot.net (sources.buildroot.net)|172.67.72.56|:80...
connected.
HTTP request sent, awaiting response... 404 Not Found
2021-10-29 15:34:29 ERROR 404: Not Found.
which I solved by using 1.4.18 instead which did exist on your server. No
biggie there, just reporting it in case anyone needs the report. Feel free to
ignore this one. The dahdi part is important.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the buildroot
mailing list