ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Voinov <voins@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Проблемы с компиляцией в gcc3.3
Date: Thu, 12 Feb 2004 14:58:56 +0300
Message-ID: <20040212115856.GA7756@altlinux.ru> (raw)
In-Reply-To: <200402121349.16695.ilar@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]

Igor Tertishny wrote
> У меня напрочь отказывается собираться cdbakeoven с новым компилятором. 
> Впрочем, те же ошибки присланы мне роботом. 
> 
> In file included from /usr/include/linux/byteorder/little_endian.h:11,
>                  from /usr/include/asm/byteorder.h:65,
>                  from /usr/include/linux/cdrom.h:14,
>                  from CdboCDRom.cpp:34,
>                  from libcdboshared_la.all_cpp.cpp:4:
> /usr/include/linux/byteorder/swab.h: In function `const __u32 
> __fswab24(unsigned int)':
> /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
> within expressions
> /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
> within expressions
C99 не совместим с C++98. gcc3.3 более строг к соблюдению стандартов.
Не следует включать в программы на C++ исходники на C99.

В качстве workaround можно добавить в проект исходник на C, который
предоставит всей остальной программе интерфейс к тем частям ядра, которые
ей необходимы.

> Видимо, придется править сорцы. Меня смущает другое - ошибки указываются в 
> системных хидерах. Потому прошу подсказки в каком направлении рыть? Не 
> хотелось бы мне терять эту прогу, сам постоянно пользуюсь. Кстати, если брать 
> не правленный вариант сорцов (т.е. тот, где присутствует опция -ansi), то 
> ошибки получается несколько иные. В этом случае вообще выдается, что в 
> /usr/include/linux/byteorder/swab.h куча синтаксических ошибок. Где-то тут 
> что-то не то, коллеги... Вот я хочу дорыться где же именно.

-- 
Best Regards!           | "Sometimes you're the windshield
Alexey Voinov           |  Sometimes you're the bug..."
			|
voins@voins.program.ru
voins@altlinux.ru


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-02-12 11:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-12 11:49 Igor Tertishny
2004-02-12 11:56 ` Alexey I. Froloff
2004-02-12 11:58 ` Alexey Voinov [this message]
2004-02-13  9:11 ` [devel] " Michael Shigorin

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=20040212115856.GA7756@altlinux.ru \
    --to=voins@altlinux.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