asterisk / dahdi-linux

This is the official dahdi-linux repository. All issues and PR should be raised here.
GNU General Public License v2.0
49 stars 71 forks source link

modpost: "__divmoddi4" & modpost: "__divdi3" - Unable to finish compiling of dahdi-linux-complete-3.4.0+3.4.0. #53

Closed mjknoble closed 3 months ago

mjknoble commented 3 months ago

Hello,

I have been working on upgrading a 32 bit linux server (Slackware 15.0 / Kernel: 5.15.161-smp #1 SMP / gcc Ver: 11.2.0). I am able to compile other software including Asterisk with no issues. There are no errors or warnings encountered during the process until this point. Here is the issue I am running into:

MODPOST /root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers ERROR: modpost: "__divmoddi4" [/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/xpp/xpp.ko] undefined! ERROR: modpost: "__divdi3" [/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/xpp/xpp.ko] undefined! make[3]: [scripts/Makefile.modpost:133: /root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers] Error 1 make[3]: Deleting file '/root/POST_INSTALL/asterisk/dahdi-linux-complete-3.4.0+3.4.0/linux/drivers/dahdi/Module.symvers' make[2]: *** [Makefile:1826: modules] Error 2

I have tried unsuccessfully to pass parameters to the compiler and linker to see if this could be compiled standalone with gcc libs, as someone had suggested online. Any suggestions or assistance would be appreciated. Thank you, -Mike K.

mjknoble commented 3 months ago

I have found that applying the code provided by [ffontaine] has resolved my issue. That code needs to be merged in order to fix 32bit issues.