dmraid and mkinitrd

LU p-danlu at ssl.fujitsu.com
Wed Mar 1 01:07:14 UTC 2006


I'm thinking that the files under /usr/include is too old.
Today will try again.

Lu.


On Tue, 28 Feb 2006 14:44:41 +0900
LU <p-danlu at ssl.fujitsu.com> wrote:

 > Hi,
 >  
 > I'm SORRY about it might be irrelevant to this thread,
 > I'm working on Momonga-linux (http://www.momonga-linux.org/index.html.en) 
 > and tried to import the mkinitrd from fedora-devel.
 > 
 > When I did make or rebuild the src of mkinitrd-5.0.28,
 > I got such error-messages:
 > 
 > ----------------------- from here ----------------------------------
 > 
 > # uname -a
 > Linux momo.local 2.6.10-36m #1 Fri Apr 22 18:38:29 JST 2005 i686 i686 i386 GNU/Linux
 > # LANG=C rpmbuild -bb mkinitrd.spec
 > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.55369
 > + umask 022
 > + cd /usr/src/momonga/BUILD
 > + set --
 > + '[' 0 -gt 0 ']'
 > + cd /usr/src/momonga/BUILD
 > + rm -rf mkinitrd-5.0.28
 > + /usr/bin/bzip2 -dc /usr/src/momonga/SOURCES/mkinitrd-5.0.28.tar.bz2
 > + tar -xf -
 > + STATUS=0
 > + '[' 0 -ne 0 ']'
 > + cd mkinitrd-5.0.28
 > + echo 'Patch #100 (mkinitrd-5.0.28-momonga.patch):'
 > Patch #100 (mkinitrd-5.0.28-momonga.patch):
 > + patch -p1 -b --suffix .momonga~ -s
 > + echo 'Patch #105 (mkinitrd-5.0.28-insmod.static.old.patch):'
 > Patch #105 (mkinitrd-5.0.28-insmod.static.old.patch):
 > + patch -p1 -b --suffix .insmod.static.old~ -s
 > + exit 0
 > Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7114
 > + umask 022
 > + cd /usr/src/momonga/BUILD
 > + cd mkinitrd-5.0.28
 > + make
 > make -C nash all
 > make[1]: Entering directory `/usr/src/momonga/BUILD/mkinitrd-5.0.28/nash'
 > making /usr/src/momonga/BUILD/mkinitrd-5.0.28/nash/version.h
 > for n in ; do make -C $n all ; done
 > gcc -Wall -Werror -g -D_FORTIFY_SOURCE=2 -c -o lib.o lib.c
 > gcc -Wall -Werror -g -D_FORTIFY_SOURCE=2 -c -o dm.o dm.c
 > dm.c: In function `nashDmCreate':
 > dm.c:189: warning: implicit declaration of function `dm_task_update_nodes'
 > dm.c: In function `dm_submap_has_part':
 > dm.c:678: warning: implicit declaration of function `dm_tree_create'
 > dm.c:678: warning: assignment makes pointer from integer without a cast
 > dm.c:684: warning: implicit declaration of function `dm_tree_add_dev'
 > dm.c:686: warning: implicit declaration of function `dm_tree_find_node'
 > dm.c:686: warning: assignment makes pointer from integer without a cast
 > dm.c:688: warning: implicit declaration of function `dm_tree_next_child'
 > dm.c:688: warning: assignment makes pointer from integer without a cast
 > dm.c:694: warning: implicit declaration of function `dm_tree_node_get_name'
 > dm.c:695: warning: passing arg 2 of `nashDmTaskNew' makes pointer from integer without a cast
 > dm.c:716: warning: assignment makes pointer from integer without a cast
 > dm.c:742: warning: implicit declaration of function `dm_tree_free'
 > make[1]: *** [dm.o] Error 1
 > make[1]: Leaving directory `/usr/src/momonga/BUILD/mkinitrd-5.0.28/nash'
 > make: *** [nash] Error 2
 > error: Bad exit status from /var/tmp/rpm-tmp.7114 (%build)
 > 
 > 
 > RPM build errors:
 >     Bad exit status from /var/tmp/rpm-tmp.7114 (%build)
 > 
 > ----------------------- above  ----------------------------------
 > 
 > 
 > Could anyone pls give me some advice into find the solution about this?
 > *I got the same error when only "make" from the src tree.
 > 
 > 
 > ### PS.
 > The patch files for momonga-linux:
 > 
 > -------------------------------------------------------------------------------------
 > # cat mkinitrd-5.0.28-momonga.patch
 > --- mkinitrd-5.0.28/grubby/new-kernel-pkg.def   2006-02-28 13:17:52.751654680 +0900
 > +++ mkinitrd-5.0.28/grubby/new-kernel-pkg       2006-02-28 13:20:26.978208680 +0900
 > @@ -7,6 +7,7 @@
 >  # addition/removal of kernel images from grub/lilo configuration (via grubby)
 >  #
 >  # Copyright (C) 2002-2005 Red Hat, Inc.
 > +# Copyright (C) 2006 Momonga Project.
 >  #
 > 
 >  PATH=/sbin:/bin:$PATH
 > @@ -139,7 +140,7 @@
 >         elif [ -f /etc/redhat-release ]; then
 >             title="$(sed 's/ release.*$//' < /etc/redhat-release) ($version)"
 >         else
 > -           title="Red Hat Linux ($version)"
 > +           title="Momonga Linux ($version)"
 >         fi
 >         /sbin/grubby --add-kernel=$bootPrefix/$kernelName-$version \
 >             $INITRD --copy-default $makedefault --title "$title" \
 > 
 > -------------------------------------------------------------------------------------
 > # cat mkinitrd-5.0.28-insmod.static.old.patch
 > --- mkinitrd-5.0.28/mkinitrd.def        2006-02-28 13:24:34.523576064 +0900
 > +++ mkinitrd-5.0.28/mkinitrd    2006-02-28 13:24:39.938752832 +0900
 > @@ -797,7 +797,15 @@
 >      inst /etc/fstab.sys "$MNTIMAGE/etc/fstab.sys"
 >  fi
 >  inst /sbin/nash "$MNTIMAGE/bin/nash"
 > -inst /sbin/insmod.static "$MNTIMAGE/bin/insmod"
 > +if [ `echo "$kernel"|cut -d'.' -f1-2` = "2.4" ]; then
 > +  if [ -f /sbin/insmod.static.old ]; then
 > +    inst /sbin/insmod.static.old "$MNTIMAGE/bin/insmod"
 > +  else
 > +    inst /sbin/insmod.static "$MNTIMAGE/bin/insmod"
 > +  fi
 > +else
 > +  inst /sbin/insmod.static "$MNTIMAGE/bin/insmod"
 > +fi
 >  ln -s /sbin/nash $MNTIMAGE/sbin/modprobe
 > 
 >  for MODULE in $MODULES; do
 > -------------------------------------------------------------------------------------
 > 
 > 
 > 
 > On Sun, 26 Feb 2006 22:26:58 -0700
 > Dax Kelson <dax at gurulabs.com> wrote:
 > 
 >  > In stock Fedora Core 5 test 3 with a mkinitrd-5.0.26 created initramfs
 >  > the dmraid was not properly activated.
 >  > 
 >  > I did a fresh install of FC5 test and upgraded to mkinitrd-5.0.28 inside
 >  > the rescue environment. I rebuilt the initial ram disk and I'm happy to
 >  > report that it fixes the problem.
 >  > 
 >  > More details are available in the bug I filed.
 >  > 
 >  > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=182446
 >  > 
 >  > Dax Kelson
 >  > Guru Labs
 >  > 
 >  > -- 
 >  > fedora-devel-list mailing list
 >  > fedora-devel-list at redhat.com
 >  > https://www.redhat.com/mailman/listinfo/fedora-devel-list
 > 
 > 
 > 
 > -- 
 > fedora-devel-list mailing list
 > fedora-devel-list at redhat.com
 > https://www.redhat.com/mailman/listinfo/fedora-devel-list






More information about the devel mailing list