Coder Social home page Coder Social logo

Fails to compile on OS X about hyperleveldb HOT 6 CLOSED

chirino avatar chirino commented on September 28, 2024
Fails to compile on OS X

from hyperleveldb.

Comments (6)

dinedal avatar dinedal commented on September 28, 2024

Same problem here

from hyperleveldb.

rescrv avatar rescrv commented on September 28, 2024

I'd love to fix this, but without a Mac, I'm left randomly changing code in hopes of making it portable. I'll gladly accept patches or hardware, and keep the bug open until I get one or the other.

from hyperleveldb.

yinqiwen avatar yinqiwen commented on September 28, 2024

Try CXXFLAGS=-DOS_MACOSX ./configure

from hyperleveldb.

dinedal avatar dinedal commented on September 28, 2024

@yinqiwen That worked, thanks!

make --no-print-directory all-am
  CXX      db/builder.lo
  CXX      db/c.lo
  CXX      db/dbformat.lo
  CXX      db/db_impl.lo
db/db_impl.cc: In member function 'leveldb::Status leveldb::DBImpl::OptimisticCompaction()':
db/db_impl.cc:910: warning: format '%ld' expects type 'long int', but argument 3 has type 'uint64_t'
  CXX      db/db_iter.lo
  CXX      db/filename.lo
  CXX      db/log_reader.lo
  CXX      db/log_writer.lo
  CXX      db/memtable.lo
  CXX      db/repair.lo
  CXX      db/table_cache.lo
  CXX      db/version_edit.lo
  CXX      db/version_set.lo
  CXX      db/write_batch.lo
  CXX      table/block_builder.lo
  CXX      table/block.lo
  CXX      table/filter_block.lo
  CXX      table/format.lo
  CXX      table/iterator.lo
  CXX      table/merger.lo
  CXX      table/table_builder.lo
  CXX      table/table.lo
  CXX      table/two_level_iterator.lo
  CXX      util/arena.lo
  CXX      util/bloom.lo
  CXX      util/cache.lo
  CXX      util/coding.lo
  CXX      util/comparator.lo
  CXX      util/crc32c.lo
  CXX      util/env.lo
  CXX      util/env_posix.lo
  CXX      util/filter_policy.lo
  CXX      util/hash.lo
  CXX      util/histogram.lo
  CXX      util/logging.lo
  CXX      util/options.lo
  CXX      util/status.lo
  CXX      port/port_posix.lo
  CXXLD    libhyperleveldb.la
  CXX      db/db_bench.o
  CXX      util/testutil.o
  CXXLD    db_bench
  CXX      db/leveldb_main.o
  CXXLD    leveldbutil

from hyperleveldb.

wptad avatar wptad commented on September 28, 2024

CXXFLAGS=-DOS_MACOSX ./configure

also works for me. THANKS :)

At first, i tried to add soft link from /usr/include/machine to /usr/local/include/machine, however, still not work.

PS: it seems mac doesn't have ldconfig command

from hyperleveldb.

rescrv avatar rescrv commented on September 28, 2024

I've updated the configure script and some code to "just work". You should be able to just do ./configure

from hyperleveldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.