[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:32678] Bug#JP/1545: xpbiff can not build on alpha



佐野@浜松です。

 debian-devel@debian.or.jp に振ります (JP BTS にも CC:)

In <20020414085332.4ABDF8DD6A@xxxxxxxxxxxxxxxxxxx>,
  on "Sun, 14 Apr 2002 18:03:03 +0900',
 ISHIKAWA Mutsumi <ishikawa@xxxxxxxxxxx> さん wrote:

> Package: xpbiff
> Version: 1.27-9
> Severity: important
> 
>  alpha 上で build できません。

エラーログ中に疑問な点があるので、知っている人がいたら
教えてください。

以下の警告は、i386 上で build した際には出てきません。
 (他の箇所は i386 上でも現れたので、手元で修正してあります。
  一部は -10 でも修正済みです。)

これ以外の警告を潰したバージョンを -11 として escher.debian.org の
 ~sano/testbuild/xpbiff に送って試してみたのですが、やはりこれらの
警告 (行番号は違いますが) が出て、build できませんでした。

> xpbiff.c:341: initializer element is not computable at load time
> xpbiff.c:341: (near initialization for `resources[0].resource_offset')
> xpbiff.c:343: initializer element is not computable at load time
> xpbiff.c:343: (near initialization for `resources[1].resource_offset')
> xpbiff.c:345: initializer element is not computable at load time
> xpbiff.c:345: (near initialization for `resources[2].resource_offset')
> xpbiff.c:347: initializer element is not computable at load time
> xpbiff.c:347: (near initialization for `resources[3].resource_offset')
> xpbiff.c:349: initializer element is not computable at load time
> xpbiff.c:349: (near initialization for `resources[4].resource_offset')

これらに相当するのは

static XtResource       resources[] = {
    {"arrivePixmap", "ArrivePixmap", RPixmap2, sizeof(Pixmap2),
         (Cardinal)&arrivePixmap, XtRString, "None"},
    {"nomailPixmap", "NomailPixmap", RPixmap2, sizeof(Pixmap2),
         (Cardinal)&noPixmap, XtRString, "None"},
    {"nomailForeground", "NomailForeground", XtRPixel, sizeof(Pixel),
         (Cardinal)&colors[0], XtRString, "black"},
    {"nomailBackground", "NomailBackground", XtRPixel, sizeof(Pixel),
         (Cardinal)&colors[1], XtRString, "cyan"},
    {"arriveForeground", "ArriveForeground", XtRPixel, sizeof(Pixel),
         (Cardinal)&colors[2], XtRString, "yellow"},
    {"arriveBackground", "ArriveBackground", XtRPixel, sizeof(Pixel),
         (Cardinal)&colors[3], XtRString, "red"},

なんですが、arrivePixmap は

#ifdef XPM
Pixmap          arrivePixmaps[2], noPixmaps[2];
#define arrivePixmap    arrivePixmaps[0]
#define noPixmap        noPixmaps[0]
#else
Pixmap          arrivePixmap, noPixmap;
#endif

としてファイルの冒頭 (mail() より前) で定義されて
いるものなので、"not computable at load time" と
言われても、どういうことなのかよくわかりません。

以下の

> xpbiff.c:351: initializer element is not computable at load time
> xpbiff.c:351: (near initialization for `resources[5].resource_offset')
> xpbiff.c:354: initializer element is not computable at load time
> xpbiff.c:354: (near initialization for `resources[6].resource_offset')
> xpbiff.c:356: initializer element is not computable at load time
> xpbiff.c:356: (near initialization for `resources[7].resource_offset')
> xpbiff.c:358: initializer element is not computable at load time
> xpbiff.c:358: (near initialization for `resources[8].resource_offset')

> xpbiff.c:361: initializer element is not computable at load time
> xpbiff.c:361: (near initialization for `resources[9].resource_offset')
> xpbiff.c:363: initializer element is not computable at load time
> xpbiff.c:363: (near initialization for `resources[10].resource_offset')
> xpbiff.c:365: initializer element is not computable at load time
> xpbiff.c:365: (near initialization for `resources[11].resource_offset')
> xpbiff.c:367: initializer element is not computable at load time
> xpbiff.c:367: (near initialization for `resources[12].resource_offset')
> xpbiff.c:369: initializer element is not computable at load time
> xpbiff.c:369: (near initialization for `resources[13].resource_offset')
> xpbiff.c:371: initializer element is not computable at load time
> xpbiff.c:371: (near initialization for `resources[14].resource_offset')
> xpbiff.c:373: initializer element is not computable at load time
> xpbiff.c:373: (near initialization for `resources[15].resource_offset')
> xpbiff.c:375: initializer element is not computable at load time
> xpbiff.c:375: (near initialization for `resources[16].resource_offset')
> xpbiff.c:377: initializer element is not computable at load time
> xpbiff.c:377: (near initialization for `resources[17].resource_offset')

> xpbiff.c:396: initializer element is not computable at load time
> xpbiff.c:396: (near initialization for `resources[18].resource_offset')
> xpbiff.c:398: initializer element is not computable at load time
> xpbiff.c:398: (near initialization for `resources[19].resource_offset')
> xpbiff.c:400: initializer element is not computable at load time
> xpbiff.c:400: (near initialization for `resources[20].resource_offset')

もすべて同様なもので、 X11/Intrinsic.h で定義されている

typedef struct _XtResource {
    String      resource_name;  /* Resource name                            */
    String      resource_class; /* Resource class                           */
    String      resource_type;  /* Representation type desired              */
    Cardinal    resource_size;  /* Size in bytes of representation          */
    Cardinal    resource_offset;/* Offset from base to put resource value   */
    String      default_type;   /* representation type of specified default */
    XtPointer   default_addr;   /* Address of default resource              */
} XtResource, *XtResourceList;

の "Cardinal    resource_offset;" に関係しているらしいという
ことまではわかりませんが、これからどう追いかけていけばいいのか
検討がつきません。

何故これが alpha 上でのみ問題になるのかも疑問です。
 (一応、satie.debian.org でも試してみて woody/i386 では
  問題無く build できることは確認しました)

どなたか、何かヒントになる情報があれば、よろしくお願いします。

-- 
 # (わたしのおうちは浜松市、アカウミガメのふるさとの街)
   <kgh12351@xxxxxxxxxxx> : Taketoshi Sano (佐野 武俊)