Bug 8451

Summary: ARM: ‘struct module_entry’ has no member named ‘dnext’
Product: Busybox Reporter: Joakim Bech <joakim.bech+bugzilla>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description Joakim Bech 2015-11-06 14:29:47 UTC
Hi,

The last commit:
http://git.busybox.net/busybox/commit/?id=48dc80bbba994eee24ed94ae4532a1cce76d7cb7

fails to compile using (32bit) ARM cross compiler (arm-linux-gnueabihf-gcc). It looks like the dnext and dprev are defined in the struct. Unfortunately I'm not familiar with the "IF_DEPMOD / applet" thing in the source code, so I have no good suggestion how to fix it. Is it a true error or is it something additional we must provide to the compiler with this new commit?

....
make[1]: Entering directory `/home/jbech/devel/optee_projects/qemu/busybox'
...
/home/jbech/devel/optee_projects/qemu/busybox/modutils/modutils.c: In function ‘helper_get_module’:
/home/jbech/devel/optee_projects/qemu/busybox/modutils/modutils.c:42:3: error: ‘struct module_entry’ has no member named ‘dnext’
  e->dnext = e->dprev = e;
   ^
/home/jbech/devel/optee_projects/qemu/busybox/modutils/modutils.c:42:14: error: ‘struct module_entry’ has no member named ‘dprev’
  e->dnext = e->dprev = e;
              ^
make[3]: *** [modutils/modutils.o] Error 1
make[2]: *** [modutils] Error 2
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/jbech/devel/optee_projects/qemu/busybox'

// Regards Joakim
Comment 1 Denys Vlasenko 2015-11-06 14:51:12 UTC
Fixed in git.
Comment 2 Joakim Bech 2015-11-06 15:06:56 UTC
The fix is working, I've just verified it on my side. Thanks for the very quick reply and fix!