GithubHelp home page GithubHelp logo

algorithm-minperfhashtwolevel's People

Contributors

demerphq avatar manwar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

algorithm-minperfhashtwolevel's Issues

Compilation error with threaded perls

The compilation fails with threaded perls:

x86_64-linux-gnu-gcc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-
strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O3   -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.26/CORE"   MinPerfHashTwoLevel.c
In file included from MinPerfHashTwoLevel.xs:3:0:
MinPerfHashTwoLevel.xs: In function ‘lookup_bucket’:
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/perl.h:176:16: error: ‘my_perl’ undeclared (first use in this function); did you mean ‘my_fork’?
 #  define aTHX my_perl
                ^
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/perl.h:189:18: note: in expansion of macro ‘aTHX’
 #  define aTHX_  aTHX,
                  ^~~~
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/embed.h:692:47: note: in expansion of macro ‘aTHX_’
 #define sv_setpvn_mg(a,b,c) Perl_sv_setpvn_mg(aTHX_ a,b,c)
                                               ^~~~~
MinPerfHashTwoLevel.xs:65:5: note: in expansion of macro ‘sv_setpvn_mg’
     sv_setpvn_mg((sv),ptr,len);                         \
     ^~~~~~~~~~~~
MinPerfHashTwoLevel.xs:90:9: note: in expansion of macro ‘sv_set_from_bucket’
         sv_set_from_bucket(key_sv,strs,bucket->key_ofs,bucket->key_len,index,((U8*)mph)+mph->key_flags_ofs,2);
         ^~~~~~~~~~~~~~~~~~
/usr/lib/x86_64-linux-gnu/perl/5.26/CORE/perl.h:176:16: note: each undeclared identifier is reported only once for each function it appears in
... (etc) ...

use of undeclared identifier 'MAP_POPULATE'

Compilation fails on FreeBSD systems (seen on all of my smokers, versions 9 .. 13):

cc -c  -I.  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3    -DVERSION=\"0.05\"  -DXS_VERSION=\"0.05\" -DPIC -fPIC "-I/usr/perl5.20.1Dp/lib/5.20.1/amd64-freebsd-ld/CORE"   MinPerfHashTwoLevel.c
...
MinPerfHashTwoLevel.xs:153:55: error: use of undeclared identifier 'MAP_POPULATE'
    ptr = mmap(NULL,st.st_size,PROT_READ,MAP_SHARED | MAP_POPULATE, fd, 0);
                                                      ^
5 warnings and 1 error generated.
*** Error code 1
...

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.