Skip to content
This repository was archived by the owner on Jul 11, 2023. It is now read-only.

Failure to compile on mozilla/rust@5890fcf872 #19

Open
minhnhdo opened this issue Aug 2, 2013 · 5 comments
Open

Failure to compile on mozilla/rust@5890fcf872 #19

minhnhdo opened this issue Aug 2, 2013 · 5 comments

Comments

@minhnhdo
Copy link

minhnhdo commented Aug 2, 2013

I tried removing the use of copy ex-keyword but there are a lot of unresolved modules. It seems that module net in crate extra is not shipped with the Rust compiler code.

@minhnhdo
Copy link
Author

minhnhdo commented Aug 2, 2013

Error log

rustc  http_client.rc -o libhttp_client.dummy
http_client.rc:31:4: 31:12 error: unresolved import: could not find `net` in `extra`.
http_client.rc:31     get_addr, format_addr,
                      ^~~~~~~~
http_client.rc:31:4: 31:12 error: failed to resolve import `extra::net::ip::get_addr`
http_client.rc:31     get_addr, format_addr,
                      ^~~~~~~~
http_client.rc:31:14: 31:25 error: unresolved import: could not find `net` in `extra`.
http_client.rc:31     get_addr, format_addr,
                                ^~~~~~~~~~~
http_client.rc:31:14: 31:25 error: failed to resolve import `extra::net::ip::format_addr`
http_client.rc:31     get_addr, format_addr,
                                ^~~~~~~~~~~
http_client.rc:32:4: 32:10 error: unresolved import: could not find `net` in `extra`.
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                      ^~~~~~
http_client.rc:32:4: 32:10 error: failed to resolve import `extra::net::ip::IpAddr`
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                      ^~~~~~
http_client.rc:32:12: 32:24 error: unresolved import: could not find `net` in `extra`.
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                              ^~~~~~~~~~~~
http_client.rc:32:12: 32:24 error: failed to resolve import `extra::net::ip::IpGetAddrErr`
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                              ^~~~~~~~~~~~
http_client.rc:32:26: 32:30 error: unresolved import: could not find `net` in `extra`.
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                                            ^~~~
http_client.rc:32:26: 32:30 error: failed to resolve import `extra::net::ip::Ipv4`
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                                            ^~~~
http_client.rc:32:32: 32:36 error: unresolved import: could not find `net` in `extra`.
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                                                  ^~~~
http_client.rc:32:32: 32:36 error: failed to resolve import `extra::net::ip::Ipv6`
http_client.rc:32     IpAddr, IpGetAddrErr, Ipv4, Ipv6
                                                  ^~~~
http_client.rc:34:22: 34:32 error: unresolved import: could not find `net` in `extra`.
http_client.rc:34 use extra::net::tcp::{TcpErrData, TcpSocket};
                                        ^~~~~~~~~~
http_client.rc:34:22: 34:32 error: failed to resolve import `extra::net::tcp::TcpErrData`
http_client.rc:34 use extra::net::tcp::{TcpErrData, TcpSocket};
                                        ^~~~~~~~~~
http_client.rc:34:34: 34:43 error: unresolved import: could not find `net` in `extra`.
http_client.rc:34 use extra::net::tcp::{TcpErrData, TcpSocket};
                                                    ^~~~~~~~~
http_client.rc:34:34: 34:43 error: failed to resolve import `extra::net::tcp::TcpSocket`
http_client.rc:34 use extra::net::tcp::{TcpErrData, TcpSocket};
                                                    ^~~~~~~~~
http_client.rc:35:4: 35:24 error: unresolved import: could not find `net` in `extra`.
http_client.rc:35 use extra::net::url::Url;
                      ^~~~~~~~~~~~~~~~~~~~
http_client.rc:35:4: 35:24 error: failed to resolve import `extra::net::url::Url`
http_client.rc:35 use extra::net::url::Url;
                      ^~~~~~~~~~~~~~~~~~~~
