Git Product home page Git Product logo

Comments (4)

royhills avatar royhills commented on August 31, 2024

I think the latest git commit should fix this problem. It assumes that the long long int format is %lld if cross compiling instead of just giving up.

I'm not sure this is very robust, but it's better than just giving up, and %lld will normally work.

Here's an example cross-compiling for i386 on an amd64 debian system:

rsh@jessie:~/arp-scan$ ./configure --build=x86_64-unknown-linux-gnu --host=i686-unknown-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
checking for a BSD-compatible install... /usr/bin/install -c
...
checking whether long int is 64 bits... no
checking whether long long int is 64 bits... yes
checking snprintf format for long long int... assuming %lld for cross compilation

from arp-scan.

rofl0r avatar rofl0r commented on August 31, 2024

thanks.
do you know any platform where the format is not %lld, contrary to the C and POSIX specs ?

from arp-scan.

royhills avatar royhills commented on August 31, 2024

On 64-bit systems, long int is usually 64-bit, so %ld would be the correct format there and %lld might give a warning.

BSD systems used to use %qd for "quad int" which was 64-bit. I think that was a while ago though, and may be depreciated.

%I64d is sometimes seen on Microsoft systems, but they may also support %lld as well.

from arp-scan.

royhills avatar royhills commented on August 31, 2024

I believe this is fixed now.

Defaulting to %lld seems like a bit of a hack, so some cross-compilation builds may still have errors. But it's certainly better than failing altogether.

from arp-scan.

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.