[devel] bacula-2.2.5-alt2: i586 rebuild failed
Slava Semushin
=?iso-8859-1?q?slava=2Esemushin_=CE=C1_gmail=2Ecom?=
Пт Ноя 2 09:55:20 MSK 2007
2007/11/2, Vitaly Kuznetsov <vitty / altlinux.ru>:
[...]
> attribs.c: In function 'void encode_stat(char*, FF_PKT*, int)':
> attribs.c:211: error: 'struct stat' has no member named 'st_flags'
209 #ifdef HAVE_CHFLAGS
210 /* FreeBSD function */
211 p += to_base64((int64_t)statp->st_flags, p); /* output st_flags */
212 #else
213 p += to_base64((int64_t)0, p); /* output place holder */
214 #endif
> attribs.c: In function 'int decode_stat(char*, stat*, int32_t*)':
> attribs.c:306: error: 'struct stat' has no member named 'st_flags'
> attribs.c:306: error: 'struct stat' has no member named 'st_flags'
> attribs.c:308: error: 'struct stat' has no member named 'st_flags'
305 #ifdef HAVE_CHFLAGS
306 plug(statp->st_flags, val);
307 } else {
308 statp->st_flags = 0;
309 #endif
> attribs.c: In function 'bool set_attributes(JCR*, ATTR*, BFILE*)':
> attribs.c:480: error: 'struct stat' has no member named 'st_flags'
> attribs.c:480: error: 'chflags' was not declared in this scope
472 #ifdef HAVE_CHFLAGS
473 /*
474 * FreeBSD user flags
475 *
476 * Note, this should really be done before the utime() above,
477 * but if the immutable bit is set, it will make the utimes()
478 * fail.
479 */
480 if (chflags(attr->ofname, attr->statp.st_flags) < 0 && my_uid == 0) {
481 berrno be;
482 Jmsg2(jcr, M_ERROR, 0, _("Unable to set file flags %s: ERR=%s\n"),
483 attr->ofname, be.bstrerror());
484 ok = false;
485 }
486 #endif
Надо разобраться почему ваш код собирается с -DHAVE_CHFLAGS
[...]
--
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru
Подробная информация о списке рассылки Devel