http_client.rc:36:4: 36:25 error: unresolved import: there is no `uv_global_loop` in `extra`
http_client.rc:36 use extra::uv_global_loop;
                      ^~~~~~~~~~~~~~~~~~~~~
http_client.rc:36:4: 36:25 error: failed to resolve import `extra::uv_global_loop`
http_client.rc:36 use extra::uv_global_loop;
                      ^~~~~~~~~~~~~~~~~~~~~
request.rs:10:4: 10:24 error: unresolved import: could not find `net` in `extra`.
request.rs:10 use extra::net::url::Url;
                  ^~~~~~~~~~~~~~~~~~~~
request.rs:10:4: 10:24 error: failed to resolve import `extra::net::url::Url`
request.rs:10 use extra::net::url::Url;
                  ^~~~~~~~~~~~~~~~~~~~
connection.rs:11:22: 11:32 error: unresolved import: could not find `net` in `extra`.
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                       ^~~~~~~~~~
connection.rs:11:22: 11:32 error: failed to resolve import `extra::net::tcp::TcpErrData`
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                       ^~~~~~~~~~
connection.rs:11:34: 11:51 error: unresolved import: could not find `net` in `extra`.
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                                   ^~~~~~~~~~~~~~~~~
connection.rs:11:34: 11:51 error: failed to resolve import `extra::net::tcp::TcpConnectErrData`
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                                   ^~~~~~~~~~~~~~~~~
connection.rs:11:53: 11:62 error: unresolved import: could not find `net` in `extra`.
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                                                      ^~~~~~~~~
connection.rs:11:53: 11:62 error: failed to resolve import `extra::net::tcp::TcpSocket`
connection.rs:11 use extra::net::tcp::{TcpErrData, TcpConnectErrData, TcpSocket};
                                                                      ^~~~~~~~~
connection.rs:12:4: 12:26 error: unresolved import: could not find `net` in `extra`.
connection.rs:12 use extra::net::ip::IpAddr;
                     ^~~~~~~~~~~~~~~~~~~~~~
connection.rs:12:4: 12:26 error: failed to resolve import `extra::net::ip::IpAddr`
connection.rs:12 use extra::net::ip::IpAddr;
                     ^~~~~~~~~~~~~~~~~~~~~~
connection.rs:52:12: 52:33 error: unresolved import: there is no `uv_global_loop` in `extra`
connection.rs:52         use extra::uv_global_loop;
                             ^~~~~~~~~~~~~~~~~~~~~
connection.rs:52:12: 52:33 error: failed to resolve import `extra::uv_global_loop`
connection.rs:52         use extra::uv_global_loop;
                             ^~~~~~~~~~~~~~~~~~~~~
connection.rs:53:12: 53:36 error: unresolved import: could not find `net` in `extra`.
connection.rs:53         use extra::net::tcp::connect;
                             ^~~~~~~~~~~~~~~~~~~~~~~~
connection.rs:53:12: 53:36 error: failed to resolve import `extra::net::tcp::connect`
connection.rs:53         use extra::net::tcp::connect;
                             ^~~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to 34 previous errors
make: *** [libhttp_client.dummy] Error 101

@jdm
Copy link
Member

jdm commented Aug 2, 2013

Yes, we can't upgrade to a newer version of rust until the new TCP code is in place in the new runtime.

@minhnhdo
Copy link
Author

minhnhdo commented Aug 2, 2013

@jdm is there an ETA for the new runtime? Is the code on github?

@jdm
Copy link
Member

jdm commented Aug 2, 2013

Last I heard was within 2 weeks. Commits like rust-lang/rust@a5c6b85 might show you what's missing/present already.

@brson
Copy link
Contributor

brson commented Aug 6, 2013

The new runtime will obsolete this project. I/O is structured differently enough - and this code is bad enough - that I intend to start from scratch, possibly basing our new HTTP code off of http://hg.chrismorgan.info/rusthttpserver.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants