On Feb 3, 2008 6:34 PM, Venkatesh K <[EMAIL PROTECTED]> wrote:
> On Feb 3, 2008 5:36 PM, Gerard <[EMAIL PROTECTED]> wrote:
> > On Sun, 3 Feb 2008 15:00:36 +0530
> > "Venkatesh K" <[EMAIL PROTECTED]> wrote:
> >
> > > I did try that too! Still same problem.
> >
> > From the FreeBSD manual:
> >
> > 23.4.14.6. What do I do if something goes wrong?
> >
> > Make absolutely sure your environment has no extraneous cruft from
> > earlier builds. This is simple enough.
> > # chflags -R noschg /usr/obj/usr
> > # rm -rf /usr/obj/usr
> > # cd /usr/src
> > # make cleandir
> > # make cleandir
> >
>
> I had tried cleaning build tree as described above and building again.
> It was of no help.

Here are the steps I followed.

1. Cleaned up using following script clean.sh

--------------------------------------------------------------------------
chflags -R noschg /usr/obj/usr
rm -rf /usr/obj/usr
cd /usr/src
make cleandir
make cleandir
--------------------------------------------------------------------------
2. Cvsup latest sources using cvsup -g -L 2 /etc/supfile (attached).

Build fails while compiling /usr/src/sbin/gbde/gbde.c.

--------------------------------------- error.log --------------------------
cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/sbin/fsdb/../fsck_ffs/utilities.c

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c /usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_subr.c

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/fsdb/../fsck_ffs
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k
-Wno-uninitialized -c
/usr/src/sbin/fsdb/../../sys/ufs/ffs/ffs_tables.c

(cd /usr/src/rescue/rescue/../../sbin/fsirand &&  make -DRESCUE
CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/fsirand/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/fsirand/
fsirand.o)

rm -f .depend

mkdep -f .depend -a    -DRESCUE /usr/src/sbin/fsirand/fsirand.c

echo fsirand: /usr/obj/usr/src/tmp/usr/lib/libc.a
/usr/obj/usr/src/tmp/usr/lib/libutil.a >> .depend

cc -O2 -fno-strict-aliasing -pipe  -DRESCUE  -c /usr/src/sbin/fsirand/fsirand.c

(cd /usr/src/rescue/rescue/../../sbin/gbde &&  make -DRESCUE
CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/gbde/ depend && make
-DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/gbde/ gbde.o
template.o rijndael-alg-fst.o rijndael-api-fst.o sha2.o g_bde_lock.o)

file2c 'const char template[] = {' ',0};'  <
/usr/src/sbin/gbde/template.txt > template.c

rm -f .depend

mkdep -f .depend -a    -I/usr/src/sbin/gbde/../../sys -DRESCUE
/usr/src/sbin/gbde/gbde.c template.c
/usr/src/sbin/gbde/../../sys/crypto/rijndael/rijndael-alg-fst.c
/usr/src/sbin/gbde/../../sys/crypto/rijndael/rijndael-api-fst.c
/usr/src/sbin/gbde/../../sys/crypto/sha2/sha2.c
/usr/src/sbin/gbde/../../sys/geom/bde/g_bde_lock.c

echo gbde: /usr/obj/usr/src/tmp/usr/lib/libc.a
/usr/obj/usr/src/tmp/usr/lib/libmd.a
/usr/obj/usr/src/tmp/usr/lib/libutil.a
/usr/obj/usr/src/tmp/usr/lib/libgeom.a >> .depend

cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/gbde/../../sys
-DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
-Wshadow -Wcast-align -Wunused-parameter -c /usr/src/sbin/gbde/gbde.c

/usr/src/sbin/gbde/gbde.c: In function `g_read_data':

/usr/src/sbin/gbde/gbde.c:164: warning: implicit declaration of function `read'

/usr/src/sbin/gbde/gbde.c: In function `setup_passphrase':

/usr/src/sbin/gbde/gbde.c:216: warning: implicit declaration of function `close'

/usr/src/sbin/gbde/gbde.c: In function `cmd_nuke':

/usr/src/sbin/gbde/gbde.c:391: warning: implicit declaration of function `write'

/usr/src/sbin/gbde/gbde.c: In function `cmd_init':

/usr/src/sbin/gbde/gbde.c:556: warning: implicit declaration of
function `unlink'

/usr/src/sbin/gbde/gbde.c: In function `main':

/usr/src/sbin/gbde/gbde.c:801: warning: implicit declaration of
function `getopt'

/usr/src/sbin/gbde/gbde.c:804: error: `optarg' undeclared (first use
in this function)

/usr/src/sbin/gbde/gbde.c:804: error: (Each undeclared identifier is
reported only once

/usr/src/sbin/gbde/gbde.c:804: error: for each function it appears in.)

*** Error code 1



Stop in /usr/src/sbin/gbde.

*** Error code 1



Stop in /usr/obj/usr/src/rescue/rescue.

*** Error code 1



Stop in /usr/src/rescue/rescue.

*** Error code 1



Stop in /usr/src/rescue.

*** Error code 1



Stop in /usr/src.

*** Error code 1



Stop in /usr/src.

*** Error code 1



Stop in /usr/src.
--------------------------------------------- End error.log
-------------------------------------

I hope the above info is sufficient for helping me out.

Thanks,

-- 
Venkatesh. K

Attachment: supfile
Description: Binary data

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to