Bug 8451 - ARM: ‘struct module_entry’ has no member named ‘dnext’
Summary: ARM: ‘struct module_entry’ has no member named ‘dnext’
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-06 14:29 UTC by Joakim Bech
Modified: 2015-11-06 15:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!