View previous topic :: View next topic |
Author |
Message |
insane.awmn n00b
Joined: 22 Mar 2006 Posts: 24 Location: Athens
|
Posted: Mon Jun 11, 2012 11:43 pm Post subject: genkernel initramfs fails with --unionfs option |
|
|
Hello community of gentoo !!!!!
, i am trying to generate initramfs with genkernel and unionfs support ,but i have compiling failures during the compilation of fuse...
Quote: |
fuse: >> Configuring...
configure: WARNING: unrecognized options: --disable-kernel-module
--
config.status: creating example/Makefile
config.status: creating include/Makefile
config.status: creating include/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --disable-kernel-module
--
Making all in util
make[1]: Entering directory `/var/tmp/genkernel/17311.5006.32153.1284/fuse-2.8.6/util'
gcc -DHAVE_CONFIG_H -I. -I../include -I../lib -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT fusermount-fusermount.o -MD -MP -MF .deps/fusermount-fusermount.Tpo -c -o fusermount-fusermount.o `test -f 'fusermount.c' || echo './'`fusermount.c
gcc -DHAVE_CONFIG_H -I. -I../include -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -W -Wno-sign-compare -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -g -O2 -fno-strict-aliasing -MT ulockmgr_server-ulockmgr_server.o -MD -MP -MF .deps/ulockmgr_server-ulockmgr_server.Tpo -c -o ulockmgr_server-ulockmgr_server.o `test -f 'ulockmgr_server.c' || echo './'`ulockmgr_server.c
fusermount.c: In function 'clone_newns':
fusermount.c:295:2: warning: implicit declaration of function 'clone'
fusermount.c:295:44: error: 'CLONE_NEWNS' undeclared (first use in this function)
fusermount.c:295:44: note: each undeclared identifier is reported only once for each function it appears in
fusermount.c: In function 'unmount_fuse_locked':
fusermount.c:422:9: warning: ignoring return value of 'fchdir', declared with attribute warn_unused_result
fusermount.c: In function 'clone_newns':
fusermount.c:297:1: warning: control reaches end of non-void function
fusermount.c: In function 'unlock_umount':
fusermount.c:117:7: warning: ignoring return value of 'lockf', declared with attribute warn_unused_result
fusermount.c: In function 'mount_fuse':
fusermount.c:1077:9: warning: ignoring return value of 'fchdir', declared with attribute warn_unused_result
make[1]: *** [fusermount-fusermount.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/ulockmgr_server-ulockmgr_server.Tpo .deps/ulockmgr_server-ulockmgr_server.Po
make[1]: Leaving directory `/var/tmp/genkernel/17311.5006.32153.1284/fuse-2.8.6/util'
make: *** [all-recursive] Error 1
* Gentoo Linux Genkernel; Version 3.4.24_p1
* Running with options: initramfs --no-clean --no-mrproper --splash=natural_gentoo --splash-res=800x600 --all-ramdisk-modules --unionfs
* ERROR: Failed to compile the "" target...
|
how i solve this problem ? ...i use the sys-kernel/genkernel-3.4.24_p1 .
i tried to fix the compiling problems adding in the fuse section of /usr/share/genkernel/gen_compile.sh the "sed -i '1i#define _GNU_SOURCE' util/fusermount.c" before ./configure with no success !!!!
can anyone help me ??? _________________ Elpizw o Theos na sas xarizei eutixia................... |
|
Back to top |
|
|
xoz n00b
Joined: 26 Jun 2012 Posts: 2
|
Posted: Tue Jun 26, 2012 2:15 pm Post subject: |
|
|
Exactly the same probleme here (same versions etc.).
I'm stuck....
@insane.awmn
Did you fix this problem?
@Community
Could anyone else give me hint what to do in this situation?
King regards
André |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Tue Jun 26, 2012 3:17 pm Post subject: |
|
|
Team,
Can your run Code: | emerge =fuse-2.8.6 -1 | amd does that work or do you get the same undeclared identifier errors?
It builds for me on ~amd64 /no-multilib. Different arches and profiles may get different answers.
Genkernel does not use the system packages. It has a lisy of packages/versions that it builds for itself.
The error suggests that a dependency is missing, or a libray reference. That would be a genkernel bug, so its worth looking on bugs.gentoo.org to see if its been reported, if so their may even be a patch.
Genkernel; Version 3.4.24_p1 is the current stable version. You could try the latest testing version if you wish.
To do that add the line Code: | sys-kernel/genkernel | to your /etc/portage/package/keywords file.
If this is your first testing package, they file will not exist. Now to get a later version _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
xoz n00b
Joined: 26 Jun 2012 Posts: 2
|
Posted: Tue Jun 26, 2012 4:28 pm Post subject: |
|
|
Thank you for your reply.
NeddySeagoon wrote: |
Can your run Code: | emerge =fuse-2.8.6 -1 | amd does that work or do you get the same undeclared identifier errors?
|
Worked without problems.
NeddySeagoon wrote: |
Genkernel; Version 3.4.24_p1 is the current stable version. You could try the latest testing version if you wish.
To do that add the line Code: | sys-kernel/genkernel | to your /etc/portage/package/keywords file.
If this is your first testing package, they file will not exist. Now to get a later version |
I tried using different genkernel-versions, everytime with the same error.
Nevertheless, I Could fix this problem by adding
Quote: |
sed -i '9i#define _GNU_SOURCE' util/fusermount.c
|
to
Code: |
/usr/share/genkernel/gen_compile.sh
|
before configure in function compile_fuse(). This applies the following patch: http://fuse.git.sourceforge.net/git/gitweb.cgi?p=fuse/fuse;a=commitdiff;h=ae43094c13ecf49e0b738bbda633cf193c7b3670
I just read over this hint in the first posting by insane.awmn. Sorry for that. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Tue Jun 26, 2012 4:33 pm Post subject: |
|
|
xoz,
Please tell everyone else - post a bug at bugs.gentoo.org if there is not one already.
If a bug exists, post your fix, preferrably as a patch. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|