Opened 11 years ago

Closed 11 years ago

#39702 closed defect (fixed)

magicspp: Undefined symbols: _XCloseDisplay _XCreateSimpleWindow _XMapWindow _XNextEvent _XOpenDisplay _XSelectInput _XStoreName

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.2.99
Keywords: haspatch Cc:
Port: magicspp

Description

Using ports built from MacPorts trunk, magicspp fails to build:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_XCloseDisplay", referenced from:
:info:build       magics::CairoDriver::close()     in CairoDriver.o
:info:build   "_XCreateSimpleWindow", referenced from:
:info:build       magics::CairoDriver::setupNewSurface() const in CairoDriver.o
:info:build   "_XMapWindow", referenced from:
:info:build       magics::CairoDriver::setupNewSurface() const in CairoDriver.o
:info:build   "_XNextEvent", referenced from:
:info:build       magics::CairoDriver::close()     in CairoDriver.o
:info:build   "_XOpenDisplay", referenced from:
:info:build       magics::CairoDriver::setupNewSurface() const in CairoDriver.o
:info:build   "_XSelectInput", referenced from:
:info:build       magics::CairoDriver::setupNewSurface() const in CairoDriver.o
:info:build   "_XStoreName", referenced from:
:info:build       magics::CairoDriver::setupNewSurface() const in CairoDriver.o
:info:build ld: symbol(s) not found for architecture x86_64

Presumably if magicspp builds ok with MacPorts 2.1.x, then it was relying on the overlinking that MacPorts trunk no longer does, and whatever library provides those symbols (-lX11?) should be added to the LDFLAGS.

Attachments (2)

magicspp.gcc47.main.log.bz2 (14.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
magicspp.diff (472 bytes) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
proposed patch

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: magicspp.gcc47.main.log.bz2 added

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: magicspp.diff added

proposed patch

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added

The attached patch fixes the problem for me, while also fixing a quoting problem in the port.

comment:2 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Committed in r108113. Thanks.

Note: See TracTickets for help on using tickets.