After specifying for 3270 support to be built in to the kernel, I got
further, but ran into yet another error.  I did all sorts of google
searches, but didn't come up with anything that looked related.

I get through all the module compilations, and then into the "Building
modules, stage 2" phase.  At that point, I see this:
  Building modules, stage 2.
  MODPOST
make[1]: *** [__modpost] Error 139
make: *** [modules] Error 2

If I turn on verbose messages with V=1, I don't reallys see anything more
meaningful.  The command that is failing is this:
make -rR -f
/mnt/hd/build-kernel-source-2.6.5-s390-1/usr/src/linux-2.6.5/scripts/Makefil
e.modpost  scripts/modpost net/8021q/8021q.o net/ipv4/netfilter/arp_tables.o
net/ipv4/netfilter/arptable_filter.o fs/autofs/autofs.o fs/autofs4/autofs4.o
fs/binfmt_misc.o drivers/net/bonding/bonding.o drivers/s390/cio/ccwgroup.o
drivers/cdrom/cdrom.o fs/cifs/cifs.o arch/s390/mm/cmm.o fs/coda/coda.o
fs/cramfs/cramfs.o drivers/s390/net/ctc.o drivers/s390/net/cu3088.o
drivers/s390/block/dasd_cmb.o drivers/s390/block/dasd_fba_mod.o ...... (many
more modules)

If I do a "dmesg" command, this shows up (worse than a kernel oops, since
the offsets are even more meaningless):
User process fault: interruption code 0x11
failing address: 40019000
CPU:    0    Not tainted
Process modpost (pid: 9184, task: 02b7e000, ksp: 02b7ff10)
User PSW : 070dc000 80401848
User GPRS: 00000000 00404312 00410910 7fffd880
           40018ff0 40018ff0 004017a0 7fffe2ad
           00402b68 7fffd880 00410990 00410990
           40018dcc 804017a8 7fffd820 7fffd7b8
User ACRS: 40010a40 00000000 00000000 00000000
           00000000 00000000 00000000 00000000
           00000000 00000000 00000000 00000000
           00000000 00000000 00000000 00000000
User Code: d5 15 50 00 10 00 a7 84 ff e1 58 10 30 04 a7 38 00 00 bf 33

So, apparently the modpost command is failing on me.  I've tried recompiling
modpost with different compilers, and get the same results.

Has anyone else seen anything like this?  The lack of hits from Google is a
little discouraging, to say the least.


Mark Post

-----Original Message-----
From: Peter 1 Oberparleiter [mailto:[EMAIL PROTECTED] Behalf
Of BOEBLINGEN LINUX390
Sent: Thursday, July 22, 2004 6:48 AM
To: Post, Mark K
Cc: 'Linux390'
Subject: Re: make modules build error w/ 2.6.5



It seems you have run into an error of the drivers/s390/char/Makefile
which only shows up when you try to configure "Support for locally
attached 3270 tubes" (CONFIG_TN3270) as kernel module. A clean fix
will need some further investigation so as a work-around I suggest you
change your kernel configuration to either exclude 3270 tubes support
or to compile it as part of the kernel. The latter is also required if
you plan on using 3270 tubes as kernel console.


Regards,
  Peter Oberparleiter

To:        "'Linux390'" <[EMAIL PROTECTED]>, BOEBLINGEN
LINUX390/Germany/[EMAIL PROTECTED]
cc:
Subject:        make modules build error w/ 2.6.5


I'm trying to compile a 2.6.5 kernel and corresponding modules.  The kernel
build seems to work fine, but I'm getting this linking error for the
modules:
 CC [M]  drivers/s390/char/tty3270.o
 CC [M]  drivers/s390/char/fs3270.o
 LD [M]  drivers/s390/char/tub3270.o
drivers/s390/char/fs3270.o(.init.text+0x0): In function `init_module':
: multiple definition of `init_module'
drivers/s390/char/tty3270.o(.init.text+0x0): first defined here
ld: Warning: size of symbol `init_module' changed from 250 in
drivers/s390/char/tty3270.o to 100 in drivers/s390/char/fs3270.o
drivers/s390/char/fs3270.o(.exit.text+0x0): In function `cleanup_module':
: multiple definition of `cleanup_module'
drivers/s390/char/tty3270.o(.exit.text+0x0): first defined here
ld: Warning: size of symbol `cleanup_module' changed from 68 in
drivers/s390/char/tty3270.o to 50 in drivers/s390/char/fs3270.o
make[2]: *** [drivers/s390/char/tub3270.o] Error 1
make[1]: *** [drivers/s390/char] Error 2
make: *** [drivers/s390] Error 2

Anyone with any ideas on what might be causing this and/or how to get around
it?
gcc 3.3.4
binutils 2.15.90.0.3
glibc 2.3.2


Mark Post

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to