All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Stanley <jpsinthemix@verizon.net>
To: grub-devel@gnu.org
Subject: grub-fstest build issue in grub2-r2071 +
Date: Mon, 13 Apr 2009 21:06:13 -0400	[thread overview]
Message-ID: <49E3E185.3040609@verizon.net> (raw)


Hi all,

I have built grub2-r2065 and it works nicely for me so far for linux 
boots (love the graphics!!). However, beginning with r2071, I am unable 
to build it with the "--enable-grub-fstest" option  due to several 
undefined refs:
# 
--------------------------------------------------------------------------------------------------------- 

# Fix grub_fstest-normal_misc.o unresolve ref error:
#   In function `grub_normal_print_device_info':
#   /build/grub2-r2077-jps_src/grub2-r2077/normal/misc.c:74: undefined 
reference to `grub_unixtime2datetime'
#   /build/grub2-r2077-jps_src/grub2-r2077/normal/misc.c:75: undefined 
reference to `grub_get_weekday_name'
#   grub_fstest-commands_ls.o: In function `print_files_long':
#   /build/grub2-r2077-jps_src/grub2-r2077/commands/ls.c:149: undefined 
reference to `grub_unixtime2datetime'
#   /build/grub2-r2077-jps_src/grub2-r2077/commands/ls.c:151: undefined 
reference to `grub_get_weekday_name'
#   collect2: ld returned 1 exit status
#   make: *** [grub-fstest] Error 1
# 
---------------------------------------------------------------------------------------------------------- 

# conf/common.rmk is used by configure to generate conf/common.mk, so 
modify the former.

To handle this (I'm now building r2101), I add normal/datetime to the 
grub-fstest build specs,
as follows:

# 
----------------------------------------------------------------------------------------------------------------- 

# Only add normal/datetime.c if not present:
sed '/grub-fstest.c_DEPENDENCIES/,/For /{s:normal/datetime.c:jps:}' \
   conf/common.rmk |grep -q jps ||
sed -i 's:^grub_fstest_SOURCES =:& normal/datetime.c:' conf/common.rmk
# 
------------------------------------------------------------------------------------------------------------------ 


Has anyone come across this ? Actually, I'm not even sure what fstest is 
used for, so I could simply remove the option when I do configure...

John



             reply	other threads:[~2009-04-14  0:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-14  1:06 John Stanley [this message]
2009-04-14  1:54 ` grub-fstest build issue in grub2-r2071 + Pavel Roskin
2009-04-14  7:04   ` John Stanley
2009-04-14  9:17   ` John Stanley
2009-04-14  8:53     ` David Miller
2009-04-14  9:07       ` David Miller

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=49E3E185.3040609@verizon.net \
    --to=jpsinthemix@verizon.net \
    --cc=grub-devel@gnu.org \
    /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.