Skip to contentSkip to conversation

problems compiling

DISCUSSION Rodrigo Moya 2 participants 3 messages Apr 13, 2000 1 message not in the archive Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

SGkgYWxsIQ0KDQpBZnRlciBwdXR0aW5nIHRoZSBjb21wYXRtYWMuaCBmaWxlLCBJJ3ZlIHN0 aWxsIHByb2JsZW1zIGNvbXBpbGluZzoNCg0KMSAtIEkgaGFkIHRvIGNvbW1lbnQgdGhlIGRl ZmluaXRpb24gb2YgREVDTEFSRV9XQUlUUVVFVUUgaW4gbXRkLmgsIGFzDQppdCdzIGFsc28g ZGVmaW5lZCBpbiBjb21wYXRtYWMuaC4gQ29tbWVudGluZyB0aGUgc2FtZSBsaW5lIGluDQpj b21wYXRtYWMuaCBkaWQgbm90IGNvbXBpbGUuDQoNCjIgLSBDb21waWxlciBjb21wbGFpbmVk IGFib3V0ICdhZGQnIG5vdCBiZWluZyBhIG1lbWJlciBvZiBtdGRfbm90aWZpZXIuDQpBbmQg aXQgd2FzIHJpZ2h0LCBtdGQuaCBjb250YWluZWQgdGhlIGZvbGxvd2luZzoNCg0Kc3RydWN0 IG10ZF9ub3RpZmllciB7DQogICAgdm9pZCAoKmZ1bmMpKHN0cnVjdCBtdGRfaW5mbyAqbXRk LCBpbnQgbnVtKTsNCiAgICBzdHJ1Y3QgbXRkX25vdGlmaWVyICpuZXh0Ow0KfTsNCg0KU28s IEkgZ3Vlc3NlZCBJIGhhZCB0byBjaGFuZ2UgaXQgdG86DQoNCnN0cnVjdCBtdGRfbm90aWZp ZXIgew0KICAgIHZvaWQgKCphZGQpKHN0cnVjdCBtdGRfaW5mbyAqbXRkKTsNCiAgICB2b2lk ICgqcmVtb3ZlKShzdHJ1Y3QgbXRkX2luZm8gKm10ZCk7DQogICAgc3RydWN0IG10ZF9ub3Rp ZmllciAqbmV4dDsNCn07DQoNCjMgLSBUaGVuLCBpbiBkb2MyMDAwLmMsIGl0IGNvbXBsYWlu ZWQgYWJvdXQgQ0RTTkNvbnRyb2wgYW5kDQpDRFNOX0NUUkxfRlJfQiBub3QgYmVpbmcgZGVm aW5lZC4gTG9va2luZyBhdCB0aGUgaGVhZGVyIGZpbGVzDQooZG9jMjAwMC5oKSwgSSBzYXcg dGhhdCBpdCdzIENTRE5Db250cm9sIGFuZCBDRFNOX0NUUkxfRlJfQi4gU28gSQ0KY2hhbmdl ZCBhbGwgdGhpcy4NCg0KNCAtIEFnYWluIGluIGRvYzIwMDAuYywgZG9jLT5uZXh0ZG9jIChz dHJ1Y3QgRGlza09uQ2hpcCAqZG9jKSBkb2VzIG5vdA0KZXhpc3QuIEkgY291bGRuJ3QgZmln dXJlIG91dCB0aGlzIG9uZS4NCg0KSSBzdXBwb3NlIGFsbCB0aGVzZSBlcnJvcnMgYXJlIGJl Y2F1c2UgSSB0b29rIHRoZSBzb3VyY2VzIGZyb20gQ1ZTLCBhbmQNCnRoYXQgdGhpcyBpcyBk ZXZlbG9wbWVudCBjb2RlLg0KDQpDaGVlcnMNCg0K

To unsubscribe, send "unsubscribe mtd" to [email protected]

#1 lore raw

_Please_ turn off the base64 :)

Quoted 4 lines · [email protected] said:

1 - I had to comment the definition of DECLARE_WAITQUEUE in mtd.h, as
it's also defined in compatmac.h.

2 - Compiler complained about 'add' not being a member of mtd_notifier.

You say later that you're using CVS. DECLARE_WAITQUEUE isn't in my version, and the add/remove members of the struct mtd_notifier _are_:

/* $Id: mtd.h,v 1.8 2000/03/31 14:40:42 dwmw2 Exp $ */

Quoted 5 lines

3 - Then, in doc2000.c, it complained about CDSNControl and CDSN_CTRL_FR_B not being defined.

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

For each of these two, I changed the include files at the same time as I changed the C files. It's OK in the current CVS:

/* $Id: doc2000.h,v 1.4 2000/03/31 14:40:42 dwmw2 Exp $ */

Quoted 2 lines · [email protected] said:

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

You seem to have an old copy of the include directory. Try 'cvs update -A'

Note that the IO request handling in the current NFTL code (v1.26) is not working. You need to revert to v1.25 ('cvs update -r 1.25 nftl.c'). Alternatively, you could fix it :)

--
dwmw2

To unsubscribe, send "unsubscribe mtd" to [email protected]

#3 lore raw
In reply to a message not in the archive
Quoted 6 lines · David Woodhouse
Quoted 1 line · [email protected] said:

'cvs update -A' and 'cvs -z3 diff' do nothing, just:

Very very odd. Can you try checking it out again from scratch?

Yes, I've checked it out again, and now, at least the mtd.h is correct. I'll look at the other ones. But what could have happened?

Quoted 8 lines
Quoted 2 lines · [email protected] said:

What is not working? I don't know if I'll be able to do it, but as I really need the drivers, I can have a try.

It's the blkdev_dequeue_request and nftl_end_request code that's not working somehow. I need to look more closely at some other block devices and work out what it's doing wrong.

I'll have a look at it!

Quoted 2 lines

Actually, 1.24 is the last version which worked.

To unsubscribe, send "unsubscribe mtd" to [email protected]