Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: fsck seg fault failure on vmware -i386?

On Feb 5,  1:27pm, 
( wrote:
-- Subject: Re: fsck seg fault failure on vmware -i386?

| >Oh, it is dying inside asctime! Can you build a debugging libc,
| >(MKDEBUG=yes)and then link fsck with -lc_g?
| I'd be glad to, but I only have build experience with
| I'm OK with pulling* from my build dir (/usr/obj/lib/libc) but can
| I get the equivalent action of these debug flags by setting Makefile
| directives in src/lib/libc/* ? Or something?
| I made a debug version of fsck_ffs by adding -g to cflags in
| the Makefile in src/bin/fsck_ffs directory...and copying out of
| /usr/object/bin...
| Willing to try anything...time is my most limited resource...8-)

cd  /usr/src/sbin/fsck_ffs
cp /usr/src/lib/libc/time/localtime.c
# patch the Makefile
Index: Makefile
RCS file: /cvsroot/src/sbin/fsck_ffs/Makefile,v
retrieving revision 1.40
diff -u -u -r1.40 Makefile
--- Makefile    5 Jun 2009 21:52:31 -0000       1.40
+++ Makefile    5 Feb 2010 14:02:28 -0000
@@ -9,8 +9,10 @@
 MAN=   fsck_ffs.8
 SRCS=  dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
        pass5.c fsutil.c setup.c utilities.c ffs_bswap.c ffs_subr.c \
-       ffs_tables.c ffs_appleufs.c partutil.c snapshot.c
+       ffs_tables.c ffs_appleufs.c partutil.c snapshot.c localtime.c

 FSCK=  ${NETBSDSRCDIR}/sbin/fsck
 DUMP=  ${NETBSDSRCDIR}/sbin/dump


Home | Main Index | Thread Index | Old Index