[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:15083] Re: [debian-users:32354] Bug#JP/1545:xpbiff can not build on alpha
ä½é‡Žï¼ 浜æ¾ã€ç¶šå ±ã§ã™ã€‚
In <20020504000718K.kgh12351@xxxxxxxxxxxxxxxxxxxx>,
on "Sat, 4 May 2002 00:19:03 +0900', I wrote:
> gotom> 何㋠gcc ã®ã‚ªãƒ—ションやã€include ãªã©ã§å›žé¿ã™ã‚‹æ–¹æ³•ãŒã‚ã‚‹ã‹ã‚‚
> gotom> ã—ã‚Œã¾ã›ã‚“ãŒã€LP64 を考ãˆã¦ã„ãªã„å…ƒã®ã‚½ãƒ¼ã‚¹ã‚’ç›´ã™ã®ãŒæ£è§£ã‹ã¨ã€‚
>
> ãれ㯠X11/Intrinsic.h ã‚’ä¿®æ£ã—ãªã„ã¨ã„ã‘ãªã„ã€ã¨ã„ã†æ„味ã§ã—ょã†ã‹ã€‚
>
> 試ã—ã« xpbiff.c ã®ã»ã†ã‚’
(ä¸ç•¥)
> ã®ã‚ˆã†ã«ã—ã¦ã¿ã¾ã—ãŸãŒã€ã‚„ã¯ã‚Š warning ãŒå‡ºã¦ã—ã¾ã„ã¾ã™ã€‚
ã‚ã‚Œã‹ã‚‰ xcalendar ã®ã‚½ãƒ¼ã‚¹ã‚’眺ã‚ã¦ã¿ã¦ã€ã‚¢ãƒ—リケーションãŒ
使ã†ãƒªã‚½ãƒ¼ã‚¹ã‚’集ã‚ã¦æ§‹é€ 体を定義ã—ã€ãã®ä¸ã§ XtOffset() ã‚’
利用ã—㦠resource_offset を渡ã—ã¦ã„ã‚‹ã“ã¨ãŒã‚ã‹ã‚Šã¾ã—ãŸã€‚
試ã—ã« xpbiff.c ã®ã»ã†ã‚‚åŒæ§˜ãªæ–¹æ³•ã§æ§‹é€ 体を定義ã—ã¦
#define offset(field) XtOffset(struct _appRes *, field)
static XtResource resources[] = {
{"arrivePixmap", "ArrivePixmap", RPixmap2, sizeof(Pixmap2),
offset(arrivePixmap), XtRString, "None"},
ã—ã¦ã¿ãŸã¨ã“ã‚ã€ã¨ã‚Šã‚ãˆãšã‚³ãƒ³ãƒ‘イルã¯ã§ãã‚‹ã“ã¨ã‚’確èªã—ã¾ã—ãŸã€‚
(å˜ã«ã“ã“ã ã‘変更ã—ãŸã®ã§ã€å®Ÿè¡Œæ™‚ã« seg fault ã—ã¾ã™ãŒ)
ã“ã‚Œã§è§£æ±ºã®æ–¹å‘性ã¯ã¤ã‹ã‚ãŸã®ã§ã€ã‚ã¨ã¯æ™‚間を見ã¤ã‘ã¦
ä»–ã®éƒ¨åˆ†ã‚’ã“ã‚Œã«åˆã‚ã›ã¦ã¼ã¡ã¼ã¡ä¿®æ£ã—ã¦ã„ãã“ã¨ã«ã—ã¾ã™ã€‚
御å”力ã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã—ãŸã€‚
--
# (ã‚ãŸã—ã®ãŠã†ã¡ã¯æµœæ¾å¸‚ã€ã‚¢ã‚«ã‚¦ãƒŸã‚¬ãƒ¡ã®ãµã‚‹ã•ã¨ã®è¡—)
<kgh12351@xxxxxxxxxxx> : Taketoshi Sano (ä½é‡Žã€€æ¦ä¿Š)