Opened 16 years ago

Closed 14 years ago

#19677 closed defect (worksforme)

imlib fails to build because MIT-SHM extension is activated

Reported by: hsivank@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: imlib

Description

imlib fails to build because MIT-SHM extension is activated on macosx leopard intel

Attached patch to solve the problem

Attachments (1)

0001-imlib-fails-to-build-because-MIT-SHM.patch (894 bytes) - added by hsivank@… 16 years ago.

Download all attachments as: .zip

Change History (7)

Changed 16 years ago by hsivank@…

comment:1 Changed 16 years ago by blb@…

What's the error message you're seeing, as it builds fine for me on 10.5.7, Intel, Xcode 3.1.2?

comment:2 Changed 16 years ago by hsivank@…

I use 10.5.7 and Xcode 3.1.2

Maybe we are not using the same X version :

My settings : pkgutil --pkgs=X11
com.apple.pkg.X11User
com.apple.pkg.X11SDKLeo
com.apple.pkg.X11DocumentationLeo

My X11 is delivered with 10.5.7

Are you using X11.pkg version 2.3.3.2 from [xquartz.macosforge.org] ?

This is the error message :

In file included from cache.c:6:
gdk_imlib_private.h:104: error: syntax 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: error: syntax 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: error: syntax error before '*' token
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: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_dirty_images':
cache.c:29: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_find_pixmap':
cache.c:46: error: request for member 'cache' in something not a structure or union
cache.c:58: error: request for member 'cache' in something not a structure or union
cache.c:60: error: request for member 'cache' in something not a structure or union
cache.c:60: error: request for member 'x' in something not a structure or union
cache.c:62: error: request for member 'cache' in something not a structure or union
cache.c:63: error: request for member 'cache' in something not a structure or union
cache.c:65: error: request for member 'cache' in something not a structure or union
cache.c:74: error: request for member 'cache' in something not a structure or union
cache.c:76: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_find_image':
cache.c:94: error: request for member 'cache' in something not a structure or union
cache.c:104: error: request for member 'cache' in something not a structure or union
cache.c:105: error: request for member 'cache' in something not a structure or union
cache.c:106: error: request for member 'cache' in something not a structure or union
cache.c:108: error: request for member 'cache' in something not a structure or union
cache.c:117: error: request for member 'cache' in something not a structure or union
cache.c:119: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_free_pixmappmap':
cache.c:134: error: request for member 'cache' in something not a structure or union
cache.c:146: error: request for member 'cache' in something not a structure or union
cache.c:148: error: request for member 'cache' in something not a structure or union
cache.c:148: error: request for member 'x' in something not a structure or union
cache.c:150: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_free_image':
cache.c:165: error: request for member 'cache' in something not a structure or union
cache.c:175: error: request for member 'cache' in something not a structure or union
cache.c:176: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_add_image':
cache.c:201: error: request for member 'cache' in something not a structure or union
cache.c:220: error: request for member 'cache' in something not a structure or union
cache.c:221: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_add_pixmap':
cache.c:232: error: request for member 'cache' in something not a structure or union
cache.c:258: error: request for member 'cache' in something not a structure or union
cache.c:259: error: request for member 'cache' in something not a structure or union
cache.c: In function '_gdk_imlib_clean_caches':
cache.c:271: error: request for member 'cache' in something not a structure or union
cache.c:287: error: request for member 'cache' in something not a structure or union
cache.c:292: error: request for member 'cache' in something not a structure or union
cache.c:308: error: request for member 'cache' in something not a structure or union
cache.c:320: error: request for member 'cache' in something not a structure or union
cache.c:320: error: request for member 'cache' in something not a structure or union
cache.c:324: error: request for member 'cache' in something not a structure or union
cache.c:338: error: request for member 'cache' in something not a structure or union
cache.c:343: error: request for member 'cache' in something not a structure or union
cache.c:355: error: request for member 'cache' in something not a structure or union
cache.c:355: error: request for member 'cache' in something not a structure or union
cache.c:404: error: request for member 'cache' in something not a structure or union
cache.c:416: error: request for member 'cache' in something not a structure or union
cache.c:416: error: request for member 'cache' in something not a structure or union
cache.c:420: error: request for member 'cache' in something not a structure or union
cache.c:435: error: request for member 'cache' in something not a structure or union
cache.c:435: error: request for member 'x' in something not a structure or union
cache.c:437: error: request for member 'cache' in something not a structure or union
cache.c:449: error: request for member 'cache' in something not a structure or union
cache.c:461: error: request for member 'cache' in something not a structure or union
cache.c:461: error: request for member 'cache' in something not a structure or union
cache.c: In function 'gdk_imlib_get_cache_info':
cache.c:490: error: request for member 'cache' in something not a structure or union
cache.c:492: error: request for member 'cache' in something not a structure or union
cache.c: In function 'gdk_imlib_set_cache_info':
cache.c:498: error: request for member 'cache' in something not a structure or union
cache.c:499: error: request for member 'cache' in something not a structure or union
make[2]: * [cache.lo] Error 1

Thanks for your quick answer.

comment:3 Changed 16 years ago by blb@…

I do have xquartz installed but building imlib from MacPorts should be using its own X11 libraries; for example, building imlib here shows it linked against several, all provided by MacPorts:

...
	/opt/local/lib/libX11.6.dylib (compatibility version 9.0.0, current version 9.0.0)
	/opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.0.0)
	/opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0)
	/opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
...

Check to make sure your gtk1 port is up to date. Also, did you happen to use the +system_x11 variant?

comment:4 in reply to:  3 Changed 16 years ago by hsivank@…

My gtk1 port is up to date (version 1.2.10 revision 8). I didn't use system_x11 variant before. Same bug with ...
Note: "--disable-shm" is in the list of gtk1 arguments

I agree with you : building imlib from MacPorts should be using its own X11 libraries, but my problem is not at link step.
Tell me if i'm wrong : Maybe you are using headers from xquartz and link with x11 MacPorts libraries

comment:5 Changed 16 years ago by hsivank@…

There is an error in the report: my port version is not 1.71 but 1.8.0,
Sorry for the mistake.

comment:6 Changed 14 years ago by jmroot (Joshua Root)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.