Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#62274 closed defect (fixed)

thrift @0.13.0 build fails with undefined symbols on Big Sur

Reported by: fgunbin Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur Cc:
Port: thrift

Description (last modified by jmroot (Joshua Root))

I'm getting this build error on macOS 11.2.1

Also I see here https://ports.macports.org/port/thrift/builds that build status is red for 11_x86_64.

:info:build Undefined symbols for architecture x86_64:
:info:build   "apache::thrift::concurrency::Thread::threadMain(std::__1::shared_ptr<apache::thrift::concurrency::Thread>)", referenced from:
:info:build       apache::thrift::concurrency::Thread::start() in libthriftnb_la-TNonblockingServer.o

:info:build   "apache::thrift::GlobalOutput", referenced from:
:info:build       apache::thrift::server::TNonblockingServer::TConnection::workSocket() in libthriftnb_la-TNonblockingServer.o
:info:build       apache::thrift::server::TNonblockingServer::TConnection::transition() in libthriftnb_la-TNonblockingServer.o
:info:build       apache::thrift::server::TNonblockingServer::TConnection::setFlags(short) in libthriftnb_la-TNonblockingServer.o
:info:build       apache::thrift::server::TNonblockingServer::handleEvent(int, short) in libthriftnb_la-TNonblockingServer.o

<and more of that>

I see this in the beginning of log (full log attached):

:warn:main The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
:warn:main You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

I've reinstalled command line tools by removing /Library/Developer/CommandLineTools and running xcode-select as suggested, but the warning won't go away.

Attachments (1)

main.log (255.5 KB) - added by fgunbin 4 years ago.
log

Download all attachments as: .zip

Change History (13)

Changed 4 years ago by fgunbin

Attachment: main.log added

log

comment:1 Changed 4 years ago by fgunbin

Description: modified (diff)

comment:2 Changed 4 years ago by fgunbin

Description: modified (diff)

comment:3 Changed 4 years ago by fgunbin

Description: modified (diff)

comment:4 Changed 4 years ago by fgunbin

Description: modified (diff)

comment:5 Changed 4 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: bigsur added
Port: thrift added

comment:6 in reply to:  description Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to fgunbin:

I see this in the beginning of log (full log attached):

:warn:main The macOS 11.2 SDK does not appear to be installed. Ports may not build correctly.
:warn:main You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

I've reinstalled command line tools by removing /Library/Developer/CommandLineTools and running xcode-select as suggested, but the warning won't go away.

Ignore that with this version of MacPorts or install MacPorts from git master. See https://lists.macports.org/pipermail/macports-users/2021-February/049530.html

comment:7 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

This looks like the well-known libtool macOS 11+ undefined symbols bug. Probably just needs the standard fix per the patch in the libtool port's files dir.

comment:8 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: thrift @0.13.0 build failsthrift @0.13.0 build fails with undefined symbols on Big Sur
Version: 2.6.4

comment:9 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

On second thought, it's not that easy, since the port already regenerates the configure script, so it would already contain the fixes from the libtool port.

comment:10 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

This port has a local copy of libtool.m4 which it uses instead of the fixed one from the libtool port.

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

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In dbfc06c047b3f6f9c1df7924b0afa7539cfd9d88/macports-ports (master):

thrift: Apply the macOS 11+ libtool bugfix

Closes: #62274

comment:12 Changed 4 years ago by fgunbin

Thank you for the fix!

Note: See TracTickets for help on using tickets.