From: Vladimir Lettiev <crux@syktsu.ru> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] q: проблемы со сборкой необычной программы Date: Tue, 26 Oct 2004 18:13:27 +0400 Message-ID: <417E5B87.20506@syktsu.ru> (raw) собираю в пакет tcng ( http://tcng.sourceforge.net ). хочется опробовать эту систему контроля трафика. Программа состоит из двух компонент tcng и tcsim. Первая собственно компилятор правил для tc - с ним проблем нет, а вот tcsim - эммулятор для проверки работы создаваемых правил - самый интересный компонент и с ним проблемы. Необычность tcsim в том, что он требует исходники ядра и исходники iproute2. Такие требования заставили поломать голову как их ему обеспечить. В Buildreq указал kernel-source-2.4.27, исходники iproute2 вместе с патчами вытащил из соотвествующего srpm и сложил их к tcsim. Но сборка не получилась, проблему создают патчи, а точнее iproute2-2.4.7-alt-fixes.patch: .... gcc -pipe -Wall -O2 -march=i586 -mcpu=i686 -Wstrict-prototypes -Werror -D_GNU_SOURCE -include ../include-glibc/glibc-bugs.h -I/usr/include/db4 -I/home/crux/RPM/BUILD/tcng/tcsim/klib/include -I../include -DRESOLVE_HOSTNAMES -c -o ll_types.o ll_types.c In file included from /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/netdevice.h:11, from ll_types.c:23: /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/in.h:8: error: redefinition of `struct in_addr' /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/in.h:16: error: redefinition of `struct sockaddr_in' /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/in.h:27: error: conflicting types for `IPPROTO_TCP' /usr/include/netinet/in.h:43: error: previous declaration of `IPPROTO_TCP' /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/in.h:28: error: conflicting types for `IPPROTO_UDP' /usr/include/netinet/in.h:49: error: previous declaration of `IPPROTO_UDP' /home/crux/RPM/BUILD/tcng/tcsim/klib/include/linux/in.h:29: error: conflicting types for `IPPROTO_ESP' /usr/include/netinet/in.h:65: error: previous declaration of `IPPROTO_ESP' .... Без этого патча (и ещё одного зависимого) сборка проходит, но что получилось в итоге остаётся догадываться. В чём тут может быть проблема? И ещё задаюсь вопросами: может ли таскать пакет с собой исходники другого пакета? Как поступать с исходниками ядра: требуется ли наложение кучи имеющихся патчей на него или "так сойдёт"? Какие в итоге должны быть "правильные" зависимости (жёсткие к версии ядра и iproute2 или вообще от них независящие) у такого пакета? -- С уважением, Владимир Леттиев aka crux <crux@syktsu.ru>
next reply other threads:[~2004-10-26 14:13 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-26 14:13 Vladimir Lettiev [this message] 2004-10-26 17:49 ` [devel] q: ÐÒÏÂÌÅÍÙ ÓÏ ÓÂÏÒËÏÊ ÎÅÏÂÙÞÎÏÊ ÐÒÏÇÒÁÍÍÙ Volkov Serge
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=417E5B87.20506@syktsu.ru \ --to=crux@syktsu.ru \ --cc=devel@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 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