Subject: compile imlib-1.9.14nb1 error
To: None <port-alpha@netbsd.org>
From: None <zephyr_qiu@anyware.com.cn>
List: port-alpha
Date: 09/24/2002 14:34:30
I have installed NetBSD1.6/Alpha on my Digital Personal Workstation au600,
when I make pkgsrc/graphics/imlib,an error occures.
I read the gdk_imlib/ChangeLog,find this:
1998-12-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>

        * gdk_imlib_private.h: Moved structure members that depended on
        HAVE_SHM to the end of the strucutre, where they do not hurt us.

        The problem is as follows: If HAVE_SHM is defined at Imlib compile
        time, then the Xdata structure is expanded to have these two
        fields.  Since we do not test for SHM in other places where we
        access _gdk_imlib_data (which caused the Alpha crashes and the
        duplicated icons due to the cache changes).

how to resolve the problem?

compile error message is:

In file included from cache.c:5:
gdk_imlib_private.h:104: parse error before `XShmSegmentInfo'
gdk_imlib_private.h:104: warning: no semicolon at end of struct or union
gdk_imlib_private.h:105: warning: data definition has no type or storage
class
gdk_imlib_private.h:108: warning: data definition has no type or storage
class
gdk_imlib_private.h:142: parse error before `Xdata'
gdk_imlib_private.h:142: warning: no semicolon at end of struct or union
gdk_imlib_private.h:144: warning: data definition has no type or storage
class
gdk_imlib_private.h:146: parse error before `*'
gdk_imlib_private.h:146: warning: data definition has no type or storage
class
cache.c: In function `_gdk_imlib_dirty_pixmaps':
cache.c:15: request for member `cache' in something not a structure or
union
cache.c: In function `_gdk_imlib_dirty_images':
cache.c:29: request for member `cache' in something not a structure or
union
cache.c: In function `_gdk_imlib_find_pixmap':
cache.c:46: request for member `cache' in something not a structure or
union
cache.c:58: request for member `cache' in something not a structure or
union
cache.c:60: request for member `cache' in something not a structure or
union
cache.c:60: request for member `x' in something not a structure or union
cache.c:62: request for member `cache' in something not a structure or
union
cache.c:63: request for member `cache' in something not a structure or
union
cache.c:65: request for member `cache' in something not a structure or
union
cache.c:74: request for member `cache' in something not a structure or
union
cache.c:355: request for member `cache' in something not a structure or
union
cache.c:404: request for member `cache' in something not a structure or
union
cache.c:416: request for member `cache' in something not a structure or
union
cache.c:416: request for member `cache' in something not a structure or
union
cache.c:420: request for member `cache' in something not a structure or
union
cache.c:435: request for member `cache' in something not a structure or
union
cache.c:435: request for member `x' in something not a structure or union
cache.c:437: request for member `cache' in something not a structure or
union
cache.c:449: request for member `cache' in something not a structure or
union
cache.c:461: request for member `cache' in something not a structure or
union
cache.c:461: request for member `cache' in something not a structure or
union
cache.c: In function `gdk_imlib_get_cache_info':
cache.c:490: request for member `cache' in something not a structure or
union
cache.c:492: request for member `cache' in something not a structure or
union
cache.c: In function `gdk_imlib_set_cache_info':
cache.c:498: request for member `cache' in something not a structure or
union
cache.c:499: request for member `cache' in something not a structure or
union
gmake[2]: *** [cache.lo] Error 1
gmake[2]: Leaving directory
`/usr/src/pkgsrc/graphics/imlib/work/imlib-1.9.14/g'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/src/pkgsrc/graphics/imlib/work/imlib-1.9.14'
gmake: *** [all-recursive-am] Error 2
*** Error code 2