Coder Social home page Coder Social logo

Static compiling about rustcap HOT 1 OPEN

jmmk avatar jmmk commented on August 25, 2024
Static compiling

from rustcap.

Comments (1)

adubovikov avatar adubovikov commented on August 25, 2024
s/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-musl/lib/crtn.o" -L/usr/lib/x86_64-linux-musl/libc.a -L/usr/lib/x86_64-linux-musl/libdl.a
/usr/lib/x86_64-linux-gnu/libpcap.a(scanner.o): In function `yy_fatal_error.isra.0':
(.text+0x1d): undefined reference to `__fprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `init_tpacket':
(.text+0x4bc): undefined reference to `__snprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `init_tpacket':
(.text+0x515): undefined reference to `__snprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `pcap_read_linux':
(.text+0x8f4): undefined reference to `__snprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `pcap_read_linux':
(.text+0xb1f): undefined reference to `__snprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `pcap_handle_packet_mmap':
(.text+0xe0b): undefined reference to `__snprintf_chk'
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o):(.text+0x127f): more undefined references to `__snprintf_chk' follow
/usr/lib/x86_64-linux-gnu/libpcap.a(pcap-linux.o): In function `pcap_setfilter_linux_common':
(.text+0x1368): undefined reference to `__fprintf_chk'

so, in verbose I see, it tries to compile static, but some issues with musl ?
build.rs:

fn main() {
    println!("cargo:rustc-link-lib=static=pcap");
``



from rustcap.

Related Issues (2)

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.