From: "Евгений Терешков" <evg-krsk@yandex.ru> To: devel@lists.altlinux.org Subject: [devel] проверка IPv6 в ./configure Date: Wed, 08 Oct 2014 12:24:56 +0800 Message-ID: <m38ukr6vdz.fsf@thinkpad.evg-krsk.dyndns.org> (raw) [-- Attachment #1: Type: text/plain, Size: 2142 bytes --] День добрый. Помогите пожалуйста понять, почему программа (конкретно bwping, тег 1.7-alt1 у меня в гите) не может при вызове ./configure определить поддержку IPv6. В итоговом config.log про эту проверку говорят так: =8<==========================================================================8<= configure:4373: checking for IPv6 support configure:4401: x86_64-alt-linux-gcc -o conftest -pipe -Wall -g -O2 conftest.c >&5 conftest.c:32:1: warning: return type defaults to 'int' [-Wreturn-type] main() ^ conftest.c: In function 'main': conftest.c:37:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] exit(fd >= 0 ? 0 : 1); ^ conftest.c:37:5: warning: incompatible implicit declaration of built-in function 'exit' conftest.c:35:25: warning: unused variable 'foo' [-Wunused-variable] struct sockaddr_in6 foo; ^ configure:4401: $? = 0 configure:4401: ./conftest configure:4401: $? = 1 configure: program exited with status 1 configure: failed program was: ... configure:4412: result: no =8<==========================================================================8<= сама программа-тест на C тоже приведена в config.log (во вложении). Мне сначала показалось, что такой эффект может давать то, что на моей машине модуль ipv6 загружен, но выключен параметрами "ipv6 disable_ipv6=1 disable=1", так что попробовал собрать в сборочнице - результат тот же (только там я config.log не могу посмотреть). Пошукал по другим программам - вроде бы многие определяют наличие ipv6 похожим образом, там это работает. Не понимаю. Кто виноват и что можно поделать? [-- Attachment #2: conftest.c --] [-- Type: text/plain, Size: 873 bytes --] /* confdefs.h */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "" #define PACKAGE "bwping" #define VERSION "1.7" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1 #define HAVE_STDLIB_H 1 /* end confdefs.h. */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> /* Make sure the definitions for AF_INET6 and struct sockaddr_in6 * are defined, and that we can actually create an IPv6 TCP socket. */ main() { int fd; struct sockaddr_in6 foo; fd = socket(AF_INET6, SOCK_STREAM, 0); exit(fd >= 0 ? 0 : 1); } [-- Attachment #3: Type: text/plain, Size: 109 bytes --] -- С уважением, Терешков Евгений. Jabber ID: evg@altlinux.org, evg_krsk@jabber.ru
next reply other threads:[~2014-10-08 4:24 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-10-08 4:24 Евгений Терешков [this message] 2014-10-08 6:12 ` Sergey Y. Afonin 2014-10-08 13:15 ` Mikhail Efremov 2014-10-09 6:01 ` Sergey Y. Afonin 2014-10-08 15:50 ` Евгений Терешков
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=m38ukr6vdz.fsf@thinkpad.evg-krsk.dyndns.org \ --to=evg-krsk@yandex.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