ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Vitaly Kuznetsov <vitty@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] bacula-2.2.5-alt2: i586 rebuild failed
Date: Fri, 02 Nov 2007 10:01:26 +0300
Message-ID: <472ACB46.5050404@altlinux.ru> (raw)
In-Reply-To: <75e139a00711012355qa4172deqdd7ffcc817fe99e4@mail.gmail.com>

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. Соответственно считается, что она есть. Я конечно
сейчас оторву, но интересно таки что у нас изменилось.


  reply	other threads:[~2007-11-02  7:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-02  6:37 ` Vitaly Kuznetsov
2007-11-02  6:47   ` Slava Semushin
2007-11-02  6:56     ` Vitaly Kuznetsov
2007-11-02  6:55   ` Slava Semushin
2007-11-02  7:01     ` Vitaly Kuznetsov [this message]
2007-11-02  8:56       ` Slava Semushin
2007-11-02  9:05         ` Kirill A. Shutemov
2007-11-02 10:35           ` Dmitry V. Levin
2007-11-04  0:27           ` Pavlov Konstantin
2007-11-04  2:40             ` Dmitry V. Levin
2007-11-04 10:27             ` Sergey Vlasov
2007-11-04 12:28               ` Pavlov Konstantin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=472ACB46.5050404@altlinux.ru \
    --to=vitty@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git