From: Andrei Bulava <abulava@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] PAM_MOUNT
Date: Wed, 27 Apr 2005 12:15:49 +0300
Message-ID: <426F5845.7050207@altlinux.ru> (raw)
In-Reply-To: <899701363.20050427112444@mail.ru>
Anton Gorlov aka stalker wrote:
> Здравствуйте, Andrew.
>
> Вы писали 27 апреля 2005 г., 11:20:59:
>
>
>>>Так. собиратся не хотел. Судя по тому, что по всему не хватает
>>>какого-то пакета. Только вот какого?
>>
>>Нет, не поэтому.
>
> это хуже.
>
>
>
>>>make[1]: Entering directory
>>>`/home/stalker/RPM/BUILD/pam_mount-0.9.22/src'
>>>if /bin/sh ../libtool --tag=CC --mode=compile gcc
>>>-DHAVE_CONFIG_H -I. -I. -I.. -I./../include
>>>-I./../include-fmt_ptrn -g -Werror -I/usr/include/glib-2.0
>>
>> ^^^^^^^
>>[skip]
>>
>>>crypto.c: In function `hash_authtok':
>>>crypto.c:75: warning: implicit declaration of function `memcmp'
>>>crypto.c:82: warning: implicit declaration of function `strlen'
>>>crypto.c: In function `decrypted_key':
>>>crypto.c:130: warning: implicit declaration of function `memset'
>>>crypto.c:133: warning: implicit declaration of function
>>>`SSL_load_error_strings'
>
>
>>Из-за -Werror эти warning'и превращаются в error'ы, и сборка
>>прерывается
>
>
> То есть по идее достаточно убрать -Werror? Только вот в каком файле
> его убирать?
"Не давайте больному костыли, лучше научите его ходить" (с) А без
красивых слов - надо просто править исходные коды и отсылать патчи в
upstream.
Может, я слишком поверхностно на всё смотрю, но memcmp(3) ясно указывает:
SYNOPSIS
#include <string.h>
int memcmp(const void *s1, const void *s2, size_t n);
Никакого упоминания '#include <string.h>' в исходном коде crypto.c я не
нашёл. gcc вежливо, но настойчиво просит не полагаться на implicit
declaration of function. "Ибо нефиг" (с).
P.S. Я ни разу не программист на C ;-) Хотя практика показывает, что
мантейнеры зачастую знают предмет программирования лучше самих
программистов.
--
// AB1002-UANIC
next prev parent reply other threads:[~2005-04-27 9:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 6:58 Anton Gorlov aka stalker
2005-04-27 7:20 ` Andrew Borodin
2005-04-27 7:24 ` Re[2]: " Anton Gorlov aka stalker
2005-04-27 9:02 ` Andrew Borodin
2005-04-27 9:15 ` Andrei Bulava [this message]
2005-04-27 9:25 ` Dmitry V. Levin
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=426F5845.7050207@altlinux.ru \
--to=abulava@altlinux.ru \
--cc=sisyphus@altlinux.ru \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git