2000-12-27 02:22:39

by Dieter Nützel

[permalink] [raw]
Subject: test13-preX: DRM (tdfx.o) unresolved symbols fixed?

Hello to all of you,

I got this since test13-pre1 (pre4, now):

SunWave1>depmod -e
depmod: *** Unresolved symbols in
/lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o
depmod: remap_page_range
depmod: _mmx_memcpy
depmod: __wake_up
depmod: mtrr_add
depmod: __generic_copy_from_user
depmod: schedule
depmod: kmalloc
depmod: si_meminfo
depmod: create_proc_entry
depmod: inter_module_put
depmod: __get_free_pages
depmod: boot_cpu_data
depmod: inter_module_get
depmod: remove_wait_queue
depmod: high_memory
depmod: iounmap
depmod: free_pages
depmod: __ioremap
depmod: del_timer
depmod: interruptible_sleep_on
depmod: __pollwait
depmod: kfree
depmod: remove_proc_entry
depmod: pci_find_slot
depmod: kill_fasync
depmod: fasync_helper
depmod: add_wait_queue
depmod: do_mmap_pgoff
depmod: mem_map
depmod: sprintf
depmod: jiffies
depmod: printk
depmod: add_timer
depmod: irq_stat
depmod: __generic_copy_to_user

Something missing in the 'new' drm/Makefile?

Thanks,
Dieter
--
Dieter N?tzel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
Cognitive Systems Group
Vogt-K?lln-Stra?e 30
D-22527 Hamburg, Germany

email: [email protected]
@home: [email protected]


2000-12-27 10:38:13

by Nils Philippsen

[permalink] [raw]
Subject: Re: test13-preX: DRM (tdfx.o) unresolved symbols fixed?

Hi all,

On Wed, 27 Dec 2000, Dieter [iso-8859-1] N?tzel wrote:

> I got this since test13-pre1 (pre4, now):
>
> SunWave1>depmod -e
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o

[snipped]

> Something missing in the 'new' drm/Makefile?

>From the test13-pre4 patch, the only difference I can see is that shared code
is now in drmlib.a instead of the object files being linked individually for
each drm module.

If I do `nm tdfx.o|grep printk`, with test12 I get only this:

U printk_R1b7d4074

with test13-pre4 on my home machine, I get the mangled symbol name plus a
non-mangled one, both unresolved, maybe that causes problems.

Nils
--
Nils Philippsen / Berliner Stra?e 39 / D-71229 Leonberg // +49.7152.209647
[email protected] / [email protected] / [email protected]
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offence. -- Edsger W. Dijkstra


2000-12-28 00:19:37

by Dieter Nützel

[permalink] [raw]
Subject: Re: test13-preX: DRM (tdfx.o) unresolved symbols fixed?

Am Mittwoch, 27. Dezember 2000 11:07 schrieb Nils Philippsen:
> Hi all,
>
> On Wed, 27 Dec 2000, Dieter [iso-8859-1] N?tzel wrote:
> > I got this since test13-pre1 (pre4, now):
> >
> > SunWave1>depmod -e
> > depmod: *** Unresolved symbols in
> > /lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o
>
> [snipped]
>
> > Something missing in the 'new' drm/Makefile?
>
> From the test13-pre4 patch, the only difference I can see is that shared
> code is now in drmlib.a instead of the object files being linked
> individually for each drm module.

Yep, I saw this, too.

> If I do `nm tdfx.o|grep printk`, with test12 I get only this:
>
> U printk_R1b7d4074

dito
SunWave1>cd ../../../../../2.4.0-test12-pre7/kernel/drivers/char/drm/
SunWave1>nm tdfx.o | grep printk
U printk_R1b7d4074

> with test13-pre4 on my home machine, I get the mangled symbol name plus a
> non-mangled one, both unresolved, maybe that causes problems.

SunWave1>cd ../../../../../2.4.0-test13-pre4/kernel/drivers/char/drm/
SunWave1>nm tdfx.o | grep printk
U printk
U printk_R1b7d4074

But the strange thing is this:

SunWave1>depmod -e
depmod: *** Unresolved symbols in
/lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o
depmod: remap_page_range
depmod: _mmx_memcpy
depmod: __wake_up
depmod: mtrr_add
depmod: __generic_copy_from_user
depmod: schedule
[snip]

-Dieter
--
Dieter N?tzel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
Cognitive Systems Group
Vogt-K?lln-Stra?e 30
D-22527 Hamburg, Germany

email: [email protected]
@home: [email protected]

2000-12-28 17:12:28

by Tony Hoyle

[permalink] [raw]
Subject: Re: test13-preX: DRM (tdfx.o) unresolved symbols fixed?

Dieter N?tzel wrote:
>
> Am Mittwoch, 27. Dezember 2000 11:07 schrieb Nils Philippsen:
> > Hi all,
> >
> > On Wed, 27 Dec 2000, Dieter [iso-8859-1] N?tzel wrote:
> > > I got this since test13-pre1 (pre4, now):
> > >
> > > SunWave1>depmod -e
> > > depmod: *** Unresolved symbols in
> > > /lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o
> >
> > [snipped]
> >
> > > Something missing in the 'new' drm/Makefile?
> >
This is a temporary fix:

--- drmP.old Thu Dec 28 16:27:34 2000
+++ drmP.h Sat Dec 23 13:57:08 2000
@@ -40,6 +40,7 @@
#include <asm/current.h>
#endif /* __alpha__ */
#include <linux/config.h>
+#include <linux/modversions.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/miscdevice.h>

Tony

--
Can't think of a decent signature...

[email protected] http://www.nothing-on.tv

2000-12-28 23:29:18

by Dieter Nützel

[permalink] [raw]
Subject: Re: test13-preX: DRM (tdfx.o) unresolved symbols fixed?

Am Donnerstag, 28. Dezember 2000 17:40 schrieb Tony Hoyle:
> Dieter N?tzel wrote:
> > Am Mittwoch, 27. Dezember 2000 11:07 schrieb Nils Philippsen:
> > > Hi all,
> > >
> > > On Wed, 27 Dec 2000, Dieter [iso-8859-1] N?tzel wrote:
> > > > I got this since test13-pre1 (pre4, now):
> > > >
> > > > SunWave1>depmod -e
> > > > depmod: *** Unresolved symbols in
> > > > /lib/modules/2.4.0-test13-pre4/kernel/drivers/char/drm/tdfx.o
> > >
> > > [snipped]
> > >
> > > > Something missing in the 'new' drm/Makefile?
>
> This is a temporary fix:
>
> --- drmP.old Thu Dec 28 16:27:34 2000
> +++ drmP.h Sat Dec 23 13:57:08 2000
> @@ -40,6 +40,7 @@
> #include <asm/current.h>
> #endif /* __alpha__ */
> #include <linux/config.h>
> +#include <linux/modversions.h>
> #include <linux/module.h>
> #include <linux/kernel.h>
> #include <linux/miscdevice.h>

If I compile agpgart and tdfx directly into the kernel, it works for me, too.

Thanks!
Dieter