[devel] bacula-2.2.5-alt2: i586 rebuild failed

Vitaly Kuznetsov =?iso-8859-1?q?vitty_=CE=C1_altlinux=2Eru?=
Пт Ноя 2 10:01:26 MSK 2007


Slava Semushin пишет:
> 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
> 
> [...]
> 
configure:27794: checking for chflags
configure:27851: gcc -o conftest -g -O2 -Wall   conftest.c -ldl  >&5
/usr/src/tmp/ccA223YL.o: In function `main':
/usr/src/RPM/BUILD/bacula-2.2.5/conftest.c:153: warning: warning:
chflags is not implemented and will always fail
configure:27857: $? = 0

warning, а не error. Соответственно считается, что она есть. Я конечно
сейчас оторву, но интересно таки что у нас изменилось.



Подробная информация о списке рассылки Devel