Witam ... się nie udaje. if i486-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/i386 -I./linux/i386 -Ilinux -I./linux -Wall -pipe -Os -march=i486 -falign-loops=0 -falign-jumps=0 -falign-functions=0 -mno-align-double -MT resource.o -MD -MP -MF ".deps/resource.Tpo" -c -o resource.o resource.c; \ then mv -f ".deps/resource.Tpo" ".deps/resource.Po"; else rm -f ".deps/resource.Tpo"; exit 1; fi resource.c:478: error: 'Q_SETUSE' undeclared here (not in a function) resource.c:480: error: 'Q_SETQLIM' undeclared here (not in a function) resource.c:481: error: 'Q_GETSTATS' undeclared here (not in a function) resource.c:482: error: 'Q_RSQUASH' undeclared here (not in a function)
Spowodowane jest to zmianą w /usr/include/sys/quota.h Teraz jest tak: #if _LINUX_QUOTA_VERSION < 2 # define Q_QUOTAON 0x0100 /* enable quotas */ # define Q_QUOTAOFF 0x0200 /* disable quotas */ # define Q_GETQUOTA 0x0300 /* get limits and usage */ # define Q_SETQUOTA 0x0400 /* set limits and usage */ # define Q_SETUSE 0x0500 /* set usage */ # define Q_SYNC 0x0600 /* sync disk copy of a filesystems # quotas */ # define Q_SETQLIM 0x0700 /* set limits */ # define Q_GETSTATS 0x0800 /* get collected stats */ # define Q_RSQUASH 0x1000 /* set root_squash option */ #else # define Q_SYNC 0x800001 /* sync disk copy of a filesystems # quotas */ # define Q_QUOTAON 0x800002 /* turn quotas on */ # define Q_QUOTAOFF 0x800003 /* turn quotas off */ # define Q_GETFMT 0x800004 /* get quota format used on given # filesystem */ # define Q_GETINFO 0x800005 /* get information about quota files */ # define Q_SETINFO 0x800006 /* set information about quota files */ # define Q_GETQUOTA 0x800007 /* get user quota structure */ # define Q_SETQUOTA 0x800008 /* set user quota structure */ #endif a _LINUX_QUOTA_VERSION jest zdefiniowane na wartość 2 i Q_SETUSE itp nie są ustawiane. Jak to poprawnie poprawić ? najprościej dodać brakujące definicje do resource.c Pozdrawiam, -- Arkadiusz Patyk [areq(at)pld-linux.org] [http://rescuecd.pld-linux.org] [IRC:areq skype:arekpatyk GG:1383] [AP3-6BONE] [AP6067-RIPE] _______________________________________________ pld-devel-pl mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-pl
