gufolabs / gufo_ping

Gufo Labs Ping is the accelerated Python asyncio IPv4/IPv6 ping implementation.
https://docs.gufolabs.com/gufo_ping/
Other
10 stars 0 forks source link

BUG: Failed to build on musl #5

Open dvolodin7 opened 1 year ago

dvolodin7 commented 1 year ago

Describe the issue:

gufo-ping faild to build on must

Reproduce the code example:

Github Action

Error message:

--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2452:23
374
     |
375
2452 |                 libc::DCCP_SOCKOPT_SERVICE,
376
     |                       ^^^^^^^^^^^^^^^^^^^^ not found in `libc`
377

378
error[E0425]: cannot find value `DCCP_SOCKOPT_SERVICE` in crate `libc`
379
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2466:66
380
     |
381
2466 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_SERVICE) }
382
     |                                                                  ^^^^^^^^^^^^^^^^^^^^ not found in `libc`
383

384
error[E0425]: cannot find value `DCCP_SOCKOPT_CCID` in crate `libc`
385
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2475:66
386
     |
387
2475 |         unsafe { setsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_CCID, ccid) }
388
     |                                                                  ^^^^^^^^^^^^^^^^^ not found in `libc`
389

390
error[E0425]: cannot find value `DCCP_SOCKOPT_TX_CCID` in crate `libc`
391
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2486:66
392
     |
393
2486 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_TX_CCID) }
394
     |                                                                  ^^^^^^^^^^^^^^^^^^^^ not found in `libc`
395

396
error[E0425]: cannot find value `DCCP_SOCKOPT_RX_CCID` in crate `libc`
397
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2497:66
398
     |
399
2497 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_RX_CCID) }
400
     |                                                                  ^^^^^^^^^^^^^^^^^^^^ not found in `libc`
401

402
error[E0425]: cannot find value `DCCP_SOCKOPT_SERVER_TIMEWAIT` in crate `libc`
403
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2511:23
404
     |
405
2511 |                 libc::DCCP_SOCKOPT_SERVER_TIMEWAIT,
406
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
407

408
error[E0425]: cannot find value `DCCP_SOCKOPT_SERVER_TIMEWAIT` in crate `libc`
409
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2529:23
410
     |
411
2529 |                 libc::DCCP_SOCKOPT_SERVER_TIMEWAIT,
412
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
413

414
error[E0425]: cannot find value `DCCP_SOCKOPT_SEND_CSCOV` in crate `libc`
415
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2548:23
416
     |
417
2548 |                 libc::DCCP_SOCKOPT_SEND_CSCOV,
418
     |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
419

420
error[E0425]: cannot find value `DCCP_SOCKOPT_SEND_CSCOV` in crate `libc`
421
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2562:66
422
     |
423
2562 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_SEND_CSCOV) }
424
     |                                                                  ^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
425

426
error[E0425]: cannot find value `DCCP_SOCKOPT_RECV_CSCOV` in crate `libc`
427
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2577:23
428
     |
429
2577 |                 libc::DCCP_SOCKOPT_RECV_CSCOV,
430
     |                       ^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
431

432
error[E0425]: cannot find value `DCCP_SOCKOPT_RECV_CSCOV` in crate `libc`
433
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2591:66
434
     |
435
2591 |         unsafe { getsockopt(self.as_raw(), libc::SOL_DCCP, libc::DCCP_SOCKOPT_RECV_CSCOV) }
436
     |                                                                  ^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
437

438
error[E0425]: cannot find value `DCCP_SOCKOPT_QPOLICY_TXQLEN` in crate `libc`
439
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2605:23
440
     |
441
2605 |                 libc::DCCP_SOCKOPT_QPOLICY_TXQLEN,
442
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
443

444
error[E0425]: cannot find value `DCCP_SOCKOPT_QPOLICY_TXQLEN` in crate `libc`
445
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2623:23
446
     |
447
2623 |                 libc::DCCP_SOCKOPT_QPOLICY_TXQLEN,
448
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
449

450
error[E0425]: cannot find value `DCCP_SOCKOPT_AVAILABLE_CCIDS` in crate `libc`
451
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2645:19
452
     |
453
2645 |             libc::DCCP_SOCKOPT_AVAILABLE_CCIDS,
454
     |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
455

456
error[E0425]: cannot find value `DCCP_SOCKOPT_GET_CUR_MPS` in crate `libc`
457
    --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.5.1/src/sys/unix.rs:2663:23
458
     |
459
2663 |                 libc::DCCP_SOCKOPT_GET_CUR_MPS,
460
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^ not found in `libc`
461

462
For more information about this error, try `rustc --explain E0425`.
463
error: could not compile `socket2` due to 15 previous errors
464

Python version information

Any versions

Gufo Ping version information

0.2.4

Operation system version

Any musl-based

dvolodin7 commented 1 year ago

Bug related to rust-lang/socket2#405