mumble-voip / libmumble-legacy

libmumble is an attempt at writing a cross-platform C++ library for implementing Mumble clients
BSD 3-Clause "New" or "Revised" License
37 stars 9 forks source link

git submodule openssl failed to download #4

Open hungrymonkey opened 7 years ago

hungrymonkey commented 7 years ago
$ git submodule update
Cloning into '/home/rice/libmumble/3rdparty/gtest'...
warning: redirecting to https://chromium.googlesource.com/external/gtest.git/
Cloning into '/home/rice/libmumble/3rdparty/gyp'...
Cloning into '/home/rice/libmumble/3rdparty/libuv'...
Cloning into '/home/rice/libmumble/3rdparty/openssl'...
fatal: Unable to look up openssl.net (port 9418) (Name or service not known)
fatal: clone of 'git://openssl.net/openssl' into submodule path '/home/rice/libmumble/3rdparty/openssl' failed
Failed to clone '3rdparty/openssl'. Retry scheduled
Cloning into '/home/rice/libmumble/3rdparty/protobuf'...
Cloning into '/home/rice/libmumble/3rdparty/openssl'...
fatal: Unable to look up openssl.net (port 9418) (Name or service not known)
fatal: clone of 'git://openssl.net/openssl' into submodule path '/home/rice/libmumble/3rdparty/openssl' failed
Failed to clone '3rdparty/openssl' a second time, aborting

I wonder if anybody tried to build libmumble recently.

git complains it cannot find openssl. I guess i would try to find a workaround

hungrymonkey commented 7 years ago
./test.bash 
ninja: Entering directory `test/out/Default'
[1/669] CC obj/3rdparty/openssl/crypto/asn1/libcrypto.a_time.o
FAILED: obj/3rdparty/openssl/crypto/asn1/libcrypto.a_time.o 
cc -MMD -MF obj/3rdparty/openssl/crypto/asn1/libcrypto.a_time.o.d -DNO_WINDOWS_BRAINDEATH=1 -DOPENSSL_NO_INLINE_ASM=1 -DOPENSSL_NO_ASM=1 -DOPENSSL_NO_HW=1 -DOPENSSL_NO_GOST=1 -DOPENSSL_NO_GMP=1 -DOPENSSL_THREADS=1 -D_REENTRANT=1 -I../../../3rdparty/openssl -I../../../3rdparty/opensslbuild/include -I../../../3rdparty/openssl/crypto -I../../../3rdparty/openssl/crypto/asn1 -I../../../3rdparty/openssl/crypto/evp    -c ../../../3rdparty/openssl/crypto/asn1/a_time.c -o obj/3rdparty/openssl/crypto/asn1/libcrypto.a_time.o
In file included from ../../../3rdparty/openssl/e_os.h:64:0,
                 from ../../../3rdparty/openssl/crypto/cryptlib.h:65,
                 from ../../../3rdparty/openssl/crypto/asn1/a_time.c:66:
../../../3rdparty/opensslbuild/include/openssl/e_os2.h:5:10: fatal error: ../../openssl/include/openssl/../../e_os2.h: No such file or directory
 #include "../../openssl/include/openssl/../../e_os2.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
[6/669] CXX obj/3rdparty/protobuf/src/...protobuf/protobuf_lite.extension_set.o
In file included from /usr/include/c++/7/ext/hash_map:60:0,
                 from ../../../3rdparty/protobuf/src/google/protobuf/stubs/hash.h:43,
                 from ../../../3rdparty/protobuf/src/google/protobuf/extension_set.cc:35:
/usr/include/c++/7/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp]
 #warning \
  ^~~~~~~
ninja: build stopped: subcommand failed.

well i tried changing .gitmodules to current git repo as described here

https://www.openssl.org/source/gitrepo.html

The build still failed.

HeroCC commented 6 years ago

Did you end up fixing this issue? Running it to still and I can't figure out how the GYP build system works to fix it.

hungrymonkey commented 6 years ago

@HeroCC never got it to build. I gave up

https://github.com/slomkowski/mumlib

HeroCC commented 6 years ago

@hungrymonkey Nice find, thank you for the tip!

I just tried it and turns out that one has an issue with compiling on Macs ¯\_(ツ)_/¯. Hopefully it will be fixed soon!

hungrymonkey commented 6 years ago

@HeroCC

the compile issue is Mac specific. I still wonder why OSX does not have a real package manager. its not a mumlib bug

Algo-ryth-mix commented 6 years ago

Now I know this is kind of an old issue but I wanted to build the library myself and ran into the same issue. However I was able to fix it like this:

change the url for openssl in libmumbles /.gitmodules file and in /.git/config from git://openssl.net/openssl.git to git://git.openssl.org/openssl.git

As im running on windows this does also not seem to be a Mac only bug

hungrymonkey commented 6 years ago

@Algo-ryth-mix send a pull request.