All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Anthony Brock" <Anthony_Brock@ous.edu>
To: jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net,
	viro@parcelfarce.linux.theplanet.co.uk, blaisorblade@yahoo.it
Cc: Anthony.Brock@oregonstate.edu
Subject: Re: [uml-devel] Problems applying patches to 2.6.12-rc5-mm2
Date: Mon, 06 Jun 2005 12:55:29 -0700	[thread overview]
Message-ID: <s2a447e1.042@ORANGE.OUS.EDU> (raw)

Blaisor,

Thanks! Any ideas on the second compile problem? The output is:

  CC      kernel/futex.o
  CC      kernel/uid16.o
  CC      kernel/module.o
kernel/module.c: In function `module_add_modinfo_attrs':
kernel/module.c:1078: error: `modinfo_attrs' undeclared (first use in this function)
kernel/module.c:1078: error: (Each undeclared identifier is reported only once
kernel/module.c:1078: error: for each function it appears in.)
kernel/module.c: In function `module_remove_modinfo_attrs':
kernel/module.c:1091: error: `modinfo_attrs' undeclared (first use in this function)
kernel/module.c: In function `setup_modinfo':
kernel/module.c:1387: error: `modinfo_attrs' undeclared (first use in this function)
make[1]: *** [kernel/module.o] Error 1
make: *** [kernel] Error 2


Tony


>>> Blaisorblade <blaisorblade@yahoo.it> 06/05/05 08:54AM >>>
On Friday 03 June 2005 19:15, Anthony Brock wrote:
> In the event that something "wierd" happened to my guest binary, I've
> decide to try recompiling again. However, I'm now seeing new (and old)
> compilation errors with Jeff's tree. The steps were:

> # tar -jxvf linux-2.6.12-rc5.tar.bz2
> # cd linux-2.6.12-rc5/
> # bzip2 -dc ../2.6.12-rc5-mm2.bz2 |patch -p1
> # tar -xvf ../2.6.12-rc5-mm2-20050602-patches.tar
> # quilt push -a
> # cp -a ../.config .
> # make oldconfig ARCH=um
> # make ARCH=um && make modules ARCH=um
>
> <*** OUTPUT SNIPPED ***>
>
>   CC      arch/um/sys-i386/sigcontext.o
>   AS      arch/um/sys-i386/stub.o
>   CC      arch/um/sys-i386/stub_segv.o
> fixdep: arch/um/sys-i386/.stub_segv.o.d: No such file or directory
Ok, the other time I just looked at patch changelogs, now here's a more 
definite answer. The patch does not work because the .d file is not created.

Probably it works for you, Jeff, because you have that file as a residual from 
a previous compile...

In this section of the patch (both for i386 and x86_64), affecting 
arch/um/sys-*/Makefile, the last line:

+# _cflags works with kernel files, not with userspace ones, but c_flags does,
+# why ask why?
+$(obj)/stub_segv.o : c_flags = $(call unprofile,$(USER_CFLAGS))

should become (without the break):
+$(obj)/stub_segv.o : c_flags = -Wp,-MD,$(depfile) $(call unprofile,
$(USER_CFLAGS))

See for comparison the content of arch/um/scripts/Makefile.rules (and for the 
difference between _c_flags and c_flags, scripts/Makefile.lib).

Beyond that, for such tricks with .S files we would use a_flags (or 
_a_flags)... currently this is not needed, but just in case you need it.


> make[1]: *** [arch/um/sys-i386/stub_segv.o] Error 2
> make: *** [arch/um/sys-i386] Error 2

-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade 


	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it 



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r 
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2005-06-06 19:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06 19:55 Anthony Brock [this message]
     [not found] <s2a447e1.041@ORANGE.OUS.EDU>
2005-06-07  0:43 ` [uml-devel] Problems applying patches to 2.6.12-rc5-mm2 Jeff Dike
  -- strict thread matches above, loose matches on Subject: below --
2005-06-03 17:15 Anthony Brock
2005-06-05 15:54 ` Blaisorblade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s2a447e1.042@ORANGE.OUS.EDU \
    --to=anthony_brock@ous.edu \
    --cc=Anthony.Brock@oregonstate.edu \
    --cc=blaisorblade@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.