ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] vim-4:7.0.122-alt1: rebuild failed
Date: Tue, 17 Oct 2006 18:20:19 +0400
Message-ID: <20061017142019.GP8037@localhost.localdomain> (raw)
In-Reply-To: <20061017133855.GM7351@immo.ru>

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

On Tue, Oct 17, 2006 at 05:38:55PM +0400, Alexey I. Froloff wrote:
> * Alexey Tourbin <at@> [061017 17:37]:
> > > > > if_perl.c:799: error: static declaration of 'XS_VIM_Msg' follows non-static declaration
> > > > > if_perl.xs:750: error: previous declaration of 'XS_VIM_Msg' was here
> > > > > if_perl.c:840: error: static declaration of 'XS_VIM_SetOption' follows non-static declaration
> > > > > if_perl.xs:751: error: previous declaration of 'XS_VIM_SetOption' was here
> > > > ...
> > > > > if_perl.c:1459: error: static declaration of 'XS_VIBUF_Append' follows non-static declaration
> > > > > if_perl.xs:767: error: previous declaration of 'XS_VIBUF_Append' was here
> > > > Ой, аштойта???
> > > Боюсь что я виноват.
> > Но исправлять придется тебе. :)
> Как?  И что сказать апстриму?

В перле есть генератор сишного кода из *.xs файлов, типа препроцессор,
называется xsubpp, он же ExtUtils::ParseXS.  В 99% случаев все
функции-генераты (то есть с префиксом XS_$module_*; кроме одной, которая
называется boot_$module) не используются за пределами сгенеренного
сишного файла.  В общем я сделал все XS_* функции-генераты static по
умолчанию.

Варианты решения:
1) export XSUBPP_NO_STATIC_XS=1
2) подправить или убить опережающие определения

В твоем случае можно именно что убить, потому что они не нужны.

--- if_perl.xs-	2006-10-17 14:17:17 +0000
+++ if_perl.xs	2006-10-17 14:18:20 +0000
@@ -747,6 +747,7 @@ err:
     }
 }
 
+#if 0
 XS(XS_VIM_Msg);
 XS(XS_VIM_SetOption);
 XS(XS_VIM_DoCommand);
@@ -765,6 +766,7 @@ XS(XS_VIBUF_Get);
 XS(XS_VIBUF_Set);
 XS(XS_VIBUF_Delete);
 XS(XS_VIBUF_Append);
+#endif
 XS(boot_VIM);
 
     static void

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

      parent reply	other threads:[~2006-10-17 14:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-17 12:55 ` Alexey I. Froloff
2006-10-17 13:20   ` Alexey Tourbin
2006-10-17 13:35     ` Alexey Tourbin
2006-10-17 13:38       ` Alexey I. Froloff
2006-10-17 13:47         ` Alexey I. Froloff
2006-10-17 14:32           ` Alexey Tourbin
2006-10-17 14:20         ` Alexey Tourbin [this message]

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=20061017142019.GP8037@localhost.localdomain \
    --to=at@altlinux.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