Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182076 - gentoo-sources-2.6.20-r5 - Undefined symbol for nvram module
Summary: gentoo-sources-2.6.20-r5 - Undefined symbol for nvram module
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-15 01:26 UTC by gent_bz
Modified: 2007-08-29 22:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gent_bz 2007-06-15 01:26:29 UTC
Bulding a kernel for a blue & white G3, with Device Drivers -> Character devices -> /dev/nvram support (CONFIG_NVRAM=M), I see the following :

WARNING: "pmac_newworld" [arch/powerpc/platforms/powermac/nvram.ko] undefined!
WARNING: "__alloc_bootmem" [arch/powerpc/platforms/powermac/nvram.ko] undefined!

which breaks MODPOST.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2007-06-16 00:57:04 UTC
This one doesn't look possible unless you manually did something like one of the following:

 - compiled modules without compiling kernel
 - compiled kernel, changed configuration, compiled modules
 - compiled kernel, ran "make clean", compiled modules
 - removed kernel symbol table file after compiling

__alloc_bootmem is defined in mm/bootmem.o which is unconditionally built according to mm/Makefile. You can check if it was built or not with: ls -l mm/bootmem.o

pmac_newworld is defined in arch/powerpc/platforms/powermac/setup.c which is unconditionally built according to arch/powerpc/platforms/powermac/Makefile. You can check that it was built with: ls -l arch/powerpc/platforms/powermac/setup.o

