compilation trouble && unresolved symbol

Eric Deveaud mol-general@lists.maconlinux.org
Mon, 16 Jun 2003 13:34:20 +0200 (CEST)


On Fri, 13 Jun 2003, Samuel Rydh wrote:

> On Fri, Jun 13, 2003 at 02:09:40PM +0200, Eric Deveaud wrote:

> > guys I want to said thank's for the quality. I'm astonished by having
> > just see one, yes just ONE warning during the compil process, about a
> > defined but not used variable (modes-l.c:1144: warning: `yyunput'
> > defined but not used)
>
> ...which was added in order to remove this warning (flex does not
> generate warning-free code).

yes.
but once again, it's a pleasure to compile without all this warnings. It
gives a good feeling ;-)) and furthermore  if the dev team is putting
enough sweat to hunt those small prob,


> > 3) and now the bad part.

[SNIP]

> > any hint on what I'm missing or doing the wrong way.
>
> You have compiled MOL with broken kernel headers (i.e. headers
> that are not configured exactly as your running kernel).
>
> If you have rolled your own kernel, then you should probably rebuild
> the kernel (a 'make mrproper' after backing up the .config file is
> a good idea). Note that you should do 'make modules_install' even if
> everything is statically compiled into the kernel since this step
> installs the /lib/modules/2.4.20-ben10/build symlink which
> MOL uses to find the correct headers.

OK everything done this way
cp .config ../config-dev
make mrproper
cp ../config-dev .config
make oldconfig
make dep && make && make modules
sudo make modules_install
sudo cp vmlinux /boot/vmlinux-dev3
sudo cp System.map /boot/System.map-dev3
sudo vi /etc/yaboot.conf
sudo ybin
sudo reboot

bulgroz:~ > uname -a
Linux bulgroz.sis.pasteur.fr 2.4.20-ben10 #1 SMP Mon Jun 16 13:04:05
CEST 2003 ppc unknown                            ~~~~~~~~~~~~~~~~~~~

cd ~/Work/station/mol-bk
=2E/autogen.sh
=2E/configure --disable-oldworld --disable-esound
make
src/vconfig
gcc -DHAVE_CONFIG_H -I. -I. -I../../src/shared -I../include -I../shared
-I- -Wall -g -c modes-l.c
cd ../../
make
make modules
make libimport
sudo make install

bulgroz:station/mol-bk > sudo startmol --loadonly
Mac-on-Linux 0.9.69 Copyright (C) 1997-2003 Samuel Rydh
Starting MOL session 0
Loading Mac-on-Linux kernel module:
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o: unresolved
symbol verify_area
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o: unresolved
symbol virt_to_phys
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o: unresolved
symbol copy_to_user
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o: unresolved
symbol phys_to_virt
   /usr/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o: unresolved
symbol copy_from_user



gasp

some more things

ll /local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o
-rw-r--r--    1 root     root        86756 Jun 16 13:25
/local/lib/mol/0.9.69/modules/2.4.20-ben10-smp/mol.o

the build link is corect  build -> /usr/src/benh/
that's where the kernel sources are located, link is
corect

no dangling link /usr/include/linux -> /usr/src/linux/include/linux
no dangling link /usr/include/asm -> /usr/src/linux/include/asm-ppc

I should admit I'm lost

thank's for any input

=09Eric






--=20
> C'est vrai. FreeBSD pourrait =EAtre bien s'il avait une licence
> correcte.
Oh, mon troll-=F4-meter vient d'exploser...
-+- OR in Guide du linuxien pervers - "Bien regler son troll-=F4-meter"