Opened 5 years ago

Last modified 3 years ago

#38238 new defect

tktable: build fails on Mountain Lion, error: incomplete definition of type 'struct _XDisplay'

Reported by: lpsinger (Leo Singer) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: tktable

Description

tktable fails to build on Mountain Lion with the following error message:

See attached build log.

Attachments (1)

main.log (54.4 KB) - added by lpsinger (Leo Singer) 5 years ago.

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by lpsinger (Leo Singer)

comment:1 Changed 5 years ago by lpsinger (Leo Singer)

Oops, sorry. I forgot to paste the error message. Here it is:

./generic/tkTable.c:3809:5: error: incomplete definition of type 'struct _XDisplay'
    XSync(tablePtr->display, False);
    ^     ~~~~~~~~~~~~~~~~~
./generic/tkTable.h:75:39: note: expanded from macro 'XSync'
#       define XSync(display, bool) {display->request++;}
                                            ^
/opt/local/include/X11/Xlib.h:263:8: note: forward declaration of 'struct _XDisplay'
struct _XDisplay;               /* Forward declare before use for C++ */
       ^

comment:2 Changed 5 years ago by lpsinger (Leo Singer)

  • Owner changed from macports-tickets@… to markd@…

comment:3 Changed 5 years ago by cooljeanius (Eric Gallager)

What does port provides /opt/local/include/X11/Xlib.h return for you? What's the status of the port returned?

comment:4 Changed 5 years ago by lpsinger (Leo Singer)

$ port provides /opt/local/include/X11/Xlib.h
/opt/local/include/X11/Xlib.h is provided by: xorg-libX11

comment:5 Changed 4 years ago by rct@…

I fixed this problem by building the tk package with +x11.

comment:6 Changed 4 years ago by lpsinger (Leo Singer)

Could we have a require_active_variants added to tktable?

comment:7 Changed 3 years ago by mf2k (Frank Schima)

  • Owner changed from markd@… to macports-tickets@…

markd has retired. See #44782.

Note: See TracTickets for help on using tickets.