ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] -Werror приводит к ошибкам в системных хедерах
@ 2009-01-05  9:36 Slava Semushin
  2009-01-05 12:33 ` Ivan A. Melnikov
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Slava Semushin @ 2009-01-05  9:36 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Здравствуйте!

Собираю новую версию mpdscribble. Включил --enable-werror и получаю:

gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include/libsoup-2.4
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I./src
-I./src/libmpdclient -DFILE_CONF='"/usr/local/etc/mpdscribble.conf"'
-Werror -pedantic-errors -DNDEBUG -Wall -Wextra
-Wno-deprecated-declarations -Wmissing-prototypes
-Wdeclaration-after-statement -Wshadow -Wpointer-arith
-Wstrict-prototypes -Wcast-qual -Wwrite-strings -g -O2 -MT conn.o -MD
-MP -MF .deps/conn.Tpo -c -o conn.o `test -f 'src/conn.c' || echo
'./'`src/conn.c
In file included from /usr/include/libsoup-2.4/libsoup/soup.h:30,
                 from src/conn.c:26:
/usr/include/libsoup-2.4/libsoup/soup-session-feature.h:21: error:
struct has no members
make[1]: *** [conn.o] Ошибка 1

Решил обойти эту ошибку, включив только нужные программе хедеры вместо
обобщающего soup.h

Далее:

In file included from /usr/include/sys/syslog.h:207,
                 from /usr/include/syslog.h:1,
                 from src/log.c:32:
/usr/include/bits/syslog.h: In function 'syslog':
/usr/include/bits/syslog.h:32: error: ISO C forbids 'return' with
expression, in function returning void
/usr/include/bits/syslog.h: In function 'vsyslog':
/usr/include/bits/syslog.h:48: error: ISO C forbids 'return' with
expression, in function returning void
make[1]: *** [log.o] Ошибка 1

А тут как быть?

Не хотелось бы отключать -Werror флаг, к тому же очень похоже, что у
апстримного автора всё собирается и с ним, а вот у нас почему-то нет.
СтОит ли вешать баги на эти хедеры или.. что делать вообщем?

Спасибо за внимание.

-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-03-09  8:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-05  9:36 [devel] -Werror приводит к ошибкам в системных хедерах Slava Semushin
2009-01-05 12:33 ` Ivan A. Melnikov
2009-01-05 12:50 ` Alexey I. Froloff
2009-01-05 13:24   ` Ivan A. Melnikov
2009-01-05 17:10 ` Dmitry V. Levin
2009-01-05 20:29   ` Slava Semushin
2009-01-05 21:41     ` Dmitry V. Levin
2009-03-09  8:40   ` Slava Semushin

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