Re: problems compiling

Rodrigo Moya
2000-04-13T07:43:21Z

Hi all!

After putting the compatmac.h file, I've still problems compiling:

1 - I had to comment the definition of DECLARE_WAITQUEUE in mtd.h, as
it's also defined in compatmac.h. Commenting the same line in
compatmac.h did not compile.

2 - Compiler complained about 'add' not being a member of mtd_notifier.
And it was right, mtd.h contained the following:

struct mtd_notifier {
void (*func)(struct mtd_info *mtd, int num);
struct mtd_notifier *next;
};

So, I guessed I had to change it to:

struct mtd_notifier {
void (*add)(struct mtd_info *mtd);
void (*remove)(struct mtd_info *mtd);
struct mtd_notifier *next;
};

3 - Then, in doc2000.c, it complained about CDSNControl and
CDSN_CTRL_FR_B not being defined. Looking at the header files
(doc2000.h), I saw that it's CSDNControl and CDSN_CTRL_FR_B. So I
changed all this.

4 - Again in doc2000.c, doc->nextdoc (struct DiskOnChip *doc) does not
exist. I couldn't figure out this one.

I suppose all these errors are because I took the sources from CVS, and
that this is development code.

Cheers

N‹§²æìr¸›zÇ§véì¹»\x1c®&Þš×m¢f£¢·hšˆ§~¶y§h®