Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

L68K: 2.1.120 : compilation problem for Atari 040

瀏覽次數:1 次
跳到第一則未讀訊息

Pierre LALOE

未讀,
1998年10月2日 凌晨3:00:001998/10/2
收件者:
(Forwarded from the linux-m68k mailing list)

I try to cross compile kernel 2.1.120 for Atari 68040 from AIX-4.1.5.
Tools : gcc-2.8.1 + binutils 2.9

The compilation itself goes fine, but I am blocked on the
linking process which complains about references to "key_maps"
and other keyboard-related symbols.
I could not find this symbol in any module (other than static)...

I must have missed something because I seem to be the only
one having trouble ... (though I looked at the patches available
which don't speak about this problem)

Any help appreciated, or any other Atari compilation experience ?

thanx

Pierre
_____________________________________________________________________
Error report :

m68k-linux-ld -m m68kelf -T /var/tmp/local/var/tmp/linux-2.1.120/arch/m68k/vmlinux.lds arch/m68k/kernel/head.o init/main.o init/version.o \
arch/m68k/kernel/kernel.o arch/m68k/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/m68k/atari/atari.o arch/m68k/fpsp040/fpsp.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a drivers/net/net.a drivers/scsi/scsi.a drivers/cdrom/cdrom.a drivers/sound/sound.a drivers/video/video.a \
/var/tmp/local/var/tmp/linux-2.1.120/lib/lib.a arch/m68k/lib/lib.a \
-o vmlinux
arch/m68k/atari/atari.o: In function `keyboard_interrupt':
arch/m68k/atari/atari.o(.text+0x1a6e): undefined reference to `plain_map'
arch/m68k/atari/atari.o: In function `atari_keyb_init':
arch/m68k/atari/atari.o(.text.init+0xaf6): undefined reference to `key_maps'
arch/m68k/atari/atari.o(.text.init+0xb12): undefined reference to `key_maps'
arch/m68k/atari/atari.o(.text.init+0xb28): undefined reference to `key_maps'
arch/m68k/atari/atari.o(.text.init+0xb3e): undefined reference to `key_maps'
arch/m68k/atari/atari.o(.text.init+0xb54): undefined reference to `key_maps'
arch/m68k/atari/atari.o(.text.init+0xb6a): more undefined references to `key_maps' follow
arch/m68k/atari/atari.o: In function `atari_keyb_init':
arch/m68k/atari/atari.o(.text.init+0xba6): undefined reference to `keymap_count'
drivers/char/char.a(vt.o): In function `vt_ioctl':
vt.o(.text+0x6b2): undefined reference to `key_maps'
vt.o(.text+0x724): undefined reference to `key_maps'
vt.o(.text+0x754): undefined reference to `keymap_count'
vt.o(.text+0x7a2): undefined reference to `key_maps'
vt.o(.text+0x7b4): undefined reference to `keymap_count'
vt.o(.text+0x7ec): undefined reference to `key_maps'
vt.o(.text+0x80a): undefined reference to `keymap_count'
vt.o(.text+0x8c8): undefined reference to `func_table'
vt.o(.text+0x914): undefined reference to `func_table'
vt.o(.text+0x922): undefined reference to `funcbufsize'
vt.o(.text+0x928): undefined reference to `funcbufleft'
vt.o(.text+0x92e): undefined reference to `funcbufptr'
vt.o(.text+0x952): undefined reference to `func_table'
vt.o(.text+0x99c): undefined reference to `funcbufleft'
vt.o(.text+0xa96): undefined reference to `func_table'
vt.o(.text+0xabc): undefined reference to `func_table'
vt.o(.text+0xad0): undefined reference to `funcbufleft'
vt.o(.text+0xae0): undefined reference to `funcbufsize'
vt.o(.text+0xb16): undefined reference to `func_table'
vt.o(.text+0xb26): undefined reference to `funcbufptr'
vt.o(.text+0xbec): undefined reference to `func_table'
vt.o(.text+0xbf2): undefined reference to `funcbufptr'
vt.o(.text+0xc22): undefined reference to `funcbufptr'
vt.o(.text+0xce6): undefined reference to `func_table'
vt.o(.text+0xcec): undefined reference to `funcbufptr'
vt.o(.text+0xd14): undefined reference to `funcbufptr'
vt.o(.text+0xd1a): undefined reference to `func_buf'
vt.o(.text+0xd22): undefined reference to `funcbufsize'
vt.o(.text+0xd34): undefined reference to `funcbufptr'
vt.o(.text+0xd3a): undefined reference to `funcbufleft'
vt.o(.text+0xd46): undefined reference to `funcbufsize'
vt.o(.text+0xd4c): undefined reference to `funcbufleft'
vt.o(.text+0xd52): undefined reference to `funcbufsize'
vt.o(.text+0xd58): undefined reference to `func_table'
vt.o(.text+0xd72): undefined reference to `accent_table_size'
vt.o(.text+0xd8a): undefined reference to `accent_table'
vt.o(.text+0xdd6): undefined reference to `accent_table_size'
vt.o(.text+0xdec): undefined reference to `accent_table'
drivers/char/char.a(keyboard.o): In function `handle_scancode':
keyboard.o(.text+0x21e): undefined reference to `key_maps'
drivers/char/char.a(keyboard.o): In function `handle_diacr':
keyboard.o(.text+0x7c8): undefined reference to `accent_table_size'
keyboard.o(.text+0x7d2): undefined reference to `accent_table'
drivers/char/char.a(keyboard.o): In function `do_fn':
keyboard.o(.text+0x852): undefined reference to `func_table'
drivers/char/char.a(keyboard.o): In function `compute_shiftstate':
keyboard.o(.text+0xae2): undefined reference to `plain_map'

________________________________________________________________________________

config:


#
# Automatically generated make config: don't edit
#

#
# Code maturity level options
#
# CONFIG_EXPERIMENTAL is not set

#
# Loadable module support
#
# CONFIG_MODULES is not set

#
# Platform dependent setup
#
# CONFIG_AMIGA is not set
CONFIG_ATARI=y
# CONFIG_HADES is not set
# CONFIG_MAC is not set
# CONFIG_APOLLO is not set
# CONFIG_VME is not set
# CONFIG_HP300 is not set

#
# Processor type
#
# CONFIG_M68020 is not set
CONFIG_M68030=y
CONFIG_M68040=y
# CONFIG_M68060 is not set
# CONFIG_ADVANCED is not set

#
# General setup
#
CONFIG_NET=y
CONFIG_SYSVIPC=y
# CONFIG_BSD_PROCESS_ACCT is not set
CONFIG_SYSCTL=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_STRAM_SWAP=y
# CONFIG_STRAM_PROC is not set
CONFIG_HEARTBEAT=y
CONFIG_PROC_HARDWARE=y

#
# Block devices
#
# CONFIG_BLK_DEV_FD is not set
CONFIG_ATARI_FLOPPY=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_BLK_DEV_IDECD is not set
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_BLK_DEV_PCIDE is not set
CONFIG_BLK_DEV_FALCON_IDE=y
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_IDE_CHIPSETS is not set
# CONFIG_ATARI_ACSI is not set

#
# Additional Block Devices
#
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_NBD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_STRIPED=y
CONFIG_MD_MIRRORING=y
CONFIG_MD_RAID5=y
# CONFIG_MD_BOOT is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_INITRD=y
# CONFIG_BLK_DEV_XD is not set
CONFIG_PARIDE_PARPORT=m
# CONFIG_BLK_DEV_HD is not set

#
# Networking options
#
CONFIG_PACKET=y
CONFIG_NETLINK=y
CONFIG_RTNETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_FIREWALL=y
CONFIG_NET_ALIAS=y
# CONFIG_FILTER is not set
CONFIG_UNIX=y
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
# CONFIG_IP_PNP is not set
CONFIG_IP_FIREWALL=y
CONFIG_IP_FIREWALL_NETLINK=y
CONFIG_NETLINK_DEV=y
CONFIG_IP_TRANSPARENT_PROXY=y
# CONFIG_IP_ALWAYS_DEFRAG is not set
CONFIG_IP_MASQUERADE=y

#
# Protocol-specific masquerading support will be built as modules.
#
CONFIG_IP_MASQUERADE_ICMP=y

#
# Protocol-specific masquerading support will be built as modules.
#
# CONFIG_IP_ROUTER is not set
CONFIG_NET_IPIP=y
# CONFIG_NET_IPGRE is not set
CONFIG_IP_ALIAS=y
CONFIG_SYN_COOKIES=y

#
# (it is safe to leave these untouched)
#
# CONFIG_INET_RARP is not set
CONFIG_IP_NOSR=y
# CONFIG_SKB_LARGE is not set

#
#
#
# CONFIG_IPX is not set
# CONFIG_ATALK is not set

#
# SCSI support
#
CONFIG_SCSI=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=y

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y

#
# SCSI low-level drivers
#
CONFIG_ATARI_SCSI=y
CONFIG_ATARI_SCSI_TOSHIBA_DELAY=y
# CONFIG_ATARI_SCSI_RESET_BOOT is not set

#
# Network device support
#
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_SLIP=y
CONFIG_SLIP_COMPRESSED=y
# CONFIG_SLIP_SMART is not set
# CONFIG_SLIP_MODE_SLIP6 is not set
CONFIG_PPP=y

#
# CCP compressors for PPP are only built as modules.
#
CONFIG_EQUALIZER=y
CONFIG_ATARILANCE=y

#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_NVRAM=y
CONFIG_M68K_PRINTER=y
CONFIG_ATARIMOUSE=y
CONFIG_ATARI_MFPSER=y
CONFIG_ATARI_SCC=y
# CONFIG_ATARI_SCC_DMA is not set
CONFIG_ATARI_MIDI=y
CONFIG_SERIAL_CONSOLE=y
# CONFIG_USERIAL is not set
# CONFIG_WATCHDOG is not set
# CONFIG_UMISC is not set
CONFIG_RTC=y
CONFIG_UNIX98_PTYS=y
CONFIG_UNIX98_PTY_COUNT=256

#
# Sound support
#
CONFIG_SOUND=y
CONFIG_DMASOUND=y

#
# Filesystems
#
CONFIG_QUOTA=y
CONFIG_MINIX_FS=y
CONFIG_EXT2_FS=y
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
# CONFIG_UMSDOS_FS is not set
CONFIG_VFAT_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
# CONFIG_NFSD is not set
CONFIG_SUNRPC=y
CONFIG_LOCKD=y
CONFIG_CODA_FS=y
CONFIG_SMB_FS=y
CONFIG_SMB_WIN95=y
CONFIG_HPFS_FS=y
# CONFIG_NTFS_FS is not set
CONFIG_SYSV_FS=y
CONFIG_AFFS_FS=y
CONFIG_HFS_FS=y
CONFIG_ROMFS_FS=y
# CONFIG_AUTOFS_FS is not set
CONFIG_UFS_FS=y

#
# Partition Tables
#
CONFIG_ATARI_PARTITION=y
# CONFIG_FOREIGN_PARTITIONS is not set
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_DEVPTS_FS is not set
CONFIG_FB=y

#
# Console drivers
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FB_ATARI=y
# CONFIG_FB_ATY is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FBCON_ADVANCED is not set
CONFIG_FBCON_MFB=y
CONFIG_FBCON_CFB8=y
CONFIG_FBCON_CFB16=y
CONFIG_FBCON_CFB32=y
CONFIG_FBCON_IPLAN2P2=y
CONFIG_FBCON_IPLAN2P4=y
CONFIG_FBCON_IPLAN2P8=y
# CONFIG_FBCON_FONTWIDTH8_ONLY is not set
# CONFIG_FBCON_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
CONFIG_NLS=y

#
# Native Language Support
#
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
CONFIG_NLS_CODEPAGE_850=y
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
CONFIG_NLS_ISO8859_1=y
CONFIG_NLS_ISO8859_2=y
CONFIG_NLS_ISO8859_3=y
CONFIG_NLS_ISO8859_4=y
CONFIG_NLS_ISO8859_5=y
CONFIG_NLS_ISO8859_6=y
CONFIG_NLS_ISO8859_7=y
CONFIG_NLS_ISO8859_8=y
CONFIG_NLS_ISO8859_9=y
CONFIG_NLS_KOI8_R=y

#
# Kernel hacking
#
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_KGDB is not set


Geert Uytterhoeven

未讀,
1998年10月2日 凌晨3:00:001998/10/2
收件者:
(Forwarded from the linux-m68k mailing list)

On Fri, 2 Oct 1998, Pierre LALOE wrote:
> I try to cross compile kernel 2.1.120 for Atari 68040 from AIX-4.1.5.
> Tools : gcc-2.8.1 + binutils 2.9
>
> The compilation itself goes fine, but I am blocked on the
> linking process which complains about references to "key_maps"
> and other keyboard-related symbols.
> I could not find this symbol in any module (other than static)...
>
> I must have missed something because I seem to be the only
> one having trouble ... (though I looked at the patches available
> which don't speak about this problem)
>
> Any help appreciated, or any other Atari compilation experience ?

Does your drivers/char/defkeymap.c contain sensible data, or is it just empty?
drivers/char/defkeymap.c is autogenerated from drivers/char/defkeymap.map by
using `loadkeys'. If you don't have loadkeys, you will end up with an empty
defkeymap.c.

Just run

loadkeys --mktable defkeymap.map > defkeymap.c

on your Atari and copy the resulting defkeymap.c into your source tree.

Greetings,

Geert

--
Geert Uytterhoeven Geert.Uyt...@cs.kuleuven.ac.be
Wavelets, Linux/{m68k~Amiga,PPC~CHRP} http://www.cs.kuleuven.ac.be/~geert/
Department of Computer Science -- Katholieke Universiteit Leuven -- Belgium


Pierre LALOE

未讀,
1998年10月2日 凌晨3:00:001998/10/2
收件者:
(Forwarded from the linux-m68k mailing list)

> On Fri, 2 Oct 1998, Pierre LALOE wrote:
> > I try to cross compile kernel 2.1.120 for Atari 68040 from AIX-4.1.5.
> > Tools : gcc-2.8.1 + binutils 2.9
> >
> > The compilation itself goes fine, but I am blocked on the
> > linking process which complains about references to "key_maps"
> > and other keyboard-related symbols.
> > I could not find this symbol in any module (other than static)...
> >
> > I must have missed something because I seem to be the only
> > one having trouble ... (though I looked at the patches available
> > which don't speak about this problem)
> >
> > Any help appreciated, or any other Atari compilation experience ?
>
> Does your drivers/char/defkeymap.c contain sensible data, or is it just empty?
> drivers/char/defkeymap.c is autogenerated from drivers/char/defkeymap.map by
> using `loadkeys'. If you don't have loadkeys, you will end up with an empty
> defkeymap.c.
>
> Just run
>
> loadkeys --mktable defkeymap.map > defkeymap.c
>
> on your Atari and copy the resulting defkeymap.c into your source tree.
>
> Greetings,
>
> Geert

Damm fool of me, I had forgotten this ... I copied one from a 2.0 kernel
and at least, compilation & linking are OK now, thanx.

The Makefile should stop when it doesn't find loadkeys, that's the
problem...

Thanx Geert


0 則新訊息