<div class="gmail_quote">2009/3/15 Dmitry V. Levin <span dir="ltr"><<a href="mailto:ldv@altlinux.org" target="_blank">ldv@altlinux.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div>On Mon, Mar 09, 2009 at 01:58:31PM +0200, Kirill A. Shutemov wrote:<br>
> 2009/3/9 Денис Смирнов <<a href="mailto:mithraen@altlinux.ru" target="_blank">mithraen@altlinux.ru</a>><br>
> > On Mon, Mar 09, 2009 at 11:43:05AM +0200, Kirill A. Shutemov wrote:<br>
> ><br>
> > KAS> Я разбирал случай с astmanproxy.<br>
> > KAS> Похоже это последствия коммита e59afe6a21. Т.е. теперь подключение<br>
> > KAS> <signal.h> опосредовано<br>
> > KAS> влечёт подключение <asm/posix_types.h>, который несовместим с -I-.<br>
> > KAS> Считаю, что нужно фиксить пакеты, которые используют -I-.<br>
> ><br>
> > Как фиксить?<br>
><br>
> Вечером постараюсь посмотреть.<br>
<br>
</div></div>Вечер слегка затянулся? ;)</blockquote><div><br>Извиняюсь.<br><br>Для astmanproxy фикс, похоже, будет выглядеть так:<br><br>diff --git a/Makefile b/Makefile<br>index 7627d50..476ca0c 100644<br>--- a/Makefile<br>
+++ b/Makefile<br>@@ -48,7 +48,6 @@ ifeq (${OSARCH},Darwin)<br> MKTEMP=/usr/bin/mktemp<br> else<br> #These are used for all but Darwin<br>- CFLAGS+=-I-<br> LIBS+=-ldl -pthread<br> ASTLINK=-Wl,-E<br> SOLINK=-shared -Xlinker -x<br>
diff --git a/astmanproxy.spec b/astmanproxy.spec<br>index c14d2a5..f9f9672 100644<br>--- a/astmanproxy.spec<br>+++ b/astmanproxy.spec<br>@@ -35,7 +35,7 @@ Requires(pre): asterisk-base >= 0.6-alt1<br> %patch4 -p1<br> subst 's!/usr/lib!%_libdir!' Makefile src/dlfcn.c<br>
%build<br>-CFLAGS="%optflags -fPIC -Isrc/include -I/usr/include/openssl -Wall -D_REENTRANT"<br>+CFLAGS="%optflags -fPIC -iquote src/include -I/usr/include/openssl -Wall -D_REENTRANT"<br> subst "s!^CFLAGS:=.*!CFLAGS:=$CFLAGS!" Makefile<br>
%make_build<br> %install<br><br>Для gcc, если я не ошибаюсь достатачно убрать -I- из INCLUDES в файле gcc/gcc/ada/Makefile.in<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
gcc/ada/convert_addresses.c всё ещё не собирается:<br>
<br>
/usr/src/RPM/BUILD/gcc-4.3.2-20081105/obj-i586-alt-linux/./gcc/xgcc -B/usr/src/RPM/BUILD/gcc-4.3.2-20081105/obj-i586-alt-linux/./gcc/ -B/usr/i586-alt-linux/bin/ -B/usr/i586-alt-linux/lib/ -isystem /usr/i586-alt-linux/include -isystem /usr/i586-alt-linux/sys-include -c -DIN_GCC `echo -g -O2 -fPIC |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I- -I. -I.. -I/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada -I/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/.. -I/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/../config -I/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/../../include /usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/convert_addresses.c \<br>
-o convert_addresses.o<br>
cc1: note: obsolete option -I- used, please use -iquote instead<br>
In file included from /usr/src/RPM/BUILD/gcc-4.3.2-20081105/obj-i586-alt-linux/./gcc/include-fixed/asm/posix_types.h:14,<br>
from /usr/include/linux/posix_types.h:47,<br>
from /usr/include/linux/types.h:5,<br>
from /usr/include/asm/sigcontext.h:5,<br>
from /usr/include/bits/sigcontext.h:28,<br>
from /usr/include/signal.h:333,<br>
<div> from /usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/convert_addresses.c:34:<br>
/usr/include/asm/posix_types.h:2:30: error: posix_types_32.h: No such file or directory<br>
/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/convert_addresses.c: In function 'convert_addresses':<br>
</div>/usr/src/RPM/BUILD/gcc-4.3.2-20081105/gcc/ada/convert_addresses.c:125: warning: ignoring return value of 'write', declared with attribute warn_unused_result<br>
make[7]: *** [convert_addresses.o] Error 1<br>
make[7]: Leaving directory `/usr/src/RPM/BUILD/gcc-4.3.2-20081105/obj-i586-alt-linux/gcc/ada/rts'<br>
make[6]: Leaving directory `/usr/src/RPM/BUILD/gcc-4.3.2-20081105/obj-i586-alt-linux/gcc/ada'<br>
make[6]: *** [gnatlib] Error 2</blockquote><div><br><br> <br></div></div>