iCepa / Tor.framework

Tor framework for the iCepa project
Other
249 stars 55 forks source link

Build failed (libor) #8

Closed dakesson closed 7 years ago

dakesson commented 7 years ago

All dependencies installed through brew, macOS 10.12.1 , Xcode 8.1

Seems this can be connected to OpenSSL but coulden't resolve it. Any help is much appreciated

https://jpst.it/PRUg

conradev commented 7 years ago

Hi @dakesson! I would love to help figure this out.

The log you posted isn't the full log. If you could navigate to the last tab in Xcode (⌘+8), select By Time, click on the top entry, click Save… in the top right, and attach it to a Github comment I can give this a good look!

dakesson commented 7 years ago

Thanks for the response, here's the full log: https://dl.dropboxusercontent.com/u/10700891/carthage-xcodebuild.E3Ru4k.log

conradev commented 7 years ago

Awesome. The actual error in there is this (when building tor-static-iOS for arm64):

checking for libevent directory... configure: WARNING: We found the libraries for libevent, but we could not find the C header files.  You may need to install a devel package.

Could you try again and see if there is a file at Tor/tor/config.log? That file would have the specific build error that triggered that configure error.

dakesson commented 7 years ago

I cannot find any config.log, however I found a dgph file that might be of help https://dl.dropboxusercontent.com/u/10700891/dgph

I tried to manually execute Carthage/Checkouts/Tor.framework/Tor/libevent.sh but got missing ./autogen.sh guess that script wasn't intended to be executed like that.

conradev commented 7 years ago

@dakesson, correct, the script is really meant to be executed by Xcode.

If you open the Xcode project and manually build the tor-static-iOS scheme, it should leave a config.log in Tor/tor/config.log. I'm not sure what would be removing it, but it might be the make distclean in tor.sh.

Apologies – this stuff is complicated to debug. If you still can't find it perhaps we could screenshare or something!

dakesson commented 7 years ago

I used carthage to include it into an existing project which I can build with no problems.

Went into carthage checkouts directory and open the tor project and built tor-static-ios from xcode and i got "Build successful", however it did also say "8 issues". Full log is posted here:

https://dl.dropboxusercontent.com/u/10700891/config.log

conradev commented 7 years ago

Awesome, thanks for the config.log! My libevent configure patch wasn't applied.

57c906476ea6e87198c2be3798ddc17000902b3e should fix your issue from happening in the future, but you will need to run

git submodule update -f --checkout && git submodule foreach git clean -f

in the git repo after pulling.

dakesson commented 7 years ago

New try, building tor-static-iOS gives the following:

https://dl.dropboxusercontent.com/u/10700891/config2.log

Is there anything obvious I'm missing?

conradev commented 7 years ago

@dakesson are you still experiencing issues with the latest master? Feel free to re-open this if you are, but I am going to close it for now.