Skip to content

Commit

Permalink
databases/leofs: fix build with clang 16
Browse files Browse the repository at this point in the history
Since clang 16 (and gcc 11) the default C++ standard is now gnu++17.
Because Makefile does not explicitly set its C++ standard, this leads
to the error when building eleveldb:

  util/bloom.cc:100:10: error: no template named 'auto_ptr' in namespace 'std'
      std::auto_ptr<const FilterPolicy> m_Item;
      ~~~~~^

Add USE_CXXSTD=gnu++11 to avoid this error.
  • Loading branch information
trociny committed Jun 28, 2023
1 parent daa2544 commit ba4c77c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databases/leofs/Makefile
@@ -1,6 +1,6 @@
PORTNAME= leofs
DISTVERSION= 1.4.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= databases
DIST_SUBDIR= ${PORTNAME}

Expand Down Expand Up @@ -55,6 +55,7 @@ SUB_LIST+= LEOFS_USER=${LEOFS_USER} \
SUB_FILES+= ${LEOFS_SBIN_FILES:S/^/sbin-/}

USES= dos2unix gmake pkgconfig ssl
USE_CXXSTD= gnu++11
USE_RC_SUBR= ${PORTNAME}

DOS2UNIX_FILES= apps/leo_*/snmp/snmpa_*/leo_*_snmp.config
Expand Down

0 comments on commit ba4c77c

Please sign in to comment.