Coder Social home page Coder Social logo

pghashlib's People

Contributors

markokr avatar olshevskiy87 avatar schinazi avatar theory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pghashlib's Issues

Error while attempting to Make on ARM64 architecture

Hi, when trying to compile pghashlib on an Apple M1 Silicon chip with the newer arm64 architecture, I get the following error:

clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2 -bundle -multiply_defined suppress -o hashlib.so src/pghashlib.o src/crc32.o src/lookup2.o src/lookup3.o src/inthash.o src/murmur3.o src/pgsql84.o src/city.o src/spooky.o src/md5.o src/siphash.o -L/usr/local/lib -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -L/usr/local/opt/[email protected]/lib -L/usr/local/opt/readline/lib -Wl,-dead_strip_dylibs -bundle_loader /usr/local/Cellar/postgresql/13.4/bin/postgres ld: can't link with a main executable file '/usr/local/Cellar/postgresql/13.4/bin/postgres' for architecture arm64

Is there any workaround for this issue? Or could we update pghashlib to work on arm64 architecture?

fails to build against PostgreSQL 9.5

This now fails to build against PostgreSQL 9.5, because a conflicting definition of uint128 has been added:

src/city.c:58:29: error: conflicting types for 'uint128'
 typedef struct city_uint128 uint128;
                             ^
In file included from .../include/server/postgres.h:47:0,
                 from src/pghashlib.h:4,
                 from src/city.c:48:
.../include/server/c.h:345:33: note: previous declaration of 'uint128' was here
 typedef unsigned PG_INT128_TYPE uint128;
                                 ^

Maybe typedef struct city_uint128 uint128 should be removed and city_uint128 used explicitly throughout?

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.