Opened 5 years ago

Closed 3 years ago

#59874 closed defect (fixed)

rocksdb @5.14.3: error: declaration shadows a variable in namespace 'rocksdb'

Reported by: chazapis (Antony Chazapis) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: rocksdb

Description

Build fails on macOS 10.15.1. Log attached.

Looks like the latest compiler version has some stricter default rules. A proposed solution is described here: https://github.com/libra/libra/issues/168#issuecomment-515814834. I quote: "...you can add a -Wno-error=shadow flag in rocksdb makefile to avoid this problem...".

Attachments (1)

main.log (48.0 KB) - added by chazapis (Antony Chazapis) 5 years ago.

Download all attachments as: .zip

Change History (5)

Changed 5 years ago by chazapis (Antony Chazapis)

Attachment: main.log added

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

Owner: set to stromnov
Status: newassigned
Summary: rocksdb @5.14.3 Build failurerocksdb @5.14.3: error: declaration shadows a variable in namespace 'rocksdb'

comment:4 Changed 3 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

In 001b65fa99e75927c56775cd6834c5323efadd6a/macports-ports (master):

rocksdb: Update to 6.27.3, switch to CMake

Use the CMake build system, which shortens the Portfile significantly
and does not require patching.

No revbump of dependents required, because the update does not change
ABI.

Closes: #59874

Note: See TracTickets for help on using tickets.