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

tor047 embeding #67

Open
Yanik39 opened this issue Aug 13, 2022 · 6 comments
Open

tor047 embeding #67

Yanik39 opened this issue Aug 13, 2022 · 6 comments

Comments

@Yanik39
Copy link

Yanik39 commented Aug 13, 2022

Go version 1.19
OS Linux

	"github.com/cretz/bine/process/embedded/tor-0.4.7"
	"github.com/cretz/bine/tor"
)

func TorLinux(datadir string) {
	// Start tor with default config (can set start conf's DebugWriter to os.Stdout for debug logs)
	fmt.Println("Starting and registering onion service, please wait a couple of minutes...")
	t, err := tor.Start(nil, &tor.StartConf{ProcessCreator: tor047.NewCreator(), UseEmbeddedControlConn: true, DataDir: datadir, DebugWriter: os.Stdout})
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:61:3: could not determine kind of name for C.freeCharArray
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:54:15: could not determine kind of name for C.makeCharArray
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:56:3: could not determine kind of name for C.setArrayString
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:22:20: could not determine kind of name for C.tor_api_get_provider_version
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:60:3: could not determine kind of name for C.tor_main_configuration_free
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:43:13: could not determine kind of name for C.tor_main_configuration_new
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:59:13: could not determine kind of name for C.tor_main_configuration_set_command_line
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:94:29: could not determine kind of name for C.tor_main_configuration_setup_control_socket
../pkg/mod/github.com/cretz/bine@v0.2.1-0.20220711123706-2b906e69c081/process/embedded/tor-0.4.7/process.go:69:19: could not determine kind of name for C.tor_run_main

Any idea about this error?

@cretz
Copy link
Owner

cretz commented Aug 15, 2022

I do not, sorry I haven't worked on this project in a bit. In the PR at #64, @mibmo had Tor 0.4.7 embedding working.

@mibmo
Copy link
Contributor

mibmo commented Aug 22, 2022

Hmm. Yeah I didn't get anything like that error when testing, but it also wasn't super thorough. @Yanik39, could you provide some more details about your use-case?

@lizthegrey
Copy link

Is there a chance that the work from #64 can be released with a tag?

@mibmo
Copy link
Contributor

mibmo commented Aug 27, 2023

Is there a chance that the work from #64 can be released with a tag?

I don't see why not, but you'd have to get @cretz to handle that :)
If you'd like I can make a tag at my repo or maybe you can use the branch mibmo:tor-v047. Let me know if that resolves your issue! :)

@cretz
Copy link
Owner

cretz commented Aug 28, 2023

Sorry! I will see if I can push a tag in the next couple of weeks (I don't focus on this project much anymore).

@mibmo
Copy link
Contributor

mibmo commented Aug 30, 2023

@lizthegrey: did using the branch work out for you? :)

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

No branches or pull requests

4 participants