Welcome to the Reiser4 Wiki, the Wiki for users and developers of the ReiserFS and Reiser4 filesystems.
For now, most of the documentation is just a snapshot of the old Namesys site (archive.org, 2007-09-29).
There was also a Reiser4 Wiki (archive.org, 2007-07-06) once on pub.namesys.com.
Talk:Reiser4 Howto/GRUB
Yes, this howto is heavily based on this howto over here -- Chris goe 18:33, 3 July 2009 (UTC)
implicit declaration of function 'objplug'
Hm, compiling against reiser4progs-1.0.7 fails with:
fsys_reiser4.c: In function 'reiser4_read': fsys_reiser4.c:126: warning: implicit declaration of function 'objplug' fsys_reiser4.c:126: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:127: warning: implicit declaration of function 'plug_call' fsys_reiser4.c:127: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:128: error: 'seek' undeclared (first use in this function) fsys_reiser4.c:128: error: (Each undeclared identifier is reported only once fsys_reiser4.c:128: error: for each function it appears in.) fsys_reiser4.c:128: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c:133: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:134: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:135: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c: In function 'reiser4_dir': fsys_reiser4.c:155: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:156: error: 'close' undeclared (first use in this function) fsys_reiser4.c:156: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c:195: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c:195: error: 'OPSET_OBJ' undeclared (first use in this function) fsys_reiser4.c:202: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:203: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c:209: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:210: error: invalid type argument of '->' (have 'int') fsys_reiser4.c:210: error: 'readdir' undeclared (first use in this function) fsys_reiser4.c:211: error: 'reiser4_object_t' has no member named 'ent' fsys_reiser4.c:233: error: 'reiser4_object_t' has no member named 'ent' make[2]: *** [pre_stage2_exec-fsys_reiser4.o] Error 1 make[2]: Leaving directory `/usr/local/src/grub-0.97/stage2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/grub-0.97' make: *** [all] Error 2
Gonna try with reiser4progs-1.0.5.tar.gz later on. -- Chris goe 20:12, 3 July 2009 (UTC)
undefined reference to __stack_chk_fail
Compiling against reiser4progs-1.0.6 failed as well:
gcc -fno-stack-protector -I/opt/reiser4progs-1.0.5/include -L/opt/libaal/lib -L/opt/reiser4progs-1.0.5/lib -o pre_stage2.exec -nostdlib -Wl,-N -Wl,-Ttext -Wl,8200 pre_stage2_exec-asm.o pre_stage2_exec-bios.o pre_stage2_exec-boot.o pre_stage2_exec-builtins.o pre_stage2_exec-char_io.o pre_stage2_exec-cmdline.o pre_stage2_exec-common.o pre_stage2_exec-console.o pre_stage2_exec-disk_io.o pre_stage2_exec-fsys_ext2fs.o pre_stage2_exec-fsys_fat.o pre_stage2_exec-fsys_ffs.o pre_stage2_exec-fsys_iso9660.o pre_stage2_exec-fsys_jfs.o pre_stage2_exec-fsys_minix.o pre_stage2_exec-fsys_reiserfs.o pre_stage2_exec-fsys_reiser4.o pre_stage2_exec-fsys_ufs2.o pre_stage2_exec-fsys_vstafs.o pre_stage2_exec-fsys_xfs.o pre_stage2_exec-gunzip.o pre_stage2_exec-hercules.o pre_stage2_exec-md5.o pre_stage2_exec-serial.o pre_stage2_exec-smp-imps.o pre_stage2_exec-stage2.o pre_stage2_exec-terminfo.o pre_stage2_exec-tparm.o pre_stage2_exec-graphics.o -lreiser4-minimal -laal-minimal /opt/reiser4progs-1.0.5/lib/libreiser4-minimal.a(libreiser4_minimal_la-semantic.o): In function `cb_find_entry': semantic.c:(.text+0x1a0): undefined reference to `__stack_chk_fail' /opt/reiser4progs-1.0.5/lib/libreiser4-minimal.a(libaux_minimal_la-aux.o): In function `aux_parse_path': aux.c:(.text+0x28d): undefined reference to `__stack_chk_fail_local' /opt/reiser4progs-1.0.5/lib/libreiser4-minimal.a(libdir40_minimal_la-dir40.o): In function `dir40_readdir': dir40.c:(.text+0x604): undefined reference to `__stack_chk_fail_local' /usr/bin/ld: pre_stage2.exec: hidden symbol `__stack_chk_fail_local' isn't defined /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make[2]: *** [pre_stage2.exec] Error 1 make[2]: Leaving directory `/usr/local/src/grub-0.97/stage2' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/grub-0.97' make: *** [all] Error 2
Although -fno-stack-protector has been added, the reiser4progs compiled earlier were still using SSP - so I had to recompile reiser4progs again with -fno-stack-protector as well.