Perhaps you can also clarify how this breaks MODPOST as the messages you posted look like warnings, not errors.
Comment 2 gent_bz 2007-06-16 15:33:06 UTC
(In reply to comment #1)
> This one doesn't look possible unless you manually did something like one of
> the following:

Thinking that it could have been one of those, 'make mrproper', copied in a .config, set CONFIG_NVRAM=m, 'make oldconfig' and then 'make' gives the same result.

(Let me know if I've missed something in that process...)


> You can check if it was built or not with: ls -l ...

Both files are built.


> Perhaps you can also clarify how this breaks MODPOST as the messages you 
> posted look like warnings, not errors.

They do indeed look that way - but they still break the build process.

Here's (the end of) output with 'make V=1' :

...
make[1]: `arch/powerpc/boot/zImage' is up to date.
  Building modules, stage 2.
make -f /usr/src/linux/asd/scripts/Makefile.modpost
  scripts/mod/modpost   -o /usr/src/linux/asd/Module.symvers    vmlinux arch/powerpc/platforms/powermac/nvram.o block/as-iosched.o block/cfq-iosched.o drivers/base/firmware_class.o drivers/block/loop.o drivers/block/rd.o drivers/block/ub.o drivers/cdrom/cdrom.o drivers/char/drm/drm.o drivers/char/drm/r128.o drivers/char/generic_nvram.o drivers/char/genrtc.o drivers/connector/cn.o drivers/cpufreq/cpufreq_powersave.o drivers/cpufreq/cpufreq_stats.o drivers/cpufreq/cpufreq_userspace.o drivers/cpufreq/freq_table.o drivers/i2c/busses/i2c-powermac.o drivers/i2c/i2c-dev.o drivers/ide/ide-cd.o drivers/ide/ide-core.o drivers/ide/ide-disk.o drivers/ide/ide-generic.o drivers/ide/pci/cmd64x.o drivers/ide/pci/generic.o drivers/ide/pci/sl82c105.o drivers/ieee1394/eth1394.o drivers/ieee1394/ieee1394.o drivers/ieee1394/pcilynx.o drivers/ieee1394/raw1394.o drivers/ieee1394/sbp2.o drivers/input/evdev.o drivers/net/bsd_comp.o drivers/net/dummy.o drivers/net/ppp_async.o drivers/net/ppp_deflate.o drivers/net/ppp_generic.o drivers/net/ppp_synctty.o drivers/net/slhc.o drivers/net/tulip/tulip.o drivers/net/tun.o drivers/scsi/ide-scsi.o drivers/scsi/scsi_mod.o drivers/scsi/scsi_transport_spi.o drivers/scsi/scsi_wait_scan.o drivers/scsi/sd_mod.o drivers/scsi/sg.o drivers/scsi/sr_mod.o drivers/usb/core/usbcore.o drivers/usb/host/ohci-hcd.o drivers/usb/input/usbhid.o drivers/usb/storage/libusual.o drivers/usb/storage/usb-storage.o fs/autofs4/autofs4.o fs/binfmt_misc.o fs/cifs/cifs.o fs/ext2/ext2.o fs/ext3/ext3.o fs/fat/fat.o fs/fuse/fuse.o fs/isofs/isofs.o fs/jbd/jbd.o fs/mbcache.o fs/msdos/msdos.o fs/nls/nls_base.o fs/nls/nls_cp437.o fs/nls/nls_iso8859-1.o fs/nls/nls_utf8.o fs/ntfs/ntfs.o fs/reiserfs/reiserfs.o fs/smbfs/smbfs.o fs/udf/udf.o fs/vfat/vfat.o fs/xfs/xfs.o lib/crc-ccitt.o lib/libcrc32c.o lib/ts_bm.o lib/ts_fsm.o lib/ts_kmp.o lib/zlib_deflate/zlib_deflate.o lib/zlib_inflate/zlib_inflate.o net/ipv4/netfilter/arp_tables.o net/ipv4/netfilter/arpt_mangle.o net/ipv4/netfilter/arptable_filter.o net/ipv4/netfilter/ip_tables.o net/ipv4/netfilter/ipt_ECN.o net/ipv4/netfilter/ipt_LOG.o net/ipv4/netfilter/ipt_MASQUERADE.o net/ipv4/netfilter/ipt_NETMAP.o net/ipv4/netfilter/ipt_REDIRECT.o net/ipv4/netfilter/ipt_REJECT.o net/ipv4/netfilter/ipt_SAME.o net/ipv4/netfilter/ipt_TCPMSS.o net/ipv4/netfilter/ipt_TOS.o net/ipv4/netfilter/ipt_TTL.o net/ipv4/netfilter/ipt_ULOG.o net/ipv4/netfilter/ipt_addrtype.o net/ipv4/netfilter/ipt_ah.o net/ipv4/netfilter/ipt_ecn.o net/ipv4/netfilter/ipt_iprange.o net/ipv4/netfilter/ipt_owner.o net/ipv4/netfilter/ipt_recent.o net/ipv4/netfilter/ipt_tos.o net/ipv4/netfilter/ipt_ttl.o net/ipv4/netfilter/iptable_filter.o net/ipv4/netfilter/iptable_mangle.o net/ipv4/netfilter/iptable_nat.o net/ipv4/netfilter/iptable_raw.o net/ipv4/netfilter/nf_conntrack_ipv4.o net/ipv4/netfilter/nf_nat.o net/ipv4/netfilter/nf_nat_ftp.o net/ipv4/netfilter/nf_nat_irc.o net/key/af_key.o net/netfilter/nf_conntrack.o net/netfilter/nf_conntrack_ftp.o net/netfilter/nf_conntrack_irc.o net/netfilter/x_tables.o net/netfilter/xt_CLASSIFY.o net/netfilter/xt_MARK.o net/netfilter/xt_NFLOG.o net/netfilter/xt_NFQUEUE.o net/netfilter/xt_NOTRACK.o net/netfilter/xt_comment.o net/netfilter/xt_conntrack.o net/netfilter/xt_dccp.o net/netfilter/xt_dscp.o net/netfilter/xt_esp.o net/netfilter/xt_helper.o net/netfilter/xt_length.o net/netfilter/xt_limit.o net/netfilter/xt_mac.o net/netfilter/xt_mark.o net/netfilter/xt_multiport.o net/netfilter/xt_pkttype.o net/netfilter/xt_policy.o net/netfilter/xt_realm.o net/netfilter/xt_sctp.o net/netfilter/xt_string.o net/netfilter/xt_tcpmss.o net/netfilter/xt_tcpudp.o net/packet/af_packet.o net/sched/sch_htb.o net/sched/sch_prio.o net/sched/sch_sfq.o net/unix/unix.o net/xfrm/xfrm_user.o sound/soundcore.o
WARNING: "pmac_newworld" [arch/powerpc/platforms/powermac/nvram.ko] undefined!
WARNING: "__alloc_bootmem" [arch/powerpc/platforms/powermac/nvram.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Comment 3 Maarten Bressers (RETIRED) gentoo-dev 2007-06-22 15:40:12 UTC
It looks like compiling nvram as a module isn't supported on the powerpc arch. For now, just compile it into the kernel (CONFIG_NVRAM=y) which does work.
Comment 4 Mike Pagano gentoo-dev 2007-08-02 12:19:02 UTC
Jonathan,

Have you made any progress with Maarten's suggestion from comment #3?

Comment 5 Mike Pagano gentoo-dev 2007-08-29 22:05:49 UTC
Jonathan,

If you have time to perform the test from comment #3 and you still have issues you can reopen this bug with the results.